summaryrefslogtreecommitdiffstats
path: root/tests/q35-test.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-10-16 16:35:06 +0100
committerDaniel P. Berrange <berrange@redhat.com>2015-10-22 19:03:08 +0100
commit3a661f1eabf7e8db66e28489884d9b54aacb94ea (patch)
tree4a0b45548a6eb797c9c254797f065b2b5cd9b33e /tests/q35-test.c
parenteb2a770b178b9040c3fc04ee31dc38d1775db09a (diff)
downloadhqemu-3a661f1eabf7e8db66e28489884d9b54aacb94ea.zip
hqemu-3a661f1eabf7e8db66e28489884d9b54aacb94ea.tar.gz
crypto: add sanity checking of plaintext/ciphertext length
When encrypting/decrypting data, the plaintext/ciphertext buffers are required to be a multiple of the cipher block size. If this is not done, nettle will abort and gcrypt will report an error. To get consistent behaviour add explicit checks upfront for the buffer sizes. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/q35-test.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud