]> git.proxmox.com Git - mirror_qemu.git/commit
crypto: add ability to query hash digest len
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 23 Oct 2015 15:14:50 +0000 (16:14 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Dec 2015 11:02:20 +0000 (11:02 +0000)
commit7b36064c90c377d07d30904318d6cbfe5a133af1
tree4917e5ef7d40794be96dcd37db562d8917e21f2b
parentdd2bf9eb95f875f0ad6a15aecb48cfc8b739fcbc
crypto: add ability to query hash digest len

Add a qcrypto_hash_digest_len() method which allows querying of
the raw digest size for a given hash algorithm.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
crypto/hash.c
include/crypto/hash.h
tests/test-crypto-hash.c