Lines Matching refs:pubkey
43 char *pubkey; member
734 if (unlikely(!ctx->rsa.pubkey)) in hpre_rsa_enc()
832 ctx->rsa.pubkey = dma_alloc_coherent(HPRE_DEV(ctx), vlen << 1, in hpre_rsa_set_n()
835 if (!ctx->rsa.pubkey) in hpre_rsa_set_n()
844 ctx->rsa.pubkey, in hpre_rsa_set_n()
846 ctx->rsa.pubkey = NULL; in hpre_rsa_set_n()
851 memcpy(ctx->rsa.pubkey + vlen, ptr, vlen); in hpre_rsa_set_n()
867 memcpy(ctx->rsa.pubkey + ctx->key_sz - vlen, ptr, vlen); in hpre_rsa_set_e()
968 if (ctx->rsa.pubkey) { in hpre_rsa_clear_ctx()
970 ctx->rsa.pubkey, ctx->rsa.dma_pubkey); in hpre_rsa_clear_ctx()
971 ctx->rsa.pubkey = NULL; in hpre_rsa_clear_ctx()
1042 if ((private && !ctx->rsa.prikey) || !ctx->rsa.pubkey) { in hpre_rsa_setkey()