add Save/Load
parent
b021819751
commit
0f75ff1d09
10
rw.h
10
rw.h
|
|
@ -22,6 +22,11 @@ public:
|
||||||
void BERDecode(BufferedTransformation &bt);
|
void BERDecode(BufferedTransformation &bt);
|
||||||
void DEREncode(BufferedTransformation &bt) const;
|
void DEREncode(BufferedTransformation &bt) const;
|
||||||
|
|
||||||
|
void Save(BufferedTransformation &bt) const
|
||||||
|
{DEREncode(bt);}
|
||||||
|
void Load(BufferedTransformation &bt)
|
||||||
|
{BERDecode(bt);}
|
||||||
|
|
||||||
Integer ApplyFunction(const Integer &x) const;
|
Integer ApplyFunction(const Integer &x) const;
|
||||||
Integer PreimageBound() const {return ++(m_n>>1);}
|
Integer PreimageBound() const {return ++(m_n>>1);}
|
||||||
Integer ImageBound() const {return m_n;}
|
Integer ImageBound() const {return m_n;}
|
||||||
|
|
@ -52,6 +57,11 @@ public:
|
||||||
void BERDecode(BufferedTransformation &bt);
|
void BERDecode(BufferedTransformation &bt);
|
||||||
void DEREncode(BufferedTransformation &bt) const;
|
void DEREncode(BufferedTransformation &bt) const;
|
||||||
|
|
||||||
|
void Save(BufferedTransformation &bt) const
|
||||||
|
{DEREncode(bt);}
|
||||||
|
void Load(BufferedTransformation &bt)
|
||||||
|
{BERDecode(bt);}
|
||||||
|
|
||||||
Integer CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const;
|
Integer CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const;
|
||||||
|
|
||||||
// GeneratibleCryptoMaterial
|
// GeneratibleCryptoMaterial
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue