bcrypt: Handle SHA1 hash in key_asymmetric_verify.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
741f76fc2c
commit
1703ac54fa
|
@ -1064,6 +1064,7 @@ NTSTATUS key_asymmetric_verify( struct key *key, void *padding, UCHAR *hash, ULO
|
||||||
/* only the hash size must match, not the actual hash function */
|
/* only the hash size must match, not the actual hash function */
|
||||||
switch (hash_len)
|
switch (hash_len)
|
||||||
{
|
{
|
||||||
|
case 20: hash_alg = GNUTLS_DIG_SHA1; break;
|
||||||
case 32: hash_alg = GNUTLS_DIG_SHA256; break;
|
case 32: hash_alg = GNUTLS_DIG_SHA256; break;
|
||||||
case 48: hash_alg = GNUTLS_DIG_SHA384; break;
|
case 48: hash_alg = GNUTLS_DIG_SHA384; break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue