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 algorithm in CFB mode, same key (32 bytes), and same IV (16 bytes), although the ciphertexts can be decrypted by their own correspndingly.
Could some one tell me what is the problem? Thanks.