Home
last modified time | relevance | path

Searched refs:AES_IV_SIZE (Results 1 – 8 of 8) sorted by relevance

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/
Dext_sm4.c87 hi_u8 iv[AES_IV_SIZE];
246 if (memcpy_s((hi_void *)ivec, AES_IV_SIZE, out, SM4_BLOCK_SIZE) != EOK) { in sm4_cbc_crypt()
447 if (memcpy_s(symc->iv, AES_IV_SIZE, iv, ivlen) != EOK) { in ext_sm4_setiv()
466 if (memcpy_s(iv, AES_IV_SIZE, symc->iv, sizeof(symc->iv)) != EOK) { in ext_sm4_getiv()
470 *ivlen = AES_IV_SIZE; in ext_sm4_getiv()
Dext_aead.c32 hi_u32 iv[AES_IV_SIZE / WORD_WIDTH]; /* symc IV */
85 hi_log_chk_param_return(ivlen > AES_IV_SIZE); in ext_mbedtls_aead_setiv()
88 if (memcpy_s(aead->iv, AES_IV_SIZE, iv, ivlen) != EOK) { in ext_mbedtls_aead_setiv()
Dext_symc.c136 hi_log_chk_param_return(ivlen > AES_IV_SIZE); in ext_mbedtls_symc_setiv()
155 if (memcpy_s(iv, AES_IV_SIZE, symc->cipher.iv, symc->cipher.iv_size) != EOK) { in ext_mbedtls_symc_getiv()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/include/
Ddrv_symc.h176 char iv[AES_IV_SIZE * MUL_VAL_2 + BOUND_VAL_1];
231 hi_u32 iv[AES_IV_SIZE / WORD_WIDTH]; /* symc IV */
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/
Ddrv_cipher_kapi.h158 #define AES_IV_SIZE 16 macro
255 hi_u8 iv[AES_IV_SIZE]; /* IV buffer */
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
Dcryp_symc.c207 if (memcpy_s(hisi_ctx->iv, AES_IV_SIZE, iv, ivlen) != EOK) { in cryp_symc_setiv()
228 if (memcpy_s(iv, AES_IV_SIZE, hisi_ctx->iv, hisi_ctx->ivlen) != EOK) { in cryp_symc_getiv()
737 hi_u8 ccm_iv[AES_IV_SIZE] = {0}; in cryp_aead_ccm_setiv()
1496 if (ivlen > AES_IV_SIZE) { in cryp_symc_setiv_default()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/
Dkapi_symc.c616 if (cfg->ivlen > AES_IV_SIZE) { in kapi_symc_cpy_key_iv()
621 if (memcpy_s(ctx->ctrl.iv, AES_IV_SIZE, cfg->iv, cfg->ivlen) != EOK) { in kapi_symc_cpy_key_iv()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/
Ddrv_symc_v200.c51 hi_u32 iv[AES_IV_SIZE / WORD_WIDTH]; /* symc IV */