OpenSSL CVS Repository
http://cvs.openssl.org/
____________________________________________________________
________________
Server: cvs.openssl.org Name: Bodo
Moeller
Root: /v/openssl/cvs Email: bodo openssl.org
Module: openssl Date:
18-Sep-2007 18:31:18
Branch: OpenSSL_0_9_8-stable Handle:
2007091817311800
Modified files: (Branch: OpenSSL_0_9_8-stable)
openssl/crypto/bn bn_mont.c
Log:
Make sure that BN_from_montgomery keeps the BIGNUMS in
proper format
Summary:
Revision Changes Path
1.36.2.7 +2 -0 openssl/crypto/bn/bn_mont.c
____________________________________________________________
________________
patch -p0 <<' .'
Index: openssl/crypto/bn/bn_mont.c
============================================================
================
$ cvs diff -u -r1.36.2.6 -r1.36.2.7 bn_mont.c
--- openssl/crypto/bn/bn_mont.c 29 Jun 2007 13:12:34
-0000 1.36.2.6
+++ openssl/crypto/bn/bn_mont.c 18 Sep 2007 16:31:18
-0000 1.36.2.7
 -284,6 +284,8 
}
for (ri+=4; i<ri; i++)
rp[i]=nrp[i], ap[i]=0;
+ bn_correct_top(r);
+ bn_correct_top(ret);
# else
if (bn_wexpand(ret,al) == NULL) goto err;
ret->top=al;
 .
____________________________________________________________
__________
OpenSSL Project http://www.openssl.org
CVS Repository Commit List
openssl-cvs openssl.org
Automated List Manager
majordomo openssl.org
|