OpenSSL CVS Repository
http://cvs.openssl.org/
____________________________________________________________
________________
Server: cvs.openssl.org Name: Nils
Larsch
Root: /v/openssl/cvs Email: nils openssl.org
Module: openssl Date:
20-Apr-2006 15:11:52
Branch: HEAD Handle:
2006042014115101
Modified files:
openssl/crypto/aes aes_cfb.c
openssl/crypto/evp e_des.c
Log:
as we encrypt every bit separately we need to loop
through the number
of bits; thanks to Michael McDougall <mmcdouga saul.cis.upenn.edu>
PR: 1318
Summary:
Revision Changes Path
1.7 +1 -1 openssl/crypto/aes/aes_cfb.c
1.10 +1 -1 openssl/crypto/evp/e_des.c
____________________________________________________________
________________
patch -p0 <<' .'
Index: openssl/crypto/aes/aes_cfb.c
============================================================
================
$ cvs diff -u -r1.6 -r1.7 aes_cfb.c
--- openssl/crypto/aes/aes_cfb.c 30 Dec 2004 10:43:33
-0000 1.6
+++ openssl/crypto/aes/aes_cfb.c 20 Apr 2006 13:11:51
-0000 1.7
 -202,7 +202,7 
assert(*num == 0);
memset(out,0,(length+7)/8);
- for(n=0 ; n < length ; ++n)
+ for(n=0 ; n < length * 8; ++n)
{
c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0;
AES_cfbr_encrypt_block(c,d,1,key,ivec,enc);
 .
patch -p0 <<' .'
Index: openssl/crypto/evp/e_des.c
============================================================
================
$ cvs diff -u -r1.9 -r1.10 e_des.c
--- openssl/crypto/evp/e_des.c 28 Mar 2004 17:37:59
-0000 1.9
+++ openssl/crypto/evp/e_des.c 20 Apr 2006 13:11:52
-0000 1.10
 -110,7 +110,7 
unsigned int n;
unsigned char c[1],d[1];
- for(n=0 ; n < inl ; ++n)
+ for(n=0 ; n < inl * 8; ++n)
{
c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0;
DES_cfb_encrypt(c,d,1,1,ctx->cipher_data,(DES_cblock
*)ctx->iv,
 .
____________________________________________________________
__________
OpenSSL Project http://www.openssl.org
CVS Repository Commit List
openssl-cvs openssl.org
Automated List Manager
majordomo openssl.org
|