changkun wrote:
>
> In a test program, I call the function in OpenSSL0.9.5a
>
> HMAC(EVP_sha1(),secret,secret_len,seed,seed_len,a,&t_len);
> HMAC(EVP_sha1(),secret,secret_len,seed,seed_len,b,&b_len);
>
> the "secret" and "seed" are identical in two functions, but the output "a" and "b"
>are different. I think the "a" and "b" should be same.
> Who can tell me why the result is not same as I think?
>
They should be the same. Can you include your test program?
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]