Crypto++ 8.7
Free C++ class library of cryptographic schemes
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
BLAKE2s_ParameterBlock Struct Reference

BLAKE2s parameter block. More...

#include <blake2.h>

Public Types

enum  {
  DigestOff = 0 , KeyOff = 1 , FanoutOff = 2 , DepthOff = 3 ,
  LeafOff = 4 , NodeOff = 8 , NodeDepthOff = 14 , InnerOff = 15 ,
  SaltOff = 16 , PersonalizationOff = 24
}
 

Public Member Functions

 BLAKE2s_ParameterBlock (size_t digestSize)
 
 BLAKE2s_ParameterBlock (size_t digestSize, size_t keyLength, const byte *salt, size_t saltLength, const byte *personalization, size_t personalizationLength)
 
void Reset (size_t digestLength=DIGESTSIZE, size_t keyLength=0)
 
bytedata ()
 
const bytedata () const
 
size_t size () const
 
bytesalt ()
 
bytepersonalization ()
 

Public Attributes

FixedSizeAlignedSecBlock< byte, 32, true > m_data
 

Static Public Attributes

static const int SALTSIZE = BLAKE2s_Info::SALTSIZE
 
static const int DIGESTSIZE = BLAKE2s_Info::DIGESTSIZE
 
static const int PERSONALIZATIONSIZE = BLAKE2s_Info::PERSONALIZATIONSIZE
 

Detailed Description

BLAKE2s parameter block.

Definition at line 60 of file blake2.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 102 of file blake2.h.

Constructor & Destructor Documentation

◆ BLAKE2s_ParameterBlock() [1/3]

BLAKE2s_ParameterBlock::BLAKE2s_ParameterBlock ( )
inline

Definition at line 66 of file blake2.h.

◆ BLAKE2s_ParameterBlock() [2/3]

BLAKE2s_ParameterBlock::BLAKE2s_ParameterBlock ( size_t  digestSize)
inline

Definition at line 71 of file blake2.h.

◆ BLAKE2s_ParameterBlock() [3/3]

BLAKE2s_ParameterBlock::BLAKE2s_ParameterBlock ( size_t  digestSize,
size_t  keyLength,
const byte salt,
size_t  saltLength,
const byte personalization,
size_t  personalizationLength 
)

Definition at line 284 of file blake2.cpp.

Member Function Documentation

◆ Reset()

void BLAKE2s_ParameterBlock::Reset ( size_t  digestLength = DIGESTSIZE,
size_t  keyLength = 0 
)

Definition at line 310 of file blake2.cpp.

◆ data() [1/2]

byte * BLAKE2s_ParameterBlock::data ( )
inline

Definition at line 81 of file blake2.h.

◆ data() [2/2]

const byte * BLAKE2s_ParameterBlock::data ( ) const
inline

Definition at line 85 of file blake2.h.

◆ size()

size_t BLAKE2s_ParameterBlock::size ( ) const
inline

Definition at line 89 of file blake2.h.

◆ salt()

byte * BLAKE2s_ParameterBlock::salt ( )
inline

Definition at line 93 of file blake2.h.

◆ personalization()

byte * BLAKE2s_ParameterBlock::personalization ( )
inline

Definition at line 97 of file blake2.h.

Member Data Documentation

◆ SALTSIZE

const int BLAKE2s_ParameterBlock::SALTSIZE = BLAKE2s_Info::SALTSIZE
static

Definition at line 62 of file blake2.h.

◆ DIGESTSIZE

const int BLAKE2s_ParameterBlock::DIGESTSIZE = BLAKE2s_Info::DIGESTSIZE
static

Definition at line 63 of file blake2.h.

◆ PERSONALIZATIONSIZE

const int BLAKE2s_ParameterBlock::PERSONALIZATIONSIZE = BLAKE2s_Info::PERSONALIZATIONSIZE
static

Definition at line 64 of file blake2.h.

◆ m_data

FixedSizeAlignedSecBlock<byte, 32, true> BLAKE2s_ParameterBlock::m_data

Definition at line 107 of file blake2.h.


The documentation for this struct was generated from the following files: