I am using a the Crypt::Rijndael
module to decrypt some application data.
I gave the encrypted data, encryption key and client IV as the input.
Out of 432 bytes of application data, the first 16 bytes of the decrypted output is always wrong.
use Crypt::Rijndael;
my $crypted = pack("H*",Encrypted application data);
my $key = pack("H*","4ffd099494d9cc0d0a6e238209038f27d56da73c8ce376e0b58678f1dd3d9656");
my $iv = pack("H*", "6907fd4a18bacd7bbfb0bf61b28cd37c");
my $cipher = Crypt::Rijndael->new( $key, Crypt::Rijndael::MODE_CBC() );
$cipher->set_iv($iv);
my $plaintext = $cipher->decrypt($crypted);
#my $hex = unpack "H*",$plaintext; print $plaintext;
What might cause this issue?