]> git.proxmox.com Git - mirror_qemu.git/commit
crypto: extend unit tests to cover decryption too
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 21 Jul 2015 08:55:02 +0000 (09:55 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jul 2015 10:22:01 +0000 (12:22 +0200)
commit019c2ab8623daee210df8b1085a33b1e83c9ee11
tree73880b4355f836878067e746263151ee1ba6fa9d
parent6775e2c4298618828de9bb3c5584d4de20120e46
crypto: extend unit tests to cover decryption too

The current unit test only verifies the encryption API,
resulting in us missing a recently introduced bug in the
decryption API from commit d3462e3. It was fortunately
later discovered & fixed by commit bd09594, thanks to the
QEMU I/O tests for qcow2 encryption, but we should really
detect this directly in the crypto unit tests. Also remove
an accidental debug message and simplify some asserts.

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