OpenSSL gives "iv undefined" for AES-256-ECB

1

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

Posted 2016-10-28T15:03:43.707

Reputation: 11

Answers

0

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

Geomorillo

Posted 2016-10-28T15:03:43.707

Reputation: 101

1

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 – 2016-10-28T15:49:24.907