Hi
I am using the Java cryptography extension to encrypt the following
Case #1: Encrypting 16 bytes (1 block) using AES-CBC with 128-bit key
Key : 0x06a9214036b8a15b512e03d534120006
IV : 0x3dafba429d9eb430b422da802c9fac41
Plaintext : "Single block msg"
Ciphertext: 0xe353779c1079aeb82708942dbe77181a
Source: RFC 3602
But JCE doesnt give the above output and instead gives out e353779c1079aeb82708942dbe77181ab97c825e1c78514654 2d396941bce55d .
Do you know why the discrepancy? I am tryign to get ancryption running on C++ and sending the output across to a server running Java and getting it decrypted. Sending the RFC 3602 output doesnt help in decryption as it gives an exception (Block not padded). Can someone please help here?
Thanks
I am using the Java cryptography extension to encrypt the following
Case #1: Encrypting 16 bytes (1 block) using AES-CBC with 128-bit key
Key : 0x06a9214036b8a15b512e03d534120006
IV : 0x3dafba429d9eb430b422da802c9fac41
Plaintext : "Single block msg"
Ciphertext: 0xe353779c1079aeb82708942dbe77181a
Source: RFC 3602
But JCE doesnt give the above output and instead gives out e353779c1079aeb82708942dbe77181ab97c825e1c78514654 2d396941bce55d .
Do you know why the discrepancy? I am tryign to get ancryption running on C++ and sending the output across to a server running Java and getting it decrypted. Sending the RFC 3602 output doesnt help in decryption as it gives an exception (Block not padded). Can someone please help here?
Thanks