diff options
author | Andy Polyakov <appro@openssl.org> | 2005-10-22 17:57:18 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-10-22 17:57:18 +0000 |
commit | 4d524040bc81d2db46a5530ba10a98686ab1c3ca (patch) | |
tree | 1e2a3deb777f1a4ab5e16398bf0387fdd0c6623f /crypto/bn/bn.h | |
parent | 0fe120ba25ad7d7d93f3fad17640556503426186 (diff) |
Change bn_mul_mont declaration and BN_MONT_CTX. Update CHANGES.
Diffstat (limited to 'crypto/bn/bn.h')
-rw-r--r-- | crypto/bn/bn.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index b0c8f09808..0b616a6142 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -295,7 +295,7 @@ struct bn_mont_ctx_st BIGNUM N; /* The modulus */ BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1 * (Ni is only stored for bignum algorithm) */ - BN_ULONG n0; /* least significant word of Ni */ + BN_ULONG n0[2];/* least significant word(s) of Ni */ int flags; }; @@ -729,7 +729,7 @@ int RAND_pseudo_bytes(unsigned char *buf,int num); bn_pollute(a); \ } -int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,BN_ULONG n0, int num); +int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num); BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w); BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w); void bn_sqr_words(BN_ULONG *rp, const BN_ULONG *ap, int num); |