X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fcrypto%2FBN_add.pod;h=88c7a799eea5a119f77ac4e9cbd8e0ac2bf02202;hb=ba544377fb48336b4e29fd494a7faf7c0ba6b1dc;hp=4c8db25f703cda0548d0b39fcabd54395264fb54;hpb=78a0c1f18d5a1f0e51b7467ef7b153b8c29fbb03;p=oweals%2Fopenssl.git diff --git a/doc/crypto/BN_add.pod b/doc/crypto/BN_add.pod index 4c8db25f70..88c7a799ee 100644 --- a/doc/crypto/BN_add.pod +++ b/doc/crypto/BN_add.pod @@ -23,7 +23,7 @@ arithmetic operations on BIGNUMs int BN_mod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); - int BN_nnmod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); + int BN_nnmod(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); int BN_mod_add(BIGNUM *r, BIGNUM *a, BIGNUM *b, const BIGNUM *m, BN_CTX *ctx); @@ -67,12 +67,13 @@ For division by powers of 2, use BN_rshift(3). BN_mod() corresponds to BN_div() with I set to B. -BN_nnmod() finds the non-negative remainder of I divided by I. +BN_nnmod() reduces I modulo I and places the non-negative +remainder in I. BN_mod_add() adds I to I modulo I and places the non-negative result in I. -BN_mod_sub() substracts I from I modulo I and places the +BN_mod_sub() subtracts I from I modulo I and places the non-negative result in I. BN_mod_mul() multiplies I by I and finds the non-negative @@ -110,7 +111,7 @@ The error codes can be obtained by L. =head1 SEE ALSO -L, L, L, +L, L, L, L, L =head1 HISTORY