Browse Source

another couple notes

master
Michael Hamburg 9 years ago
parent
commit
85fafd2d52
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/per_curve/eddsa.tmpl.hxx

+ 3
- 0
src/per_curve/eddsa.tmpl.hxx View File

@@ -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;


Loading…
Cancel
Save