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>
Showing
- crypto/cipher-builtin.c 76 additions, 9 deletionscrypto/cipher-builtin.c
- crypto/cipher-gcrypt.c 98 additions, 25 deletionscrypto/cipher-gcrypt.c
- crypto/cipher-nettle.c 73 additions, 6 deletionscrypto/cipher-nettle.c
- crypto/cipher.c 23 additions, 4 deletionscrypto/cipher.c
- qapi/crypto.json 2 additions, 1 deletionqapi/crypto.json
- tests/test-crypto-cipher.c 133 additions, 1 deletiontests/test-crypto-cipher.c
Loading
Please register or sign in to comment