Home
last modified time | relevance | path

Searched refs:half_key_sz (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c1082 unsigned int half_key_sz = ctx->key_sz / 2; in qat_rsa_setkey_crt() local
1090 ctx->p = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_p, GFP_KERNEL); in qat_rsa_setkey_crt()
1093 memcpy(ctx->p + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt()
1101 ctx->q = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_q, GFP_KERNEL); in qat_rsa_setkey_crt()
1104 memcpy(ctx->q + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt()
1112 ctx->dp = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_dp, in qat_rsa_setkey_crt()
1116 memcpy(ctx->dp + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt()
1124 ctx->dq = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_dq, in qat_rsa_setkey_crt()
1128 memcpy(ctx->dq + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt()
1136 ctx->qinv = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_qinv, in qat_rsa_setkey_crt()
[all …]
/linux/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c1044 unsigned int half_key_sz = ctx->key_sz >> 1; in hpre_rsa_clear_ctx() local
1058 half_key_sz * HPRE_CRT_PRMS); in hpre_rsa_clear_ctx()
1059 dma_free_coherent(dev, half_key_sz * HPRE_CRT_PRMS, in hpre_rsa_clear_ctx()