Fast reduction of a modulo the NIST P-256 prime (0 <= a < p^2).
Declared in <openssl/bn.h>
int
BN_nist_mod_256(
BIGNUM* r,
BIGNUM const* a,
BIGNUM const* p,
BN_CTX* ctx);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| r | Destination residue. |
| a | Value to reduce (typically less than p^2). |
| p | Must be the NIST P-256 prime (often ignored when specialized). |
| ctx | BN_CTX scratch space. |