diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-08-15 18:53:45 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-08-15 18:53:45 +0200 |
commit | 54c8bf2e978b883aad984549c946386d50160c0e (patch) | |
tree | ea1ca93ff5607cf1c626bc102fb9961e22bf5984 /CryptoPP/rw.h | |
parent | Fixed the Reload and Save-all console commands. (diff) | |
parent | Updated the makefile to disable assembly for clang. (diff) | |
download | cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.gz cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.bz2 cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.lz cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.xz cuberite-54c8bf2e978b883aad984549c946386d50160c0e.tar.zst cuberite-54c8bf2e978b883aad984549c946386d50160c0e.zip |
Diffstat (limited to 'CryptoPP/rw.h')
-rw-r--r-- | CryptoPP/rw.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CryptoPP/rw.h b/CryptoPP/rw.h index ec8b8507b..6820251e8 100644 --- a/CryptoPP/rw.h +++ b/CryptoPP/rw.h @@ -22,6 +22,11 @@ public: void BERDecode(BufferedTransformation &bt); 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 PreimageBound() const {return ++(m_n>>1);} Integer ImageBound() const {return m_n;} @@ -52,6 +57,11 @@ public: void BERDecode(BufferedTransformation &bt); 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; // GeneratibleCryptoMaterial |