Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joshua Root
libaacs
Commits
ddd765f6
Commit
ddd765f6
authored
May 17, 2011
by
npzacs
Browse files
Fixed key length in crypto_create_host_key_pair()
parent
497c2242
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libaacs/crypto.c
View file @
ddd765f6
...
...
@@ -501,8 +501,8 @@ void crypto_create_host_key_pair(uint8_t *host_key, uint8_t *host_key_point)
gcry_mpi_t
q_y
=
mpi_new
(
0
);
_gcry_mpi_ec_get_affine
(
q_x
,
q_y
,
&
Q
,
ctx
);
gcry_mpi_print
(
GCRYMPI_FMT_USG
,
host_key_point
,
0
,
NULL
,
q_x
);
gcry_mpi_print
(
GCRYMPI_FMT_USG
,
host_key_point
+
20
,
0
,
NULL
,
q_y
);
gcry_mpi_print
(
GCRYMPI_FMT_USG
,
host_key_point
,
2
0
,
NULL
,
q_x
);
gcry_mpi_print
(
GCRYMPI_FMT_USG
,
host_key_point
+
20
,
2
0
,
NULL
,
q_y
);
/* cleanup */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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