BN_nist_mod_192

Fast reduction of a modulo the NIST P-192 prime (0 <= a < p^2).

Synopsis

Declared in <openssl/bn.h>

int
BN_nist_mod_192(
    BIGNUM* r,
    BIGNUM const* a,
    BIGNUM const* p,
    BN_CTX* ctx);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
rDestination residue.
aValue to reduce (typically less than p^2).
pMust be the NIST P-192 prime (often ignored when specialized).
ctxBN_CTX scratch space.