Lines Matching refs:input
173 static void sm3_process_blocks(struct sm3_context *ctx, const uint8_t *input, in sm3_process_blocks() argument
178 crypto_accel_sm3_compress(ctx->state, input, block_count); in sm3_process_blocks()
183 sm3_process(ctx, input + n * SM3_BLOCK_SIZE); in sm3_process_blocks()
187 void sm3_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen) in sm3_update() argument
205 memcpy(ctx->buffer + left, input, fill); in sm3_update()
207 input += fill; in sm3_update()
213 sm3_process_blocks(ctx, input, block_count); in sm3_update()
215 input += block_count * SM3_BLOCK_SIZE; in sm3_update()
218 memcpy(ctx->buffer + left, input, ilen); in sm3_update()
256 void sm3(const uint8_t *input, size_t ilen, uint8_t output[32]) in sm3() argument
261 sm3_update(&ctx, input, ilen); in sm3()
292 void sm3_hmac_update(struct sm3_context *ctx, const uint8_t *input, size_t ilen) in sm3_hmac_update() argument
294 sm3_update(ctx, input, ilen); in sm3_hmac_update()
310 void sm3_hmac(const uint8_t *key, size_t keylen, const uint8_t *input, in sm3_hmac() argument
316 sm3_hmac_update(&ctx, input, ilen); in sm3_hmac()