Lines Matching refs:curve25519
127 struct hpre_curve25519_ctx curve25519; member
142 struct kpp_request *curve25519; member
1208 } else if (!is_ecdh && ctx->curve25519.p) { in hpre_ecc_clear_ctx()
1210 memzero_explicit(ctx->curve25519.p + shift, sz); in hpre_ecc_clear_ctx()
1211 dma_free_coherent(dev, sz << 2, ctx->curve25519.p, in hpre_ecc_clear_ctx()
1212 ctx->curve25519.dma_p); in hpre_ecc_clear_ctx()
1213 ctx->curve25519.p = NULL; in hpre_ecc_clear_ctx()
1667 p = ctx->curve25519.p + sz - len; in hpre_curve25519_fill_curve()
1687 if (!ctx->curve25519.p) { in hpre_curve25519_set_param()
1688 ctx->curve25519.p = dma_alloc_coherent(dev, sz << 2, in hpre_curve25519_set_param()
1689 &ctx->curve25519.dma_p, in hpre_curve25519_set_param()
1691 if (!ctx->curve25519.p) in hpre_curve25519_set_param()
1695 ctx->curve25519.g = ctx->curve25519.p + shift + sz; in hpre_curve25519_set_param()
1696 ctx->curve25519.dma_g = ctx->curve25519.dma_p + shift + sz; in hpre_curve25519_set_param()
1765 areq = req->areq.curve25519; in hpre_curve25519_cb()
1796 h_req->areq.curve25519 = req; in hpre_curve25519_msg_request_set()
1801 msg->key = cpu_to_le64(ctx->curve25519.dma_p); in hpre_curve25519_msg_request_set()
1933 msg->in = cpu_to_le64(ctx->curve25519.dma_g); in hpre_curve25519_compute_value()