Skip to content

Commit 9893da7

Browse files
dorjoy03berrange
authored andcommitted
crypto: Support SHA384 hash when using glib
QEMU requires minimum glib version 2.66.0 as per the root meson.build file and per glib documentation[1] G_CHECKSUM_SHA384 is available since 2.51. [1] https://docs.gtk.org/glib/enum.ChecksumType.html Reviewed-by: Daniel P. Berrangé <[email protected]> Signed-off-by: Dorjoy Chowdhury <[email protected]> Signed-off-by: Daniel P. Berrangé <[email protected]>
1 parent 5d04de7 commit 9893da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/hash-glib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static int qcrypto_hash_alg_map[QCRYPTO_HASH_ALG__MAX] = {
2929
[QCRYPTO_HASH_ALG_SHA1] = G_CHECKSUM_SHA1,
3030
[QCRYPTO_HASH_ALG_SHA224] = -1,
3131
[QCRYPTO_HASH_ALG_SHA256] = G_CHECKSUM_SHA256,
32-
[QCRYPTO_HASH_ALG_SHA384] = -1,
32+
[QCRYPTO_HASH_ALG_SHA384] = G_CHECKSUM_SHA384,
3333
[QCRYPTO_HASH_ALG_SHA512] = G_CHECKSUM_SHA512,
3434
[QCRYPTO_HASH_ALG_RIPEMD160] = -1,
3535
};

0 commit comments

Comments
 (0)