summaryrefslogtreecommitdiff
path: root/speck.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-06 09:23:37 -0400
committerGitHub <noreply@github.com>2018-07-06 09:23:37 -0400
commitb74a6f444568e59a7766d1e286f82d2ce3086dcd (patch)
tree97937fe23f742f6c352f39e206b7ce7d774ba358 /speck.h
parent6d9047b444731175e6ea9a447a3f0002685804be (diff)
downloadcryptopp-git-b74a6f444568e59a7766d1e286f82d2ce3086dcd.tar.gz
Add algorithm provider member function to Algorithm class
Diffstat (limited to 'speck.h')
-rw-r--r--speck.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/speck.h b/speck.h
index 8ce4a871..2e2dc144 100644
--- a/speck.h
+++ b/speck.h
@@ -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 &params);
};
@@ -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 &params);
};
@@ -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;