Lines Matching refs:in_len
114 static int do_aes(struct cipher_ctx *ctx, hal_cryp_aes_op_func_t fn, uint8_t *in_buf, int in_len, in do_aes() argument
138 status = fn(&data->hcryp, in_buf, in_len, out_buf, HAL_MAX_DELAY); in do_aes()
174 if (pkt->in_len > 16) { in crypto_stm32_ecb_encrypt()
179 ret = do_aes(ctx, hal_ecb_encrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ecb_encrypt()
195 if (pkt->in_len > 16) { in crypto_stm32_ecb_decrypt()
200 ret = do_aes(ctx, hal_ecb_decrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ecb_decrypt()
227 ret = do_aes(ctx, hal_cbc_encrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf + out_offset); in crypto_stm32_cbc_encrypt()
229 pkt->out_len = pkt->in_len + out_offset; in crypto_stm32_cbc_encrypt()
252 ret = do_aes(ctx, hal_cbc_decrypt_op, pkt->in_buf + in_offset, pkt->in_len, pkt->out_buf); in crypto_stm32_cbc_decrypt()
254 pkt->out_len = pkt->in_len - in_offset; in crypto_stm32_cbc_decrypt()
275 ret = do_aes(ctx, hal_ctr_encrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ctr_encrypt()
277 pkt->out_len = pkt->in_len; in crypto_stm32_ctr_encrypt()
298 ret = do_aes(ctx, hal_ctr_decrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ctr_decrypt()
300 pkt->out_len = pkt->in_len; in crypto_stm32_ctr_decrypt()