Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
bb6095d6
Commit
bb6095d6
authored
Jun 15, 2004
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/dh_exchange.c
View file @
bb6095d6
...
...
@@ -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
,
...
...
src/publickey_crypto.h
View file @
bb6095d6
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment