BN_GF2m_mod_sqrt_arr

Compute a square root in GF(2^m) with the modulus given as an int array: r = sqrt(a) mod p.

Synopsis

Declared in <openssl/bn.h>

int
BN_GF2m_mod_sqrt_arr(
    BIGNUM* r,
    BIGNUM const* a,
    int const p[],
    BN_CTX* ctx);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
rDestination for the root.
aValue whose square root is requested.
pDescending exponent list of the irreducible, terminated by -1.
ctxBN_CTX scratch space.