libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SHA512Summation Class Reference

#include <sha2.h>

Inheritance diagram for SHA512Summation:
Collaboration diagram for SHA512Summation:

Public Member Functions

 SHA512Summation ()
 
bool Add (const unsigned char *inbuf, unsigned long long len)
 
bool Add (const char *inbuf, unsigned long long const inlen)
 
bool Add (const unsigned char *Data)
 
bool Add (const char *Data)
 
bool Add (const unsigned char *Beg, const unsigned char *End)
 
bool Add (const char *Beg, const char *End)
 
bool AddFD (int Fd, unsigned long long Size=0)
 
bool AddFD (FileFd &Fd, unsigned long long Size=0)
 
SHA512SumValue Result ()
 

Protected Attributes

bool Done
 

Private Attributes

SHA512_CTX ctx
 
unsigned char Sum [64]
 

Constructor & Destructor Documentation

SHA512Summation::SHA512Summation ( )
inline

References ctx, SHA2SummationBase::Done, and SHA512_Init().

Here is the call graph for this function:

Member Function Documentation

bool SHA512Summation::Add ( const unsigned char *  inbuf,
unsigned long long  len 
)
inlinevirtual

Implements SHA2SummationBase.

References ctx, SHA2SummationBase::Done, and SHA512_Update().

Referenced by Hashes::Add().

Here is the call graph for this function:

Here is the caller graph for this function:

bool SummationImplementation::Add ( const char *  inbuf,
unsigned long long const  inlen 
)
inlineinherited

References SummationImplementation::Add().

Referenced by SummationImplementation::Add().

Here is the call graph for this function:

Here is the caller graph for this function:

bool SummationImplementation::Add ( const unsigned char *  Data)
inlineinherited

References SummationImplementation::Add().

Referenced by SummationImplementation::Add().

Here is the call graph for this function:

Here is the caller graph for this function:

bool SummationImplementation::Add ( const char *  Data)
inlineinherited

References SummationImplementation::Add().

Referenced by SummationImplementation::Add().

Here is the call graph for this function:

Here is the caller graph for this function:

bool SummationImplementation::Add ( const unsigned char *  Beg,
const unsigned char *  End 
)
inlineinherited

References SummationImplementation::Add().

Referenced by SummationImplementation::Add().

Here is the call graph for this function:

Here is the caller graph for this function:

bool SummationImplementation::Add ( const char *  Beg,
const char *  End 
)
inlineinherited

References SummationImplementation::Add().

Referenced by SummationImplementation::Add().

Here is the call graph for this function:

Here is the caller graph for this function:

bool SummationImplementation::AddFD ( int  Fd,
unsigned long long  Size = 0 
)
inherited
bool SummationImplementation::AddFD ( FileFd Fd,
unsigned long long  Size = 0 
)
inherited
SHA512SumValue SHA512Summation::Result ( )
inline

References ctx, SHA2SummationBase::Done, HashSumValue< N >::Set(), SHA512_Final(), and Sum.

Here is the call graph for this function:

Member Data Documentation

SHA512_CTX SHA512Summation::ctx
private

Referenced by Add(), Result(), and SHA512Summation().

bool SHA2SummationBase::Done
protectedinherited
unsigned char SHA512Summation::Sum[64]
private

Referenced by Result().


The documentation for this class was generated from the following file: