You.i Engine
CYICryptoUtility::HashBuilder Class Reference

Detailed Description

A utility class to calculate a hash using one or more sets of bytes. Sample usage:

hasher.HashBytes("My Header");
hasher.HashBytes(largeVector);
CYIString hash = hasher.Finalize();

#include <utility/YiCryptoUtility.h>

Public Member Functions

void HashBytes (CYIStringView bytes)
 
CYIString Finalize ()
 

Friends

class CYICryptoUtility
 

Member Function Documentation

◆ Finalize()

CYIString CYICryptoUtility::HashBuilder::Finalize ( )

Finalizes the hash and returns the hexadecimal representation of the calculated hash.

Warning
This function must not be called multiple times.

◆ HashBytes()

void CYICryptoUtility::HashBuilder::HashBytes ( CYIStringView  bytes)

Hashes additional bytes. This function may be called multiple times.

Warning
This function must not be called after Finalize() has been called.

Friends And Related Function Documentation

◆ CYICryptoUtility

friend class CYICryptoUtility
friend

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