Parcourir la source

typedef Wrapped is no longer private for scalar and point

master
Mike Hamburg il y a 8 ans
Parent
révision
3d0c6a6c28
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. +3
    -5
      src/gen_headers/decaf_hxx.py

+ 3
- 5
src/gen_headers/decaf_hxx.py Voir le fichier

@@ -65,11 +65,10 @@ class Precomputed;
* Supports the usual arithmetic operations, all in constant time. * Supports the usual arithmetic operations, all in constant time.
*/ */
class Scalar : public Serializable<Scalar> { class Scalar : public Serializable<Scalar> {
private:
public:
/** wrapped C type */ /** wrapped C type */
typedef %(c_ns)s_scalar_t Wrapped; typedef %(c_ns)s_scalar_t Wrapped;

public:
/** Size of a serialized element */ /** Size of a serialized element */
static const size_t SER_BYTES = %(C_NS)s_SCALAR_BYTES; static const size_t SER_BYTES = %(C_NS)s_SCALAR_BYTES;


@@ -203,11 +202,10 @@ public:
* Element of prime-order group. * Element of prime-order group.
*/ */
class Point : public Serializable<Point> { class Point : public Serializable<Point> {
private:
public:
/** wrapped C type */ /** wrapped C type */
typedef %(c_ns)s_point_t Wrapped; typedef %(c_ns)s_point_t Wrapped;
public:
/** Size of a serialized element */ /** Size of a serialized element */
static const size_t SER_BYTES = %(C_NS)s_SER_BYTES; static const size_t SER_BYTES = %(C_NS)s_SER_BYTES;




Chargement…
Annuler
Enregistrer