Home
last modified time | relevance | path

Searched refs:sm3_context (Results 1 – 4 of 4) sorted by relevance

/optee_os/core/crypto/
H A Dsm3.h18 struct sm3_context { struct
26 void sm3_init(struct sm3_context *ctx); argument
27 void sm3_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen);
28 void sm3_final(struct sm3_context *ctx, uint8_t output[32]);
31 void sm3_hmac_init(struct sm3_context *ctx, const uint8_t *key, size_t keylen);
32 void sm3_hmac_update(struct sm3_context *ctx, const uint8_t *input,
34 void sm3_hmac_final(struct sm3_context *ctx, uint8_t output[32]);
H A Dsm3.c38 void sm3_init(struct sm3_context *ctx) in sm3_init()
67 static void __maybe_unused sm3_process(struct sm3_context *ctx, in sm3_process()
173 static void sm3_process_blocks(struct sm3_context *ctx, const uint8_t *input, in sm3_process_blocks()
187 void sm3_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen) in sm3_update()
228 void sm3_final(struct sm3_context *ctx, uint8_t output[32]) in sm3_final()
258 struct sm3_context ctx = { }; in sm3()
267 void sm3_hmac_init(struct sm3_context *ctx, const uint8_t *key, size_t keylen) in sm3_hmac_init()
292 void sm3_hmac_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen) in sm3_hmac_update()
297 void sm3_hmac_final(struct sm3_context *ctx, uint8_t output[32]) in sm3_hmac_final()
313 struct sm3_context ctx; in sm3_hmac()
H A Dsm3-hash.c23 struct sm3_context sm3_ctx;
H A Dsm3-hmac.c22 struct sm3_context sm3_ctx;