diff options
Diffstat (limited to 'src/lib/libcrypto/sha/sha3_internal.h')
| -rw-r--r-- | src/lib/libcrypto/sha/sha3_internal.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/sha/sha3_internal.h b/src/lib/libcrypto/sha/sha3_internal.h index befb615e48..91b1a43b25 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.12 2023/04/15 19:44:36 jsing Exp $ */ | 1 | /* $OpenBSD: sha3_internal.h,v 1.13 2023/04/15 20:00:24 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * The MIT License (MIT) | 3 | * The MIT License (MIT) |
| 4 | * | 4 | * |
| @@ -56,12 +56,14 @@ | |||
| 56 | #define SHA3_512_BLOCK_SIZE (SHA3_512_CAPACITY / 8) | 56 | #define SHA3_512_BLOCK_SIZE (SHA3_512_CAPACITY / 8) |
| 57 | #define SHA3_512_DIGEST_LENGTH (SHA3_512_BIT_LENGTH / 8) | 57 | #define SHA3_512_DIGEST_LENGTH (SHA3_512_BIT_LENGTH / 8) |
| 58 | 58 | ||
| 59 | typedef struct { | 59 | typedef struct sha3_ctx_st { |
| 60 | union { | 60 | union { |
| 61 | uint8_t b[200]; /* State as 8 bit bytes. */ | 61 | uint8_t b[200]; /* State as 8 bit bytes. */ |
| 62 | uint64_t q[25]; /* State as 64 bit words. */ | 62 | uint64_t q[25]; /* State as 64 bit words. */ |
| 63 | } state; | 63 | } state; |
| 64 | int pt, rsiz, mdlen; | 64 | size_t pt; |
| 65 | size_t rsize; | ||
| 66 | size_t mdlen; | ||
| 65 | } sha3_ctx; | 67 | } sha3_ctx; |
| 66 | 68 | ||
| 67 | int sha3_init(sha3_ctx *c, int mdlen); | 69 | int sha3_init(sha3_ctx *c, int mdlen); |
