Virgil Security Crypto library  2.6.3
Classes | Public Member Functions | Static Public Member Functions | List of all members
virgil::crypto::primitive::VirgilOperationHash Class Reference

Define proxy interface for the Hash (Message Digest) functionality. More...

#include <VirgilOperationHash.h>

Public Member Functions

template<class Impl >
 VirgilOperationHash (Impl impl)
 Captures implementation object. More...
 
VirgilByteArray hash (const VirgilByteArray &data)
 Calculate digest for given data. More...
 
void start ()
 Prepare internal state for the new hashing.
 
void update (const VirgilByteArray &data)
 Hash new portion of the data. More...
 
VirgilByteArray finish ()
 Finalize hashing. More...
 

Static Public Member Functions

static VirgilOperationHash getDefault ()
 Return default implementation.
 

Detailed Description

Define proxy interface for the Hash (Message Digest) functionality.

Note
This is experimental feature.

Constructor & Destructor Documentation

template<class Impl >
virgil::crypto::primitive::VirgilOperationHash::VirgilOperationHash ( Impl  impl)
inline

Captures implementation object.

Template Parameters
Impl- class that contains functions that has identical signature to this class functions.
Parameters
impl- object that implements interface.

Member Function Documentation

VirgilByteArray virgil::crypto::primitive::VirgilOperationHash::finish ( )
inline

Finalize hashing.

Returns
Data's hash (message digest).
VirgilByteArray virgil::crypto::primitive::VirgilOperationHash::hash ( const VirgilByteArray data)
inline

Calculate digest for given data.

Parameters
data- data to be hashed.
Returns
Data's hash (message digest).
void virgil::crypto::primitive::VirgilOperationHash::update ( const VirgilByteArray data)
inline

Hash new portion of the data.

Parameters
data- next portion of data to be hashed.

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