Return a fast modular‐reduction function for a known NIST prime.

Synopsis

Declared in <openssl/bn.h>

int(*
BN_nist_mod_func(BIGNUM const* p))(BIGNUM*, BIGNUM const*, BIGNUM const*, BN_CTX*);

Return Value

Specialized mod function for p, or NULL if p is not a built‐in NIST prime.

Parameters

Name

Description

p

Prime to look up (for example a BN_get0_nist_prime_* value).

Created with MrDocs