Searched refs:prikey (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 71 char *prikey; member 864 if (unlikely(!ctx->rsa.prikey)) in hpre_rsa_dec() 921 ctx->rsa.prikey = dma_alloc_coherent(ctx->dev, vlen << 1, in hpre_rsa_set_n() 924 if (!ctx->rsa.prikey) { in hpre_rsa_set_n() 931 memcpy(ctx->rsa.prikey + vlen, ptr, vlen); in hpre_rsa_set_n() 964 memcpy(ctx->rsa.prikey + ctx->key_sz - vlen, ptr, vlen); in hpre_rsa_set_d() 1064 if (ctx->rsa.prikey) { in hpre_rsa_clear_ctx() 1065 memzero_explicit(ctx->rsa.prikey, ctx->key_sz); in hpre_rsa_clear_ctx() 1066 dma_free_coherent(dev, ctx->key_sz << 1, ctx->rsa.prikey, in hpre_rsa_clear_ctx() 1068 ctx->rsa.prikey = NULL; in hpre_rsa_clear_ctx() [all …]
|