Home
last modified time | relevance | path

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

/optee_os/core/crypto/
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]);
A Dsm3.c34 void sm3_init(struct sm3_context *ctx) in sm3_init()
49 static void sm3_process(struct sm3_context *ctx, const uint8_t data[64]) in sm3_process()
157 void sm3_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen) in sm3_update()
198 void sm3_final(struct sm3_context *ctx, uint8_t output[32]) in sm3_final()
228 struct sm3_context ctx = { }; in sm3()
237 void sm3_hmac_init(struct sm3_context *ctx, const uint8_t *key, size_t keylen) in sm3_hmac_init()
262 void sm3_hmac_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen) in sm3_hmac_update()
267 void sm3_hmac_final(struct sm3_context *ctx, uint8_t output[32]) in sm3_hmac_final()
283 struct sm3_context ctx; in sm3_hmac()
A Dsm3-hash.c23 struct sm3_context sm3_ctx;
A Dsm3-hmac.c23 struct sm3_context sm3_ctx;

Completed in 6 milliseconds