Skip to content

Commit 758939a

Browse files
committed
Fix missing BlockSize() in BLAKE2 classes (GH #811)
1 parent 6138b8a commit 758939a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

blake2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ class BLAKE2s : public SimpleKeyingInterfaceImpl<MessageAuthenticationCode, BLAK
278278
/// Message Authentication Code (MAC)</A>. For example, "BLAKE2b-512" and "BLAKE2s-256".
279279
std::string AlgorithmName() const {return std::string(BLAKE2s_Info::StaticAlgorithmName()) + "-" + IntToString(DigestSize()*8);}
280280

281+
unsigned int BlockSize() const {return BLOCKSIZE;}
281282
unsigned int DigestSize() const {return m_digestSize;}
282283
unsigned int OptimalDataAlignment() const;
283284

@@ -376,6 +377,7 @@ class BLAKE2b : public SimpleKeyingInterfaceImpl<MessageAuthenticationCode, BLAK
376377
/// Message Authentication Code (MAC)</A>. For example, "BLAKE2b-512" and "BLAKE2s-256".
377378
std::string AlgorithmName() const {return std::string(BLAKE2b_Info::StaticAlgorithmName()) + "-" + IntToString(DigestSize()*8);}
378379

380+
unsigned int BlockSize() const {return BLOCKSIZE;}
379381
unsigned int DigestSize() const {return m_digestSize;}
380382
unsigned int OptimalDataAlignment() const;
381383

0 commit comments

Comments
 (0)