Searched refs:half_key_sz (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/drivers/crypto/qat/qat_common/ |
D | qat_asym_algs.c | 1029 unsigned int half_key_sz = ctx->key_sz / 2; in qat_rsa_setkey_crt() local 1037 ctx->p = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_p, GFP_KERNEL); in qat_rsa_setkey_crt() 1040 memcpy(ctx->p + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt() 1048 ctx->q = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_q, GFP_KERNEL); in qat_rsa_setkey_crt() 1051 memcpy(ctx->q + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt() 1059 ctx->dp = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_dp, in qat_rsa_setkey_crt() 1063 memcpy(ctx->dp + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt() 1071 ctx->dq = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_dq, in qat_rsa_setkey_crt() 1075 memcpy(ctx->dq + (half_key_sz - len), ptr, len); in qat_rsa_setkey_crt() 1083 ctx->qinv = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_qinv, in qat_rsa_setkey_crt() [all …]
|
/Linux-v6.1/drivers/crypto/hisilicon/hpre/ |
D | hpre_crypto.c | 1027 unsigned int half_key_sz = ctx->key_sz >> 1; in hpre_rsa_clear_ctx() local 1041 half_key_sz * HPRE_CRT_PRMS); in hpre_rsa_clear_ctx() 1042 dma_free_coherent(dev, half_key_sz * HPRE_CRT_PRMS, in hpre_rsa_clear_ctx()
|