Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
decaf
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
external
decaf
Commits
a32fd625
Commit
a32fd625
authored
Mar 09, 2016
by
Michael Hamburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mark more things at toy
parent
a01e875d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
bench_decaf.cxx
test/bench_decaf.cxx
+1
-1
test_ct.cxx
test/test_ct.cxx
+1
-0
test_decaf.cxx
test/test_decaf.cxx
+3
-3
No files found.
test/bench_decaf.cxx
View file @
a32fd625
...
...
@@ -319,7 +319,7 @@ static void macro() {
printf
(
"CFRG crypto benchmarks:
\n
"
);
cfrg
();
printf
(
"
\n
Sample
crypto benchmarks:
\n
"
);
printf
(
"
\n
Toy
crypto benchmarks:
\n
"
);
SpongeRng
rng
(
Block
(
"macro rng seed"
),
SpongeRng
::
DETERMINISTIC
);
PrivateKey
<
Group
>
s1
((
NOINIT
())),
s2
(
rng
);
PublicKey
<
Group
>
p1
((
NOINIT
())),
p2
(
s2
);
...
...
test/test_ct.cxx
View file @
a32fd625
...
...
@@ -17,6 +17,7 @@
#include <valgrind/memcheck.h>
using
namespace
decaf
;
using
namespace
decaf
::
TOY
;
static
const
long
NTESTS
=
10
;
...
...
test/test_decaf.cxx
View file @
a32fd625
...
...
@@ -410,8 +410,8 @@ static void test_ec() {
}
}
static
void
test_crypto
()
{
Test
test
(
"
Sample
crypto"
);
static
void
test_
toy_
crypto
()
{
Test
test
(
"
Toy
crypto"
);
SpongeRng
rng
(
Block
(
"test_decaf_crypto"
),
SpongeRng
::
DETERMINISTIC
);
for
(
int
i
=
0
;
i
<
NTESTS
&&
test
.
passing_now
;
i
++
)
{
...
...
@@ -580,7 +580,7 @@ static void run() {
test_eddsa
();
test_cfrg_crypto
();
test_cfrg_vectors
();
test_crypto
();
test_
toy_
crypto
();
printf
(
"
\n
"
);
}
...
...
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