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
OTRv4
libgoldilocks
Commits
a4c3db46
Unverified
Commit
a4c3db46
authored
Jul 08, 2018
by
Ola Bini
Browse files
Add rest of EdDSA RFC test vectors. Also test of EdDSA verify, of test vectors.
parent
8c78e379
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
test/test_goldilocks.cxx
View file @
a4c3db46
...
...
@@ -522,6 +522,15 @@ static void test_cfrg_vectors() {
for
(
unsigned
i
=
0
;
i
<
sig
.
size
();
i
++
)
printf
(
"%02x"
,
sig
[
i
]);
printf
(
"
\n
"
);
}
try
{
if
(
!
eddsa_prehashed
[
t
])
{
priv
.
pub
().
verify
(
eddsa_sig
[
t
],
eddsa_message
[
t
],
eddsa_context
[
t
]);
}
}
catch
(
CryptoException
&
)
{
test
.
fail
();
printf
(
" EdDSA Verify vector #%d disagree
\n
"
,
t
);
}
}
/* X448 */
...
...
test/vectors.inc.cxx
View file @
a4c3db46
This diff is collapsed.
Click to expand it.
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