Home
last modified time | relevance | path

Searched refs:hard_key (Results 1 - 7 of 7) sorted by relevance

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/include/
H A Dext_alg.h31 * param hard_key symc use hard key or not
33 hi_void *ext_mbedtls_aead_create(hi_u32 hard_key);
119 * param hard_key symc use hard key or not
121 hi_void *ext_mbedtls_symc_create(hi_u32 hard_key);
192 * param hard_key sm4 use hard key or not
194 hi_void *ext_sm4_create(hi_u32 hard_key);
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/
H A Dkapi_symc.c440 static hi_s32 kapi_symc_chk_param(hi_u32 hard_key, const symc_cfg_t *cfg, symc_width *width) in kapi_symc_chk_param() argument
452 if ((hard_key != HI_TRUE) && (hard_key != HI_FALSE)) { in kapi_symc_chk_param()
453 hi_log_error("Invalid hard_key: 0x%x\n", hard_key); in kapi_symc_chk_param()
550 * hard_key: bit[0~7] flag of hard key or not in kapi_symc_chk_cfg()
553 set_cfg->byca = cfg->hard_key & 0xFF; in kapi_symc_chk_cfg()
554 set_cfg->ca_type = cfg->hard_key >> BITS_IN_BYTE; in kapi_symc_chk_cfg()
558 hi_log_error("hard_key 0x%x\n", cfg->hard_key); in kapi_symc_chk_cfg()
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
H A Dcryp_symc.c154 hisi_ctx->hard_key = HI_FALSE; in cryp_symc_create()
504 decrypt, hisi_ctx->klen, hisi_ctx->hard_key, in cryp_symc_config()
516 if (hisi_ctx->hard_key != HI_TRUE) { in cryp_symc_config()
1268 hisi_ctx->hard_key = HI_TRUE; in cryp_aes_setkey()
1345 hisi_ctx->hard_key = HI_TRUE; in cryp_tdes_setkey()
1439 hisi_ctx->hard_key = HI_TRUE; in cryp_sm1_setkey()
1472 hisi_ctx->hard_key = HI_TRUE; in cryp_sm4_setkey()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/include/
H A Ddrv_symc.h237 hi_u32 hard_key; /* Key derived from klad or CPU */ member
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/
H A Ddrv_cipher_kapi.h247 hi_u32 hard_key; /* Use hard key or not */ member
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/
H A Ddrv_symc_v200.c1539 ctx_cfg->hard_chn, ctx_cfg->alg, ctx_cfg->mode, decrypt, ctx_cfg->hard_key); in drv_symc_cfg()
1543 cipher_ctrl.bits.sym_chn_key_sel = ctx_cfg->hard_key; in drv_symc_cfg()
H A Ddrv_symc_v100.c702 ctx.hard_key = HI_FALSE; in drv_cipher_aes_test()
1368 ctrl.bits.key_sel = ctx->hard_key; in drv_symc_cfg()

Completed in 19 milliseconds