summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha3_internal.h
diff options
context:
space:
mode:
authorjsing <>2023-04-16 17:06:19 +0000
committerjsing <>2023-04-16 17:06:19 +0000
commit3142f6dc26e453ca269ab50d6c1b81f138e16f52 (patch)
tree43d762c93e59f7c4bfec4130d545027ef48f43fe /src/lib/libcrypto/sha/sha3_internal.h
parent8d66484d5bc1482f15919f88c5812dc2994b81e7 (diff)
downloadopenbsd-3142f6dc26e453ca269ab50d6c1b81f138e16f52.tar.gz
openbsd-3142f6dc26e453ca269ab50d6c1b81f138e16f52.tar.bz2
openbsd-3142f6dc26e453ca269ab50d6c1b81f138e16f52.zip
Provide EVP methods for SHA3 224/256/384/512.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/sha/sha3_internal.h')
-rw-r--r--src/lib/libcrypto/sha/sha3_internal.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/sha/sha3_internal.h b/src/lib/libcrypto/sha/sha3_internal.h
index 91b1a43b25..d6fe3b8345 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.13 2023/04/15 20:00:24 jsing Exp $ */ 1/* $OpenBSD: sha3_internal.h,v 1.14 2023/04/16 17:06:19 jsing Exp $ */
2/* 2/*
3 * The MIT License (MIT) 3 * The MIT License (MIT)
4 * 4 *
@@ -29,6 +29,16 @@
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#define NID_sha3_224 1031
33#define NID_sha3_256 1032
34#define NID_sha3_384 1033
35#define NID_sha3_512 1034
36
37#define NID_RSA_SHA3_224 1049
38#define NID_RSA_SHA3_256 1050
39#define NID_RSA_SHA3_384 1051
40#define NID_RSA_SHA3_512 1052
41
32#define KECCAK_BIT_WIDTH 1600 42#define KECCAK_BIT_WIDTH 1600
33#define KECCAK_BYTE_WIDTH (KECCAK_BIT_WIDTH / 8) 43#define KECCAK_BYTE_WIDTH (KECCAK_BIT_WIDTH / 8)
34 44