in reply to Trying to decode aes-128-ctr

Howdy starless, welcome to the Monastery!

I don't know too much about cryptography, but you're telling OpenSSL to use CTR mode, not CBC mode, so that's what you'll have to use in Perl, too.

Replies are listed 'Best First'.
Re^2: Trying to decode aes-128-ctr
by starless (Initiate) on Sep 03, 2014 at 09:56 UTC
    Thanks, i'll give it a try!
      That was definitelly the problem, tried using Crypt::Rijndael::MODE_CTR() directly and i was able to see the jpeg header.

      Now the problem is dealing with padding because Rijndael now complains with the "encrypt: datasize not multiple of blocksize (16 bytes)" error.

      I tried Crypt::Ctr to handle all that stuff but it doesn't seem to accept a IV as an argument.