Searched refs:sha3_ctx (Results 1 – 5 of 5) sorted by relevance
| /linux/include/crypto/ |
| H A D | sha3.h | 73 struct sha3_ctx { struct 84 static inline void sha3_zeroize_ctx(struct sha3_ctx *ctx) in sha3_zeroize_ctx() 116 static inline void sha3_224_init(struct sha3_ctx *ctx) in sha3_224_init() 118 *ctx = (struct sha3_ctx){ in sha3_224_init() 132 static inline void sha3_256_init(struct sha3_ctx *ctx) in sha3_256_init() 134 *ctx = (struct sha3_ctx){ in sha3_256_init() 148 static inline void sha3_384_init(struct sha3_ctx *ctx) in sha3_384_init() 150 *ctx = (struct sha3_ctx){ in sha3_384_init() 164 static inline void sha3_512_init(struct sha3_ctx *ctx) in sha3_512_init() 166 *ctx = (struct sha3_ctx){ in sha3_512_init() [all …]
|
| /linux/crypto/ |
| H A D | sha3.c | 11 #define SHA3_CTX(desc) ((struct sha3_ctx *)shash_desc_ctx(desc)) 80 memcpy(out, SHA3_CTX(desc), sizeof(struct sha3_ctx)); in crypto_sha3_export_core() 86 memcpy(SHA3_CTX(desc), in, sizeof(struct sha3_ctx)); in crypto_sha3_import_core() 98 .descsize = sizeof(struct sha3_ctx), 111 .descsize = sizeof(struct sha3_ctx), 124 .descsize = sizeof(struct sha3_ctx), 137 .descsize = sizeof(struct sha3_ctx),
|
| /linux/Documentation/crypto/ |
| H A D | sha3.rst | 51 struct sha3_ctx { ... }; 55 void sha3_224_init(struct sha3_ctx *ctx); 56 void sha3_256_init(struct sha3_ctx *ctx); 57 void sha3_384_init(struct sha3_ctx *ctx); 58 void sha3_512_init(struct sha3_ctx *ctx); 62 void sha3_update(struct sha3_ctx *ctx, const u8 *in, size_t in_len); 66 void sha3_final(struct sha3_ctx *ctx, u8 *out);
|
| /linux/lib/crypto/ |
| H A D | sha3.c | 233 void sha3_final(struct sha3_ctx *sha3_ctx, u8 *out) in sha3_final() argument 235 struct __sha3_ctx *ctx = &sha3_ctx->ctx; in sha3_final() 241 sha3_zeroize_ctx(sha3_ctx); in sha3_final() 314 struct sha3_ctx ctx; in sha3_224() 326 struct sha3_ctx ctx; in sha3_256() 338 struct sha3_ctx ctx; in sha3_384() 350 struct sha3_ctx ctx; in sha3_512()
|
| /linux/lib/crypto/tests/ |
| H A D | sha3_kunit.c | 10 #define HASH_CTX sha3_ctx 274 struct sha3_ctx main_ctx; in test_shake_all_lens_up_to_4096()
|