summaryrefslogtreecommitdiff
path: root/lib/libcrypto/sha
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2023-04-15 19:44:37 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2023-04-15 19:44:37 +0000
commit5c576b0e7fba3488a1c3564ccf50c425bf8807aa (patch)
treebfb2602d8332e192aad86b8f4e50b5a8ae61a4c1 /lib/libcrypto/sha
parent3cea61f5143c48a81a16bc0b48d9691c44396554 (diff)
Add SHA3 digest length define that was previously missed.
Diffstat (limited to 'lib/libcrypto/sha')
-rw-r--r--lib/libcrypto/sha/sha3_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/sha/sha3_internal.h b/lib/libcrypto/sha/sha3_internal.h
index 7aaa0160500..befb615e486 100644
--- a/lib/libcrypto/sha/sha3_internal.h
+++ b/lib/libcrypto/sha/sha3_internal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha3_internal.h,v 1.11 2023/04/15 19:30:31 jsing Exp $ */
+/* $OpenBSD: sha3_internal.h,v 1.12 2023/04/15 19:44:36 jsing Exp $ */
/*
* The MIT License (MIT)
*
@@ -54,6 +54,7 @@
#define SHA3_512_BITRATE (2 * SHA3_512_BIT_LENGTH)
#define SHA3_512_CAPACITY (KECCAK_BIT_WIDTH - SHA3_512_BITRATE)
#define SHA3_512_BLOCK_SIZE (SHA3_512_CAPACITY / 8)
+#define SHA3_512_DIGEST_LENGTH (SHA3_512_BIT_LENGTH / 8)
typedef struct {
union {