Home
last modified time | relevance | path

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

/freebsd/crypto/libecc/include/libecc/hash/
H A Dsm3.h63 } sm3_context; typedef
65 ATTRIBUTE_WARN_UNUSED_RET int sm3_init(sm3_context *ctx);
66 ATTRIBUTE_WARN_UNUSED_RET int sm3_update(sm3_context *ctx, const u8 *input, u32 ilen);
67 ATTRIBUTE_WARN_UNUSED_RET int sm3_final(sm3_context *ctx, u8 output[SM3_DIGEST_SIZE]);
H A Dhash_algs.h87 sm3_context sm3;
/freebsd/crypto/libecc/src/hash/
H A Dsm3.c85 ATTRIBUTE_WARN_UNUSED_RET static int sm3_process(sm3_context *ctx, const u8 data[SM3_BLOCK_SIZE]) in sm3_process()
189 int sm3_init(sm3_context *ctx) in sm3_init()
215 int sm3_update(sm3_context *ctx, const u8 *input, u32 ilen) in sm3_update()
264 int sm3_final(sm3_context *ctx, u8 output[SM3_DIGEST_SIZE]) in sm3_final()
323 sm3_context ctx; in sm3_scattered()
343 sm3_context ctx; in sm3()
H A Dhash_algs.c293 return sm3_init((sm3_context*)hctx); in _sm3_init()
297 return sm3_update((sm3_context*)hctx, chunk, chunklen); in _sm3_update()
301 return sm3_final((sm3_context*)hctx, output); in _sm3_final()