crypto: support more hash algorithms for pbkdf
commit533008f4f382490f817a0c313f2d32f6173c08c7
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 7 Sep 2016 12:12:28 +0000 (7 13:12 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 19 Sep 2016 15:30:45 +0000 (19 16:30 +0100)
tree79e6b5a6b136d9901480f93275bf618248cca654
parent2ab66cd577d6d0ec3c44b14cc823e76ea5a4397c
crypto: support more hash algorithms for pbkdf

Currently pbkdf is only supported with SHA1 and SHA256. Expand
this to support all algorithms known to QEMU.

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