ApparatusFramework::SHA2 Class Reference
[Pattern Services]

#include <PatternServices/current/include/SHA2.h>

Inheritance diagram for ApparatusFramework::SHA2:
ApparatusFramework::HashAlgorithm

List of all members.

Public Member Functions

virtual void getHash (uint8 *data, uint32 length, char *result, uint8 resultSize)
Construction and Destruction

 SHA2 ()
virtual ~SHA2 ()

Detailed Description

Implements a SHA2-512 hash algorithm with a HashAlgorithm interface. This class computes a hash value with the SHA2-512 algorithm.

Definition at line 72 of file SHA2.h.


Constructor & Destructor Documentation

ApparatusFramework::SHA2::SHA2 (  ) 

Constructs a new SHA2 object. Initialize the SHA2 object and the constant values.

virtual ApparatusFramework::SHA2::~SHA2 (  )  [virtual]

Destructs the object and releases all resources.


Member Function Documentation

virtual void ApparatusFramework::SHA2::getHash ( uint8 data,
uint32  length,
char *  result,
uint8  resultSize 
) [virtual]

Computes a SHA2-512 hash value.

Parameters:
in data array to compute a hash value from it.
in Length the length of the array.
out result a char pointer for the result.
in resultSize size of result.

Implements ApparatusFramework::HashAlgorithm.

© 2004-2010 bbv Software Services AG / Apparatus Services