miss -hmac option in the documents about dgst

2008-05-19 Thread RenYiqun
Hi experts, According to the code in apps/dgst.c, command dgst should have an option -hmac, which means use HMAC algorithm. For openssl-0.9.8g, the code is from line 193 to line 198.However, I can not find the usage of -hmac option either in man-page or in the usage-prompt printed when user

bug in function AES_cfbr_encrypt_block

2008-04-01 Thread RenYiqun
Hi developers, I find a bug in function AES_cfbr_encrypt_block in openssl-0.9.7m. The bug is memory-reading out-of-bound. The following is the code of function AES_cfbr_encrypt_block, which is in file crypto/aes/aes_cfb.c 159 /* This expects a single block of size nbits for both in and out.

aes-128-cfb1 bug

2007-11-13 Thread RenYiqun
Hi developers, I find a bug of aes-128-cfb1: If key is 2b7e151628aed2a6abf7158809cf4f3c , iv is 000102030405060708090a0b0c0d0e0f, plain-text is a or abc, aes-128-cfb1 can not encrypt/decrypt correctly. The following is the log file. We can see that decryption result is different from original