diff options
Diffstat (limited to 'src/lib/libcrypto/sha/sha3_internal.h')
-rw-r--r-- | src/lib/libcrypto/sha/sha3_internal.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/sha/sha3_internal.h b/src/lib/libcrypto/sha/sha3_internal.h index 20144effd1..5156ad9d80 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.6 2023/04/15 18:29:26 jsing Exp $ */ | 1 | /* $OpenBSD: sha3_internal.h,v 1.7 2023/04/15 18:30:27 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * The MIT License (MIT) | 3 | * The MIT License (MIT) |
4 | * | 4 | * |
@@ -35,13 +35,13 @@ typedef struct { | |||
35 | uint64_t q[25]; /* State as 64 bit words. */ | 35 | uint64_t q[25]; /* State as 64 bit words. */ |
36 | } st; | 36 | } st; |
37 | int pt, rsiz, mdlen; | 37 | int pt, rsiz, mdlen; |
38 | } sha3_ctx_t; | 38 | } sha3_ctx; |
39 | 39 | ||
40 | void sha3_keccakf(uint64_t st[25]); | 40 | void sha3_keccakf(uint64_t st[25]); |
41 | 41 | ||
42 | int sha3_init(sha3_ctx_t *c, int mdlen); | 42 | int sha3_init(sha3_ctx *c, int mdlen); |
43 | int sha3_update(sha3_ctx_t *c, const void *data, size_t len); | 43 | int sha3_update(sha3_ctx *c, const void *data, size_t len); |
44 | int sha3_final(void *md, sha3_ctx_t *c); | 44 | int sha3_final(void *md, sha3_ctx *c); |
45 | 45 | ||
46 | void *sha3(const void *in, size_t inlen, void *md, int mdlen); | 46 | void *sha3(const void *in, size_t inlen, void *md, int mdlen); |
47 | 47 | ||
@@ -50,7 +50,7 @@ void *sha3(const void *in, size_t inlen, void *md, int mdlen); | |||
50 | #define shake256_init(c) sha3_init(c, 32) | 50 | #define shake256_init(c) sha3_init(c, 32) |
51 | #define shake_update sha3_update | 51 | #define shake_update sha3_update |
52 | 52 | ||
53 | void shake_xof(sha3_ctx_t *c); | 53 | void shake_xof(sha3_ctx *c); |
54 | void shake_out(sha3_ctx_t *c, void *out, size_t len); | 54 | void shake_out(sha3_ctx *c, void *out, size_t len); |
55 | 55 | ||
56 | #endif | 56 | #endif |