summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha3.c
diff options
context:
space:
mode:
authorjsing <>2023-04-15 18:29:26 +0000
committerjsing <>2023-04-15 18:29:26 +0000
commitbd23c862538abf858d6e85f1288a75dd149ad008 (patch)
tree6ee17adcb6d44cb9d73c6ed6ce2b677ea1969b72 /src/lib/libcrypto/sha/sha3.c
parentf98f9081dc5689f2816bf2082b4f59f3c6d65494 (diff)
downloadopenbsd-bd23c862538abf858d6e85f1288a75dd149ad008.tar.gz
openbsd-bd23c862538abf858d6e85f1288a75dd149ad008.tar.bz2
openbsd-bd23c862538abf858d6e85f1288a75dd149ad008.zip
Move some defines out of the sha3_internal.h header.
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,