Classes | Public Types | Public Member Functions | Protected Member Functions

zeus::TSecureHash512 Class Reference

#include <SecureHash512.h>

Inheritance diagram for zeus::TSecureHash512:
zeus::TAbstractHash

List of all members.

Classes

struct  TypeSHA512_CTX

Public Types

enum  EDigestSize { etHash512 = 0, etHash384 = 1 }

Public Member Functions

 TSecureHash512 (EDigestSize eType=etHash512)
void getHMAC (const IByteArray &rKey, const IByteArray &rInput, IByteArray &rOutput)

Protected Member Functions

virtual Retval generate (const IByteArray &rInput, IByteArray &rOutput)

Detailed Description

this class implements the cryptographic hash using the secure hash algorithm 2 (SHA-2) designed by the National Security Agency (NSA)


Member Enumeration Documentation

Hash size based on SHA-2 for 512bit or 384bit

Enumerator:
etHash512 
etHash384 

Constructor & Destructor Documentation

TSecureHash512::TSecureHash512 ( EDigestSize  eType = etHash512 )

Creates a secure hash algorithm (SHA-2)

Parameters:
eType: Size type of the digest (512 or 384 bits)

Member Function Documentation

Retval TSecureHash512::generate ( const IByteArray rInput,
IByteArray rOutput 
) [protected, virtual]

Generates the secure hash out a input char-array

See also:
TAbstractHash::generate

Implements zeus::TAbstractHash.

void TSecureHash512::getHMAC ( const IByteArray rKey,
const IByteArray rInput,
IByteArray rOutput 
)

returns the hash-based Message authenication code for SHA512-based hash algorithms

Parameters:
rKey: secret key
rInput: message to hash
rOutput: out put of the generated authenication code
Return values:
RET_NOERROR: authenication code generated
RET_INTERNAL_ERROR: internal error (block size unknown)

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:32