Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
86b62836
Commit
86b62836
authored
May 25, 2010
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(test_main): Test dsa256.
Rev: nettle/testsuite/dsa-keygen-test.c:1.4
parent
71f687df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
testsuite/dsa-keygen-test.c
testsuite/dsa-keygen-test.c
+12
-4
No files found.
testsuite/dsa-keygen-test.c
View file @
86b62836
...
...
@@ -19,18 +19,26 @@ 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_dsa
160
(
&
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
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