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
a3a2906f
Commit
a3a2906f
authored
Mar 02, 2016
by
Michael Hamburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move prehashed enum to common; downside is that including one eddsa.hxx now pulls in all of them
parent
c5a9b775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
eddsa.tmpl.hxx
src/per_curve/eddsa.tmpl.hxx
+1
-2
eddsa.tmpl.hxx
src/public_include/decaf/eddsa.tmpl.hxx
+1
-0
No files found.
src/per_curve/eddsa.tmpl.hxx
View file @
a3a2906f
...
...
@@ -7,6 +7,7 @@
* @warning Experimental! The names, parameter orders etc are likely to change.
*/
#include <decaf/eddsa.hxx>
#include <decaf/decaf_$(gf_bits).hxx>
#include <decaf/eddsa_$(gf_bits).h>
...
...
@@ -28,8 +29,6 @@ template <typename Group> struct EdDSA;
/** A public key for crypto over $(name) */
template
<>
struct
EdDSA
<
$
(
cxx_ns
)
>
{
enum
Prehashed
{
PURE
,
PREHASHED
};
/** @cond internal */
template
<
class
CRTP
,
Prehashed
>
class
Signing
;
...
...
src/public_include/decaf/eddsa.tmpl.hxx
View file @
a3a2906f
...
...
@@ -2,6 +2,7 @@
* EdDSA crypto routines, metaheader.
*/
namespace
decaf
{
enum
Prehashed
{
PURE
,
PREHASHED
};
}
$
(
"
\n
"
.
join
([
"#include <decaf/eddsa_%s.hxx>"
%
g
for
g
in
sorted
([
c
[
"bits"
]
for
_
,
c
in
curve
.
iteritems
()])
]))
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