diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-07-06 09:23:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 09:23:37 -0400 |
commit | b74a6f444568e59a7766d1e286f82d2ce3086dcd (patch) | |
tree | 97937fe23f742f6c352f39e206b7ce7d774ba358 /speck.h | |
parent | 6d9047b444731175e6ea9a447a3f0002685804be (diff) | |
download | cryptopp-git-b74a6f444568e59a7766d1e286f82d2ce3086dcd.tar.gz |
Add algorithm provider member function to Algorithm class
Diffstat (limited to 'speck.h')
-rw-r--r-- | speck.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -84,6 +84,8 @@ public: "(" + IntToString(m_kwords*sizeof(word32)*8) + ")");
}
+ std::string AlgorithmProvider() const;
+
protected:
void UncheckedSetKey(const byte *userKey, unsigned int keyLength, const NameValuePairs ¶ms);
};
@@ -94,7 +96,7 @@ public: /// \since Crypto++ 6.0
class CRYPTOPP_NO_VTABLE Enc : public Base
{
- public:
+ public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
#if CRYPTOPP_SPECK64_ADVANCED_PROCESS_BLOCKS
size_t AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) const;
@@ -107,7 +109,7 @@ public: /// \since Crypto++ 6.0
class CRYPTOPP_NO_VTABLE Dec : public Base
{
- public:
+ public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
#if CRYPTOPP_SPECK64_ADVANCED_PROCESS_BLOCKS
size_t AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) const;
@@ -141,6 +143,8 @@ public: "(" + IntToString(m_kwords*sizeof(word64)*8) + ")");
}
+ std::string AlgorithmProvider() const;
+
protected:
void UncheckedSetKey(const byte *userKey, unsigned int keyLength, const NameValuePairs ¶ms);
};
@@ -151,7 +155,7 @@ public: /// \since Crypto++ 6.0
class CRYPTOPP_NO_VTABLE Enc : public Base
{
- public:
+ public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
#if CRYPTOPP_SPECK128_ADVANCED_PROCESS_BLOCKS
size_t AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) const;
@@ -164,7 +168,7 @@ public: /// \since Crypto++ 6.0
class CRYPTOPP_NO_VTABLE Dec : public Base
{
- public:
+ public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
#if CRYPTOPP_SPECK128_ADVANCED_PROCESS_BLOCKS
size_t AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) const;
|