Compute r = aˆp (non‐modular exponentiation).

Synopsis

Declared in <openssl/bn.h>

int
BN_exp(
    BIGNUM* r,
    BIGNUM const* a,
    BIGNUM const* p,
    BN_CTX* ctx);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

r

Result BIGNUM.

a

Base.

p

Non‐negative exponent.

ctx

BN_CTX for temporaries.

Created with MrDocs