]> git.proxmox.com Git - mirror_qemu.git/commit - crypto/cipher-builtin.c
crypto: wire up XTS mode for cipher APIs
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Feb 2016 14:05:21 +0000 (14:05 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 17 Mar 2016 14:41:15 +0000 (14:41 +0000)
commiteaec903c5b830ed9d9610ba72072b97763c2f996
treeec12b0ae205a401562ad92ada361c31a7a5cf6df
parente3ba0b67014b9fa15239f99bfcc227200e89024b
crypto: wire up XTS mode for cipher APIs

Introduce 'XTS' as a permitted mode for the cipher APIs.
With XTS the key provided must be twice the size of the
key normally required for any given algorithm. This is
because the key will be split into two pieces for use
in XTS mode.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
crypto/cipher-builtin.c
crypto/cipher-gcrypt.c
crypto/cipher-nettle.c
crypto/cipher.c
qapi/crypto.json
tests/test-crypto-cipher.c