Commit a3a2906f authored by Michael Hamburg's avatar Michael Hamburg

move prehashed enum to common; downside is that including one eddsa.hxx now pulls in all of them

parent c5a9b775
......@@ -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;
......
......@@ -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()])
]))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment