summaryrefslogtreecommitdiffstats
path: root/crypto/cipher.c
diff options
context:
space:
mode:
authorDaniel P. Berrange2016-02-11 15:05:21 +0100
committerDaniel P. Berrange2016-03-17 15:41:15 +0100
commite3ba0b67014b9fa15239f99bfcc227200e89024b (patch)
tree58a858dd25f3ac712d22083b4c8760a5ddb96954 /crypto/cipher.c
parentcrypto: import an implementation of the XTS cipher mode (diff)
downloadqemu-e3ba0b67014b9fa15239f99bfcc227200e89024b.tar.gz
qemu-e3ba0b67014b9fa15239f99bfcc227200e89024b.tar.xz
qemu-e3ba0b67014b9fa15239f99bfcc227200e89024b.zip
crypto: refactor code for dealing with AES cipher
The built-in and nettle cipher backends for AES maintain two separate AES contexts, one for encryption and one for decryption. This is going to be inconvenient for the future code dealing with XTS, so wrap them up in a single struct so there is just one pointer to pass around for both encryption and decryption. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions