summaryrefslogtreecommitdiff
path: root/dmac.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 /dmac.h
parent6d9047b444731175e6ea9a447a3f0002685804be (diff)
downloadcryptopp-git-b74a6f444568e59a7766d1e286f82d2ce3086dcd.tar.gz
Add algorithm provider member function to Algorithm class
Diffstat (limited to 'dmac.h')
-rw-r--r--dmac.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dmac.h b/dmac.h
index 539f69fe..904b5506 100644
--- a/dmac.h
+++ b/dmac.h
@@ -28,6 +28,8 @@ public:
void TruncatedFinal(byte *mac, size_t size);
unsigned int DigestSize() const {return DIGESTSIZE;}
+ std::string AlgorithmProvider() const;
+
private:
byte *GenerateSubKeys(const byte *key, size_t keylength);
@@ -38,6 +40,12 @@ private:
unsigned int m_counter;
};
+template <class T>
+std::string DMAC_Base<T>::AlgorithmProvider() const
+{
+ return m_f2.AlgorithmProvider();
+}
+
/// \brief DMAC message authentication code
/// \tparam T class derived from BlockCipherDocumentation
/// \sa <A HREF="https://eprint.iacr.org/1997/010">CBC MAC for Real-Time Data Sources (08.15.1997)</A>