summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorDaniel P. Berrange2015-10-16 17:35:06 +0200
committerDaniel P. Berrange2015-10-22 20:03:08 +0200
commit3a661f1eabf7e8db66e28489884d9b54aacb94ea (patch)
tree4a0b45548a6eb797c9c254797f065b2b5cd9b33e /include/exec
parentcrypto: don't let builtin aes crash if no IV is provided (diff)
downloadqemu-3a661f1eabf7e8db66e28489884d9b54aacb94ea.tar.gz
qemu-3a661f1eabf7e8db66e28489884d9b54aacb94ea.tar.xz
qemu-3a661f1eabf7e8db66e28489884d9b54aacb94ea.zip
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 'include/exec')
0 files changed, 0 insertions, 0 deletions