diff options
author | Ulf Möller <ulf@openssl.org> | 2000-01-27 01:50:42 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-01-27 01:50:42 +0000 |
commit | e93f9a3284c799bb851afaeddd56ed502ba189b6 (patch) | |
tree | 3252e4d6730be4eadb9db6b20470c81432a5050b /doc/crypto/BN_add.pod | |
parent | bb075f883356589425b7e57f788c7498a83b0219 (diff) |
Run ispell.
Clean up bn_mont.c.
Diffstat (limited to 'doc/crypto/BN_add.pod')
-rw-r--r-- | doc/crypto/BN_add.pod | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/crypto/BN_add.pod b/doc/crypto/BN_add.pod index 3c0bd7104f..16bb5d466a 100644 --- a/doc/crypto/BN_add.pod +++ b/doc/crypto/BN_add.pod @@ -37,13 +37,15 @@ BN_mod_exp, BN_gcd - Arithmetic operations on BIGNUMs BN_add() adds B<a> and B<b> and places the result in B<r> (C<r=a+b>). B<r> may be the same B<BIGNUM> as B<a> or B<b>. -BN_sub() substracts B<b> from B<a> and places the result in B<r> (C<r=a-b>). +BN_sub() subtracts B<b> from B<a> and places the result in B<r> (C<r=a-b>). BN_mul() multiplies B<a> and B<b> and places the result in B<r> (C<r=a*b>). +For multiplication by powers of 2, use BN_lshift(3). BN_div() divides B<a> by B<d> and places the result in B<dv> and the remainder in B<rem> (C<dv=a/d, rem=a%d>). Either of B<dv> and B<rem> may be NULL, in which case the respective value is not returned. +For division by powers of 2, use BN_rshift(3). BN_sqr() takes the square of B<a> and places the result in B<r> (C<r=a^2>). B<r> and B<a> may be the same B<BIGNUM>. |