two AES implementations generated different encryption results

Posted by YCL on Stack Overflow See other posts from Stack Overflow or by YCL
Published on 2010-03-22T17:06:29Z Indexed on 2010/03/22 17:11 UTC
Read the original article Hit count: 240

Filed under:
|
|

I have an application that uses an opensource "libgcrypt" to encrypt/decrypt a data block (32 bytes). Now I am going to use Microsoft CryptAPI to replace it. My problem is that the libgcrypt and cryptApi approaches generate different ciphertext contents as I use the same AES-256 algoritjm in CFB mode, same key, and same IV, although the ciphertext can be decrypted by their own correspndingly.

Could some tell me what is the problem? Thanks.

© Stack Overflow or respective owner

Related posts about c++

Related posts about aes