5

Can anyone spot why this command gives "iv undefined"?

>openssl.exe enc -d -aes-256-ecb -K 8000000000000000000000000000000000000000000000000000000000000001 -in ex3.8_C.bin -out plaintext.bin -nopad
iv undefined

See also Basic AES decryption problem

user358795
  • 51
  • 1
  • 1
  • 2

1 Answers1

1

It is as it says you did not define the iv

Try like this: -iv 0

openssl enc -aes-128-cbc -e -in test.txt -out output.txt -K 1234567812346578 -iv 0 -p
JW0914
  • 7,052
  • 7
  • 27
  • 48
Geomorillo
  • 111
  • 3
  • 3
    Thanks for that but I was using ECB (not CBC) which I understood does not (and cannot) use an initial vector. (As discussed here http://stackoverflow.com/questions/1789709/is-it-possible-to-use-aes-with-an-iv-in-ecb-mode ) – user358795 Oct 28 '16 at 15:49