From 758939ab2e1b24f0da77aa0ee1dbf78de423aa53 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 23 Feb 2019 14:13:31 -0500 Subject: [PATCH] Fix missing BlockSize() in BLAKE2 classes (GH #811) --- blake2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blake2.h b/blake2.h index 1d977707..7b27ed73 100644 --- a/blake2.h +++ b/blake2.h @@ -278,6 +278,7 @@ public: /// Message Authentication Code (MAC). For example, "BLAKE2b-512" and "BLAKE2s-256". std::string AlgorithmName() const {return std::string(BLAKE2s_Info::StaticAlgorithmName()) + "-" + IntToString(DigestSize()*8);} + unsigned int BlockSize() const {return BLOCKSIZE;} unsigned int DigestSize() const {return m_digestSize;} unsigned int OptimalDataAlignment() const; @@ -376,6 +377,7 @@ public: /// Message Authentication Code (MAC). For example, "BLAKE2b-512" and "BLAKE2s-256". std::string AlgorithmName() const {return std::string(BLAKE2b_Info::StaticAlgorithmName()) + "-" + IntToString(DigestSize()*8);} + unsigned int BlockSize() const {return BLOCKSIZE;} unsigned int DigestSize() const {return m_digestSize;} unsigned int OptimalDataAlignment() const;