/src/sys/sys/ |
sha3.h | 1 /* $NetBSD: sha3.h,v 1.1 2017/11/30 05:47:24 riastradh Exp $ */ 35 struct sha3 { struct 40 typedef struct { struct sha3 C224; } SHA3_224_CTX; 41 typedef struct { struct sha3 C256; } SHA3_256_CTX; 42 typedef struct { struct sha3 C384; } SHA3_384_CTX; 43 typedef struct { struct sha3 C512; } SHA3_512_CTX; 44 typedef struct { struct sha3 C128; } SHAKE128_CTX; 45 typedef struct { struct sha3 C256; } SHAKE256_CTX;
|
sha3.h | 1 /* $NetBSD: sha3.h,v 1.1 2017/11/30 05:47:24 riastradh Exp $ */ 35 struct sha3 { struct 40 typedef struct { struct sha3 C224; } SHA3_224_CTX; 41 typedef struct { struct sha3 C256; } SHA3_256_CTX; 42 typedef struct { struct sha3 C384; } SHA3_384_CTX; 43 typedef struct { struct sha3 C512; } SHA3_512_CTX; 44 typedef struct { struct sha3 C128; } SHAKE128_CTX; 45 typedef struct { struct sha3 C256; } SHAKE256_CTX;
|
/src/common/lib/libc/hash/sha3/ |
sha3.c | 1 /* $NetBSD: sha3.c,v 1.4 2024/01/19 19:32:42 christos Exp $ */ 41 __KERNEL_RCSID(0, "$NetBSD: sha3.c,v 1.4 2024/01/19 19:32:42 christos Exp $"); 48 __RCSID("$NetBSD: sha3.c,v 1.4 2024/01/19 19:32:42 christos Exp $"); 60 #include <sys/sha3.h> 107 sha3_init(struct sha3 *C, unsigned rw) 117 sha3_update(struct sha3 *C, const uint8_t *data, size_t len, unsigned rw) 196 sha3_final(uint8_t *h, unsigned d, struct sha3 *C, unsigned rw) 219 /* For SHA3-224, we need to expose a partial word. */ 231 shake_final(uint8_t *h, size_t d, struct sha3 *C, unsigned rw) 432 static const uint8_t d224_0[] = { /* SHA3-224(0-bit) * 542 struct sha3 sha3; local in function:SHA3_Selftest [all...] |
sha3.c | 1 /* $NetBSD: sha3.c,v 1.4 2024/01/19 19:32:42 christos Exp $ */ 41 __KERNEL_RCSID(0, "$NetBSD: sha3.c,v 1.4 2024/01/19 19:32:42 christos Exp $"); 48 __RCSID("$NetBSD: sha3.c,v 1.4 2024/01/19 19:32:42 christos Exp $"); 60 #include <sys/sha3.h> 107 sha3_init(struct sha3 *C, unsigned rw) 117 sha3_update(struct sha3 *C, const uint8_t *data, size_t len, unsigned rw) 196 sha3_final(uint8_t *h, unsigned d, struct sha3 *C, unsigned rw) 219 /* For SHA3-224, we need to expose a partial word. */ 231 shake_final(uint8_t *h, size_t d, struct sha3 *C, unsigned rw) 432 static const uint8_t d224_0[] = { /* SHA3-224(0-bit) * 542 struct sha3 sha3; local in function:SHA3_Selftest [all...] |