|
@@ -34,6 +34,7 @@ class PrivateKey; |
|
|
class PublicKey; |
|
|
class PublicKey; |
|
|
/** @endcond */ |
|
|
/** @endcond */ |
|
|
|
|
|
|
|
|
|
|
|
/** Prehash context for EdDSA. TODO: test me! */ |
|
|
class Prehash : public $(re.sub(r"SHAKE(\d+)",r"SHAKE<\1>", eddsa_hash.upper())) { |
|
|
class Prehash : public $(re.sub(r"SHAKE(\d+)",r"SHAKE<\1>", eddsa_hash.upper())) { |
|
|
public: |
|
|
public: |
|
|
/** Do we support contexts for signatures? If not, they must always be NULL */ |
|
|
/** Do we support contexts for signatures? If not, they must always be NULL */ |
|
@@ -211,6 +212,8 @@ public: |
|
|
/** The pre-expansion form of the signature */ |
|
|
/** The pre-expansion form of the signature */ |
|
|
FixedArrayBuffer<$(C_NS)_EDDSA_PUBLIC_BYTES> pub_; |
|
|
FixedArrayBuffer<$(C_NS)_EDDSA_PUBLIC_BYTES> pub_; |
|
|
|
|
|
|
|
|
|
|
|
/* PERF FUTURE: Pre-cached decoding? Precomputed table?? */ |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
/** Underlying group */ |
|
|
/** Underlying group */ |
|
|
typedef $(cxx_ns) Group; |
|
|
typedef $(cxx_ns) Group; |
|
|