Lines Matching refs:curve25519
130 struct hpre_curve25519_ctx curve25519; member
145 struct kpp_request *curve25519; member
1228 } else if (!is_ecdh && ctx->curve25519.p) { in hpre_ecc_clear_ctx()
1230 memzero_explicit(ctx->curve25519.p + shift, sz); in hpre_ecc_clear_ctx()
1231 dma_free_coherent(dev, sz << 2, ctx->curve25519.p, in hpre_ecc_clear_ctx()
1232 ctx->curve25519.dma_p); in hpre_ecc_clear_ctx()
1233 ctx->curve25519.p = NULL; in hpre_ecc_clear_ctx()
1699 p = ctx->curve25519.p + sz - len; in hpre_curve25519_fill_curve()
1719 if (!ctx->curve25519.p) { in hpre_curve25519_set_param()
1720 ctx->curve25519.p = dma_alloc_coherent(dev, sz << 2, in hpre_curve25519_set_param()
1721 &ctx->curve25519.dma_p, in hpre_curve25519_set_param()
1723 if (!ctx->curve25519.p) in hpre_curve25519_set_param()
1727 ctx->curve25519.g = ctx->curve25519.p + shift + sz; in hpre_curve25519_set_param()
1728 ctx->curve25519.dma_g = ctx->curve25519.dma_p + shift + sz; in hpre_curve25519_set_param()
1797 areq = req->areq.curve25519; in hpre_curve25519_cb()
1828 h_req->areq.curve25519 = req; in hpre_curve25519_msg_request_set()
1833 msg->key = cpu_to_le64(ctx->curve25519.dma_p); in hpre_curve25519_msg_request_set()
1965 msg->in = cpu_to_le64(ctx->curve25519.dma_g); in hpre_curve25519_compute_value()