Home
last modified time | relevance | path

Searched refs:sm3_ctx (Results 1 – 5 of 5) sorted by relevance

/linux/include/crypto/
H A Dsm3.h38 struct sm3_ctx { struct
52 void sm3_init(struct sm3_ctx *ctx); argument
64 void sm3_update(struct sm3_ctx *ctx, const u8 *data, size_t len);
75 void sm3_final(struct sm3_ctx *ctx, u8 out[at_least SM3_DIGEST_SIZE]);
/linux/crypto/
H A Dsm3.c17 #define SM3_CTX(desc) ((struct sm3_ctx *)shash_desc_ctx(desc))
47 memcpy(out, SM3_CTX(desc), sizeof(struct sm3_ctx)); in crypto_sm3_export_core()
53 memcpy(SM3_CTX(desc), in, sizeof(struct sm3_ctx)); in crypto_sm3_import_core()
70 .descsize = sizeof(struct sm3_ctx),
/linux/lib/crypto/
H A Dsm3.c199 void sm3_init(struct sm3_ctx *ctx) in sm3_init()
206 void sm3_update(struct sm3_ctx *ctx, const u8 *data, size_t len) in sm3_update()
239 static void __sm3_final(struct sm3_ctx *ctx, u8 out[SM3_DIGEST_SIZE]) in __sm3_final()
258 void sm3_final(struct sm3_ctx *ctx, u8 out[SM3_DIGEST_SIZE]) in sm3_final()
267 struct sm3_ctx ctx; in sm3()
/linux/lib/crypto/tests/
H A Dsm3_kunit.c9 #define HASH_CTX sm3_ctx
/linux/drivers/crypto/starfive/
H A Djh7110-hash.c798 .statesize = sizeof(struct sm3_ctx),
827 .statesize = sizeof(struct sm3_ctx),