Compute a square root in GF(2^m): r = sqrt(a) mod p.
Declared in <openssl/bn.h>
int
BN_GF2m_mod_sqrt(
BIGNUM* r,
BIGNUM const* a,
BIGNUM const* p,
BN_CTX* ctx);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| r | Destination for the root. |
| a | Value whose square root is requested. |
| p | Irreducible modulus polynomial. |
| ctx | BN_CTX scratch space. |