Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix missing BlockSize() in BLAKE2 classes (GH #811)
  • Loading branch information
noloader committed Feb 23, 2019
1 parent 6138b8a commit 758939a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blake2.h
Expand Up @@ -278,6 +278,7 @@ class BLAKE2s : public SimpleKeyingInterfaceImpl<MessageAuthenticationCode, BLAK
/// Message Authentication Code (MAC)</A>. 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;

Expand Down Expand Up @@ -376,6 +377,7 @@ class BLAKE2b : public SimpleKeyingInterfaceImpl<MessageAuthenticationCode, BLAK
/// Message Authentication Code (MAC)</A>. 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;

Expand Down

0 comments on commit 758939a

Please sign in to comment.