On Tue, 2007-12-18 at 07:38 -0800, Suchindra Chandrahas wrote:
> Hi Merek,
>                      In the following function,
> md_update(&md, pad_2, 40);
>                      Is pad_2 and pad_1 (before), of size 40 bytes. I
> think i am a wrong somewhere, cos i put them as 48 bytes for md5 and
> 40 bytes for sha 
> 
> Please let me know if i am wrong
You are right, this implemetation does not use md5 and this record MAC
calculation use 40 bytes of pad1 and pad2. If, for example, negotiated
ciphersuite will be DES-CBC3-MD5 then in record MAC calculation you
should use 48 bytes of pad1 and pad2. 

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to