Re: AES_CBC decryption

2004-01-06 Thread Jon Bright
Richard Levitte - VMS Whacker wrote:

In message [EMAIL PROTECTED] on Fri, 19 Dec 2003 10:49:49 -0600, Stephen Sprunk [EMAIL PROTECTED] said:

stephen 
stephen Minor bug: the AES CBC function doesn't correctly handle
stephen in==out.

Is that something you have actually observed, or are you guessing?  As
far as I can read the code, in==out should be supported, or we would
remove some of the memcpy() in there...  If what you say is true and
reproducable, I'd like to know, because that's a bug that I wish to
correct.
AES CBC didn't support in==out until my recent patch (RT #743) was applied.

--
Jon Bright
Silicon Circus Ltd.
http://www.siliconcircus.com
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: AES_CBC decryption

2003-12-19 Thread Stephen Sprunk
Thus spake mohanlal jangir [EMAIL PROTECTED]
I was looking into the AES CBC code available at
 http://openbsd.secsup.org/src/lib/libssl/src/crypto/aes/ For testing this,
I
 wrote small code (attached in mail). The Encryption seems OK but
Decryption
 is failing. I think, I am doing some mistake. Could you please look into
the
 code and give me some hints about decryption.

Minor bug: the AES CBC function doesn't correctly handle in==out.

Please retry with in!=out.

S

Stephen Sprunk God does not play dice.  --Albert Einstein
CCIE #3723 God is an inveterate gambler, and He throws the
K5SSSdice at every possible opportunity. --Stephen Hawking

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: AES_CBC decryption

2003-12-19 Thread Richard Levitte - VMS Whacker
In message [EMAIL PROTECTED] on Fri, 19 Dec 2003 10:49:49 -0600, Stephen Sprunk 
[EMAIL PROTECTED] said:

stephen Thus spake mohanlal jangir [EMAIL PROTECTED]
stephen I was looking into the AES CBC code available at
stephen  http://openbsd.secsup.org/src/lib/libssl/src/crypto/aes/
stephen  For testing this, I wrote small code (attached in mail).
stephen  The Encryption seems OK but Decryption is failing. I think,
stephen  I am doing some mistake. Could you please look into the
stephen  code and give me some hints about decryption.
stephen 
stephen Minor bug: the AES CBC function doesn't correctly handle
stephen in==out.

Is that something you have actually observed, or are you guessing?  As
far as I can read the code, in==out should be supported, or we would
remove some of the memcpy() in there...  If what you say is true and
reproducable, I'd like to know, because that's a bug that I wish to
correct.

-
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
You don't have to be rich, a $10 donation is appreciated!

-- 
Richard Levitte   \ Tunnlandsvägen 3  \ [EMAIL PROTECTED]
[EMAIL PROTECTED]  \ S-168 36  BROMMA  \ T: +46-8-26 52 47
\  SWEDEN   \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See http://www.stacken.kth.se/~levitte/mail/ for more info.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


RE: AES_CBC decryption

2003-12-19 Thread Fernandes, James
You have to reinitialize the IV before decryption.

Thanks,
James
 

-Original Message-
From: mohanlal jangir [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 19, 2003 6:45 AM
To: [EMAIL PROTECTED]
Subject: AES_CBC decryption

Hi,
   I was looking into the AES CBC code available at
http://openbsd.secsup.org/src/lib/libssl/src/crypto/aes/ For testing this, I
wrote small code (attached in mail). The Encryption seems OK but Decryption
is failing. I think, I am doing some mistake. Could you please look into the
code and give me some hints about decryption.

Regards
Mohanlal


__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]