Classes | Public Member Functions | Static Public Member Functions

Swift::SHA256 Class Reference

Collaboration diagram for Swift::SHA256:

List of all members.

Classes

struct  State

Public Member Functions

 SHA256 ()
SHA256update (const std::vector< unsigned char > &data)
std::vector< unsigned char > getHash () const
ByteArray operator() (const SafeByteArray &data)
ByteArray operator() (const ByteArray &data)

Static Public Member Functions

static ByteArray getHash (const ByteArray &data)
 Equivalent of: SHA256().update(data),getHash(), but slightly more efficient and convenient.
static ByteArray getHash (const SafeByteArray &data)

Detailed Description

Definition at line 17 of file SHA256.h.


Constructor & Destructor Documentation

Swift::SHA256::SHA256 (  ) 

Member Function Documentation

std::vector<unsigned char> Swift::SHA256::getHash (  )  const
static ByteArray Swift::SHA256::getHash ( const SafeByteArray &  data  )  [static]
static ByteArray Swift::SHA256::getHash ( const ByteArray &  data  )  [static]

Equivalent of: SHA256().update(data),getHash(), but slightly more efficient and convenient.

ByteArray Swift::SHA256::operator() ( const ByteArray &  data  )  [inline]

Definition at line 36 of file SHA256.h.

ByteArray Swift::SHA256::operator() ( const SafeByteArray &  data  )  [inline]

Definition at line 32 of file SHA256.h.

SHA256& Swift::SHA256::update ( const std::vector< unsigned char > &  data  )