Lines Matching refs:DH
11 * DH low level APIs are deprecated for public use, but still ok for
29 static int generate_key(DH *dh);
30 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
33 static int dh_init(DH *dh);
34 static int dh_finish(DH *dh);
38 * Finite Field Cryptography Diffie-Hellman (FFC DH) Primitive
40 int ossl_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
114 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
144 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
166 "OpenSSL DH Method",
189 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
196 static int dh_init(DH *dh)
204 static int dh_finish(DH *dh)
217 int DH_generate_key(DH *dh)
226 int ossl_dh_generate_public_key(BN_CTX *ctx, const DH *dh,
238 * We take the input DH as const, but we lie, because in some cases we
262 static int generate_key(DH *dh)
385 int ossl_dh_buf2key(DH *dh, const unsigned char *buf, size_t len)
413 size_t ossl_dh_key2buf(const DH *dh, unsigned char **pbuf_out, size_t size,