crypto: add support for the twofish cipher algorithm
commit50f6753e2787b60475c2c5c07c6be5d600aa84de
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 10 Feb 2016 17:07:42 +0000 (10 17:07 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 17 Mar 2016 14:41:15 +0000 (17 14:41 +0000)
tree801156a50f55bef4e174ec7184317e59f03f5840
parent94318522ed7930863924b3191ea8fee1d8cbe506
crypto: add support for the twofish cipher algorithm

New cipher algorithms 'twofish-128', 'twofish-192' and
'twofish-256' are defined for the Twofish algorithm.
The gcrypt backend does not support 'twofish-192'.

The nettle and gcrypt cipher backends are updated to
support the new cipher and a test vector added to the
cipher test suite. The new algorithm is enabled in the
LUKS block encryption driver.

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