Commit bb6095d6 authored by Niels Möller's avatar Niels Möller
Browse files

(make_dh14): New function.

Rev: src/dh_exchange.c:1.20
Rev: src/publickey_crypto.h:1.53
parent 84d8867b
......@@ -97,6 +97,12 @@ make_dh1(struct randomness *r)
return make_dh(make_ssh_group1(), &crypto_sha1_algorithm, r);
}
struct dh_method *
make_dh14(struct randomness *r)
{
return make_dh(make_ssh_group14(), &crypto_sha1_algorithm, r);
}
/* R is set to a random, secret, exponent, and V set to is g^r */
void
dh_generate_secret(const struct dh_method *self,
......
......@@ -172,6 +172,9 @@ make_dh(const struct zn_group *G,
struct dh_method *
make_dh1(struct randomness *r);
struct dh_method *
make_dh14(struct randomness *r);
void
init_dh_instance(const struct dh_method *m,
struct dh_instance *self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment