summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha3_internal.h
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_internal.h
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_internal.h')
-rw-r--r--src/lib/libcrypto/sha/sha3_internal.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libcrypto/sha/sha3_internal.h b/src/lib/libcrypto/sha/sha3_internal.h
index 1ed4b02f7c..20144effd1 100644
--- a/src/lib/libcrypto/sha/sha3_internal.h
+++ b/src/lib/libcrypto/sha/sha3_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sha3_internal.h,v 1.5 2023/04/15 18:22:53 jsing Exp $ */ 1/* $OpenBSD: sha3_internal.h,v 1.6 2023/04/15 18:29:26 jsing Exp $ */
2/* 2/*
3 * The MIT License (MIT) 3 * The MIT License (MIT)
4 * 4 *
@@ -29,14 +29,6 @@
29#ifndef HEADER_SHA3_INTERNAL_H 29#ifndef HEADER_SHA3_INTERNAL_H
30#define HEADER_SHA3_INTERNAL_H 30#define HEADER_SHA3_INTERNAL_H
31 31
32#ifndef KECCAKF_ROUNDS
33#define KECCAKF_ROUNDS 24
34#endif
35
36#ifndef ROTL64
37#define ROTL64(x, y) (((x) << (y)) | ((x) >> (64 - (y))))
38#endif
39
40typedef struct { 32typedef struct {
41 union { 33 union {
42 uint8_t b[200]; /* State as 8 bit bytes. */ 34 uint8_t b[200]; /* State as 8 bit bytes. */