Lines Matching refs:iv

698 				  const enum cipher_op op, const uint8_t iv[16])  in crypto_si32_aes_cbc_op()
739 memcpy(pkt->out_buf, iv, 16); in crypto_si32_aes_cbc_op()
768 SI32_AES_0->HWCTR0.U32 = *((uint32_t *)iv); in crypto_si32_aes_cbc_op()
769 SI32_AES_0->HWCTR1.U32 = *((uint32_t *)iv + 1); in crypto_si32_aes_cbc_op()
770 SI32_AES_0->HWCTR2.U32 = *((uint32_t *)iv + 2); in crypto_si32_aes_cbc_op()
771 SI32_AES_0->HWCTR3.U32 = *((uint32_t *)iv + 3); in crypto_si32_aes_cbc_op()
863 *((uint32_t *)iv) = SI32_AES_0->HWCTR0.U32; in crypto_si32_aes_cbc_op()
864 *((uint32_t *)iv + 1) = SI32_AES_0->HWCTR1.U32; in crypto_si32_aes_cbc_op()
865 *((uint32_t *)iv + 2) = SI32_AES_0->HWCTR2.U32; in crypto_si32_aes_cbc_op()
866 *((uint32_t *)iv + 3) = SI32_AES_0->HWCTR3.U32; in crypto_si32_aes_cbc_op()
873 static int crypto_si32_aes_ctr_op(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t iv[12]) in crypto_si32_aes_ctr_op()
922 SI32_AES_0->HWCTR2.U32 = *((uint32_t *)iv + 2); in crypto_si32_aes_ctr_op()
923 SI32_AES_0->HWCTR1.U32 = *((uint32_t *)iv + 1); in crypto_si32_aes_ctr_op()
924 SI32_AES_0->HWCTR0.U32 = *((uint32_t *)iv); in crypto_si32_aes_ctr_op()
1027 static int crypto_si32_aes_cbc_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in crypto_si32_aes_cbc_encrypt() argument
1032 ret = crypto_si32_aes_cbc_op(ctx, pkt, CRYPTO_CIPHER_OP_ENCRYPT, iv); in crypto_si32_aes_cbc_encrypt()
1038 static int crypto_si32_aes_cbc_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in crypto_si32_aes_cbc_decrypt() argument
1043 ret = crypto_si32_aes_cbc_op(ctx, pkt, CRYPTO_CIPHER_OP_DECRYPT, iv); in crypto_si32_aes_cbc_decrypt()