qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/2] Change QEMU crypto hash implementation


From: Daniel P. Berrange
Subject: [Qemu-devel] [PATCH 0/2] Change QEMU crypto hash implementation
Date: Wed, 1 Jun 2016 17:52:50 +0100

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

[Prev in Thread] Current Thread [Next in Thread]