Fast reduction of a modulo the NIST P‐256 prime (0 <= a < pˆ2).
Synopsis
Declared in <openssl/bn.h>
int
BN_nist_mod_256(
BIGNUM* r,
BIGNUM const* a,
BIGNUM const* p,
BN_CTX* ctx);
Return Value
1 on success, or 0 on error.
Parameters
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. |
Created with MrDocs