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
SHA256Summation Class Reference

#include <sha2.h>

Inheritance diagram for SHA256Summation:
Collaboration diagram for SHA256Summation:

Public Member Functions

 SHA256Summation ()
 
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)
 
SHA256SumValue Result ()
 

Protected Attributes

bool Done
 

Private Attributes

SHA256_CTX ctx
 
unsigned char Sum [32]
 

Constructor & Destructor Documentation

SHA256Summation::SHA256Summation ( )
inline

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

Here is the call graph for this function:

Member Function Documentation

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

Implements SHA2SummationBase.

References ctx, SHA2SummationBase::Done, and SHA256_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
SHA256SumValue SHA256Summation::Result ( )
inline

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

Here is the call graph for this function:

Member Data Documentation

SHA256_CTX SHA256Summation::ctx
private

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

bool SHA2SummationBase::Done
protectedinherited
unsigned char SHA256Summation::Sum[32]
private

Referenced by Result().


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