summaryrefslogtreecommitdiffstats
path: root/qapi/crypto.json
diff options
context:
space:
mode:
authorDaniel P. Berrange2016-02-11 15:05:21 +0100
committerDaniel P. Berrange2016-03-17 15:41:15 +0100
commiteaec903c5b830ed9d9610ba72072b97763c2f996 (patch)
treeec12b0ae205a401562ad92ada361c31a7a5cf6df /qapi/crypto.json
parentcrypto: refactor code for dealing with AES cipher (diff)
downloadqemu-eaec903c5b830ed9d9610ba72072b97763c2f996.tar.gz
qemu-eaec903c5b830ed9d9610ba72072b97763c2f996.tar.xz
qemu-eaec903c5b830ed9d9610ba72072b97763c2f996.zip
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>
Diffstat (limited to 'qapi/crypto.json')
-rw-r--r--qapi/crypto.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/qapi/crypto.json b/qapi/crypto.json
index 63c001aea4..a0314f0a47 100644
--- a/qapi/crypto.json
+++ b/qapi/crypto.json
@@ -84,11 +84,12 @@
#
# @ecb: Electronic Code Book
# @cbc: Cipher Block Chaining
+# @xts: XEX with tweaked code book and ciphertext stealing
# Since: 2.6
##
{ 'enum': 'QCryptoCipherMode',
'prefix': 'QCRYPTO_CIPHER_MODE',
- 'data': ['ecb', 'cbc']}
+ 'data': ['ecb', 'cbc', 'xts']}
##