crypto: fix built-in AES decrypt function
commit6775e2c4298618828de9bb3c5584d4de20120e46
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 24 Jul 2015 12:23:54 +0000 (24 13:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jul 2015 10:22:01 +0000 (27 12:22 +0200)
tree5d0e2e223dc4ed301f3245b8a8a7295ac345269e
parentf793d97e454a56d17e404004867985622ca1a63b
crypto: fix built-in AES decrypt function

The qcrypto_cipher_decrypt_aes method was using the wrong
key material, and passing the wrong mode. This caused it
to incorrectly decrypt ciphertext.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1437740634-6261-1-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
crypto/cipher-builtin.c