summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/sha/sha3.c')
-rw-r--r--src/lib/libcrypto/sha/sha3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/sha/sha3.c b/src/lib/libcrypto/sha/sha3.c
index a3ef95f815..acb7de7d9d 100644
--- a/src/lib/libcrypto/sha/sha3.c
+++ b/src/lib/libcrypto/sha/sha3.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha3.c,v 1.6 2023/04/15 18:19:06 jsing Exp $ */ 1/* $OpenBSD: sha3.c,v 1.7 2023/04/15 18:29:26 jsing Exp $ */
2/* 2/*
3 * The MIT License (MIT) 3 * The MIT License (MIT)
4 * 4 *
@@ -25,6 +25,10 @@
25 25
26#include "sha3_internal.h" 26#include "sha3_internal.h"
27 27
28#define KECCAKF_ROUNDS 24
29
30#define ROTL64(x, y) (((x) << (y)) | ((x) >> (64 - (y))))
31
28static const uint64_t sha3_keccakf_rndc[24] = { 32static const uint64_t sha3_keccakf_rndc[24] = {
29 0x0000000000000001, 0x0000000000008082, 0x800000000000808a, 33 0x0000000000000001, 0x0000000000008082, 0x800000000000808a,
30 0x8000000080008000, 0x000000000000808b, 0x0000000080000001, 34 0x8000000080008000, 0x000000000000808b, 0x0000000080000001,