Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brian Smith
nettle
Commits
86b62836
Commit
86b62836
authored
May 25, 2010
by
Niels Möller
Browse files
(test_main): Test dsa256.
Rev: nettle/testsuite/dsa-keygen-test.c:1.4
parent
71f687df
Changes
1
Show whitespace changes
Inline
Side-by-side
testsuite/dsa-keygen-test.c
View file @
86b62836
...
...
@@ -19,17 +19,25 @@ test_main(void)
dsa_private_key_init
(
&
key
);
dsa_public_key_init
(
&
pub
);
/* Generate a 1024 bit key with random e */
knuth_lfib_init
(
&
lfib
,
13
);
if
(
!
dsa_generate_keypair
(
&
pub
,
&
key
,
&
lfib
,
(
nettle_random_func
*
)
knuth_lfib_random
,
NULL
,
verbose
?
progress
:
NULL
,
1024
))
1024
,
160
))
FAIL
();
test_dsa_key
(
&
pub
,
&
key
);
test_dsa
(
&
pub
,
&
key
);
test_dsa_key
(
&
pub
,
&
key
,
160
);
test_dsa160
(
&
pub
,
&
key
);
if
(
!
dsa_generate_keypair
(
&
pub
,
&
key
,
&
lfib
,
(
nettle_random_func
*
)
knuth_lfib_random
,
NULL
,
verbose
?
progress
:
NULL
,
2048
,
256
))
FAIL
();
test_dsa_key
(
&
pub
,
&
key
,
256
);
test_dsa256
(
&
pub
,
&
key
);
dsa_public_key_clear
(
&
pub
);
dsa_private_key_clear
(
&
key
);
...
...
Write
Preview
Supports
Markdown
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