Home
last modified time | relevance | path

Searched refs:crypto_chk_err_goto (Results 1 – 7 of 7) sorted by relevance

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/
Dkapi_dispatch.c240crypto_chk_err_goto(crypto_copy_from_user(key, start->keylen, addr_via(start->key), start->keylen)… in dispatch_hash_start()
243 crypto_chk_err_goto(kapi_hash_start(&start->id, start->type, key, start->keylen)); in dispatch_hash_start()
342 crypto_chk_err_goto(crypto_copy_from_user(key->n, klen, addr_via(rsa_info->n), klen)); in rsa_pub_alloc()
343 crypto_chk_err_goto(crypto_copy_from_user(*in, klen, addr_via(rsa_info->in), klen)); in rsa_pub_alloc()
405 crypto_chk_err_goto(crypto_copy_from_user(key->n, klen, addr_via(rsa_info->n), klen)); in rsa_private_get_cfg()
413 crypto_chk_err_goto(crypto_copy_from_user(key->d, klen, addr_via(rsa_info->d), klen)); in rsa_private_get_cfg()
415 crypto_chk_err_goto(crypto_copy_from_user( in rsa_private_get_cfg()
417 crypto_chk_err_goto(crypto_copy_from_user( in rsa_private_get_cfg()
419 crypto_chk_err_goto(crypto_copy_from_user( in rsa_private_get_cfg()
421 crypto_chk_err_goto(crypto_copy_from_user( in rsa_private_get_cfg()
[all …]
Dkapi_symc.c661 crypto_chk_err_goto(kapi_symc_set_key(cfg, ctx, set_cfg)); in kapi_symc_cfg_set_param()
665 crypto_chk_err_goto(ctx->func->setiv(ctx->cryp_ctx, cfg->iv, cfg->ivlen, cfg->iv_usage)); in kapi_symc_cfg_set_param()
670 crypto_chk_err_goto(ctx->func->setround(ctx->cryp_ctx, cfg->sm1_round_num)); in kapi_symc_cfg_set_param()
675crypto_chk_err_goto(cipher_check_mmz_phy_addr((hi_phys_addr_t)addr_u64(cfg->aad), cfg->alen)); in kapi_symc_cfg_set_param()
677 crypto_chk_err_goto(kapi_symc_check_ccm_gcm_taglen(cfg->alg, cfg->mode, cfg->tlen)); in kapi_symc_cfg_set_param()
678 crypto_chk_err_goto(ctx->func->setadd(ctx->cryp_ctx, cfg->aad, cfg->alen, cfg->tlen)); in kapi_symc_cfg_set_param()
691 crypto_chk_err_goto(kapi_symc_cpy_key_iv(cfg, ctx, set_cfg)); in kapi_symc_cfg_set_param()
863crypto_chk_err_goto(crypto_copy_from_user(mem.dma_virt, crypt->len, addr_via(crypt->in), crypt->le… in kapi_symc_crypto_via()
878 crypto_chk_err_goto(kapi_symc_crypto(&local_crypt)); in kapi_symc_crypto_via()
881crypto_chk_err_goto(crypto_copy_to_user(addr_via(crypt->out), crypt->len, mem.dma_virt, crypt->len… in kapi_symc_crypto_via()
Dkapi_hash.c283 crypto_chk_err_goto(ctx->func->update(ctx->cryp_ctx, key, keylen, HASH_CHUNCK_SRC_LOCAL)); in kapi_hmac_start()
286 crypto_chk_err_goto(ctx->func->finish(ctx->cryp_ctx, sum, sizeof(sum), &len)); in kapi_hmac_start()
307crypto_chk_err_goto(ctx->func->update(ctx->cryp_ctx, ctx->hmac_ipad, ctx->func->block_size, HASH_C… in kapi_hmac_start()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
Dcryp_rsa.c190 crypto_chk_err_goto(mbedtls_mpi_mod_mpi(&tmp_a, a, n)); in cryp_ifep_rsa_exp_mod()
193 crypto_chk_err_goto(mbedtls_mpi_write_binary(&tmp_a, in, keylen)); in cryp_ifep_rsa_exp_mod()
194 crypto_chk_err_goto(mbedtls_mpi_write_binary(e, k, keylen)); in cryp_ifep_rsa_exp_mod()
195 crypto_chk_err_goto(mbedtls_mpi_write_binary(n, tmp_n, keylen)); in cryp_ifep_rsa_exp_mod()
198 crypto_chk_err_goto(cryp_check_data(tmp_n, k, in, keylen)); in cryp_ifep_rsa_exp_mod()
341 crypto_chk_err_goto(mbedtls_mpi_read_binary(&rsa->N, key->n, key->klen)); in cryp_rsa_init_key()
351 crypto_chk_err_goto(mbedtls_mpi_read_binary(&rsa->E, (hi_u8 *)&key->e, WORD_WIDTH)); in cryp_rsa_init_key()
355 crypto_chk_err_goto(mbedtls_mpi_read_binary(&rsa->D, key->d, key->klen)); in cryp_rsa_init_key()
358 crypto_chk_err_goto(mbedtls_mpi_read_binary(&rsa->P, key->p, key->klen / MUL_VAL_2)); in cryp_rsa_init_key()
359 crypto_chk_err_goto(mbedtls_mpi_read_binary(&rsa->Q, key->q, key->klen / MUL_VAL_2)); in cryp_rsa_init_key()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/
Dext_sm3.c351crypto_chk_err_goto(crypto_copy_from_user(ptr, HASH_MAX_BUFFER_SIZE, chunk + offset, length)); in ext_sm3_update()
352 crypto_chk_err_goto(sm3_update(ctx, ptr, length)); in ext_sm3_update()
362 crypto_chk_err_goto(sm3_update(ctx, chunk, chunk_len)); in ext_sm3_update()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/
Ddrv_symc_v100.c703 crypto_chk_err_goto(drv_symc_cfg(&ctx, HI_FALSE, SYMC_KEY_DEFAULT)); in drv_cipher_aes_test()
707crypto_chk_err_goto(drv_symc_add_inbuf(chn, mem.dma_addr, AES_BLOCK_SIZE, SYMC_NODE_USAGE_NORMAL)); in drv_cipher_aes_test()
708crypto_chk_err_goto(drv_symc_add_outbuf(chn, mem.dma_addr, AES_BLOCK_SIZE, SYMC_NODE_USAGE_NORMAL)… in drv_cipher_aes_test()
711 crypto_chk_err_goto(drv_symc_start(chn)); in drv_cipher_aes_test()
714 crypto_chk_err_goto(drv_symc_wait_done(chn, CRYPTO_TIME_OUT)); in drv_cipher_aes_test()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/
Ddrv_cipher_kapi.h142 #define crypto_chk_err_goto(_expr) \ macro