Skip to content
Permalink
Browse files

Fix missing BlockSize() in BLAKE2 classes (GH #811)

  • Loading branch information...
noloader committed Feb 23, 2019
1 parent 6138b8a commit 758939ab2e1b24f0da77aa0ee1dbf78de423aa53
Showing with 2 additions and 0 deletions.
  1. +2 −0 blake2.h
@@ -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;

@@ -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;

0 comments on commit 758939a

Please sign in to comment.
You can’t perform that action at this time.