summaryrefslogtreecommitdiffstats
path: root/doc/crypto/BN_add.pod
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-11-26 18:31:32 +0000
committerBodo Möller <bodo@openssl.org>2000-11-26 18:31:32 +0000
commit5acaa49504153ecdd9734ac80aeb9153fde94e48 (patch)
tree3be1e2178b83713e43bdd6f4d0ea55d9f48c0478 /doc/crypto/BN_add.pod
parent535b9b5724e08f27c722982bbf775a862134a22d (diff)
More BN_mod_... functions.
Diffstat (limited to 'doc/crypto/BN_add.pod')
-rw-r--r--doc/crypto/BN_add.pod5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/crypto/BN_add.pod b/doc/crypto/BN_add.pod
index 4c8db25f70..57ae2f17af 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,7 +67,8 @@ For division by powers of 2, use BN_rshift(3).
BN_mod() corresponds to BN_div() with I<dv> set to B<NULL>.
-BN_nnmod() finds the non-negative remainder of I<a> divided by I<m>.
+BN_nnmod() reduces I<a> modulo I<m> and places the non-negative
+remainder in I<r>.
BN_mod_add() adds I<a> to I<b> modulo I<m> and places the non-negative
result in I<r>.