Searched refs:sha3_ctx (Results 1 – 4 of 4) sorted by relevance
73 struct sha3_ctx { struct84 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 …]
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),
233 void sha3_final(struct sha3_ctx *sha3_ctx, u8 *out) in sha3_final() argument235 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()
10 #define HASH_CTX sha3_ctx274 struct sha3_ctx main_ctx; in test_shake_all_lens_up_to_4096()