Fast reduction of a modulo the NIST P‐384 prime (0 <= a < pˆ2).

Synopsis

Declared in <openssl/bn.h>

int
BN_nist_mod_384(
    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‐384 prime (often ignored when specialized).

ctx

BN_CTX scratch space.

Created with MrDocs