crypto: add support for the cast5-128 cipher algorithm
commit084a85eeddfe1ab84b861971b6efd976d2ae3d1f
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)
tree8419c6e40182eecd788d7d2f8db6d46f7514dbe7
parentaa41363598735bae8d270023247da9ec0334605c
crypto: add support for the cast5-128 cipher algorithm

A new cipher algorithm 'cast-5-128' is defined for the
Cast-5 algorithm with 128 bit key size. Smaller key sizes
are supported by Cast-5, but nothing in QEMU should use
them, so only 128 bit keys are permitted.

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