This series changes the QEMU crypto hash implementation to
use gcrypt/nettle directly instead of using gnutls abstraction.
This then lets us support several more hash algorithms that
gnutls does not expose itself. This is useful for LUKS block
driver compatibility with dm-crypt.

Daniel P. Berrange (2):
  crypto: switch hash code to use nettle/gcrypt directly
  crypto: implement sha224, sha384, sha512 and ripemd160 hashes

 configure                |  14 -----
 crypto/Makefile.objs     |   3 +
 crypto/hash-gcrypt.c     | 110 +++++++++++++++++++++++++++++++++
 crypto/hash-nettle.c     | 155 +++++++++++++++++++++++++++++++++++++++++++++++
 crypto/hash-stub.c       |  41 +++++++++++++
 crypto/hash.c            | 109 ++-------------------------------
 qapi/crypto.json         |   6 +-
 tests/Makefile           |   2 +-
 tests/test-crypto-hash.c |  53 +++++++++++++++-
 9 files changed, 370 insertions(+), 123 deletions(-)
 create mode 100644 crypto/hash-gcrypt.c
 create mode 100644 crypto/hash-nettle.c
 create mode 100644 crypto/hash-stub.c

-- 
2.5.5


Reply via email to