crypto: don't let builtin aes crash if no IV is provided
commiteb2a770b178b9040c3fc04ee31dc38d1775db09a
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 16 Oct 2015 12:23:13 +0000 (16 13:23 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Oct 2015 18:03:08 +0000 (22 19:03 +0100)
tree66e5b16132d6ee466c245ad280207819fa078069
parent91bfcdb01d4869aa8f4cb67007827de63b8c2217
crypto: don't let builtin aes crash if no IV is provided

If no IV is provided, then use a default IV of all-zeros
instead of crashing. This gives parity with gcrypt and
nettle backends.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
crypto/cipher-builtin.c
tests/test-crypto-cipher.c