Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
1efe68ad
Commit
1efe68ad
authored
10 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Test case for ecdsa_verify using curve25519.
parent
a7770022
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
testsuite/ecdsa-verify-test.c
+13
-0
13 additions, 0 deletions
testsuite/ecdsa-verify-test.c
with
15 additions
and
0 deletions
ChangeLog
+
2
−
0
View file @
1efe68ad
...
...
@@ -16,6 +16,8 @@
* testsuite/ecdsa-sign-test.c (test_main): Added test for the
obscure case of ecdsa using curve25519.
* testsuite/ecdsa-verify-test.c (test_main): Likewise (depends on
above changes).
* ecc-ecdsa-sign.c (ecc_ecdsa_sign): Use mul_g and h_to_a function
pointers. Implies (obscure) support for curve25519.
...
...
This diff is collapsed.
Click to expand it.
testsuite/ecdsa-verify-test.c
+
13
−
0
View file @
1efe68ad
...
...
@@ -145,4 +145,17 @@ test_main (void)
"97536710 1F67D1CF 9BCCBF2F 3D239534"
"FA509E70 AAC851AE 01AAC68D 62F86647"
"2660"
);
/* s */
test_ecdsa
(
&
nettle_curve25519
,
/* Public key corresponding to the key in ecdsa-sign-test */
" eb07d9c7931d614 2669124e12273e1f"
"b9f9555f52bed369 a71cdac173da0ceb"
,
/* x */
"2e726b0b1ff3abc4 d50798ebc246399e"
"365777c0900a0d5b 425f819278d4281d"
,
/* y */
SHEX
(
"e99df2a098c3c590 ea1e1db6d9547339"
"ae760d5331496119 5d967fd881e3b0f5"
),
/* h */
" 62cbc248a549765 3641d1cbedda2733"
"a7357821dca43727 d8081448d608030d"
,
/* r */
" 14726f472f44f84 63fe82c2712231cd"
"937f2aecdcfe9c39 e2ab0d68c390ccf4"
);
/* s */
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment