Grid 0.7.0
GridChecksum Class Reference

#include <Sha.h>

Static Public Member Functions

static uint32_t crc32 (const void *data, size_t bytes)
template<typename T>
static std::string sha256_string (const std::vector< T > &hash)
static std::vector< unsigned char > sha256 (const void *data, size_t bytes)
static std::vector< int > sha256_seeds (const std::string &s)

Detailed Description

Definition at line 38 of file Sha.h.

Member Function Documentation

◆ crc32()

uint32_t GridChecksum::crc32 ( const void * data,
size_t bytes )
inlinestatic

Definition at line 41 of file Sha.h.

◆ sha256_string()

template<typename T>
std::string GridChecksum::sha256_string ( const std::vector< T > & hash)
inlinestatic

Definition at line 58 of file Sha.h.

Referenced by GridParallelRNG::SeedUniqueString().

◆ sha256()

std::vector< unsigned char > GridChecksum::sha256 ( const void * data,
size_t bytes )
inlinestatic

Definition at line 71 of file Sha.h.

Referenced by sha256_seeds().

◆ sha256_seeds()

std::vector< int > GridChecksum::sha256_seeds ( const std::string & s)
inlinestatic

Definition at line 78 of file Sha.h.

References sha256().

Referenced by GridParallelRNG::SeedUniqueString(), and GridSerialRNG::SeedUniqueString().


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