Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
randomhash.hh File Reference
#include <ase/cxxaux.hh>

Go to the source code of this file.

Classes

struct  Ase::AlignedPOD< SIZE >
 
class  Ase::Mwc256
 Marsaglia multiply-with-carry generator, period ca 2^255. More...
 
struct  Ase::SHA3_224
 
struct  Ase::SHA3_256
 
struct  Ase::SHA3_384
 
struct  Ase::SHA3_512
 
struct  Ase::SHAKE128
 
struct  Ase::SHAKE256
 
class  Ase::AutoSeeder
 AutoSeeder provides non-deterministic seeding entropy. More...
 
class  Ase::KeccakRng
 
class  Ase::KeccakCryptoRng
 
class  Ase::KeccakGoodRng
 
class  Ase::KeccakFastRng
 
class  Ase::Pcg32Rng
 

Namespaces

namespace  Ase
 The Anklang C++ API namespace.
 

Typedefs

using Ase::FastRng = Mwc256
 

Functions

uint64_t Ase::random_nonce ()
 Provide a unique 64 bit identifier that is not 0, see also random_int64().
 
uint64_t Ase::random_int64 ()
 
int64_t Ase::random_irange (int64_t begin, int64_t end)
 
double Ase::random_float ()
 
double Ase::random_frange (double begin, double end)
 
void Ase::random_secret (uint64_t *secret_var)
 Generate a secret non-zero nonce in secret_var, unless it has already been assigned.
 
void Ase::sha3_224_hash (const void *data, size_t data_length, uint8_t hashvalue[28])
 Calculate 224 bit SHA3 digest from data, see also class SHA3_224.
 
void Ase::sha3_256_hash (const void *data, size_t data_length, uint8_t hashvalue[32])
 Calculate 256 bit SHA3 digest from data, see also class SHA3_256.
 
void Ase::sha3_384_hash (const void *data, size_t data_length, uint8_t hashvalue[48])
 Calculate 384 bit SHA3 digest from data, see also class SHA3_384.
 
void Ase::sha3_512_hash (const void *data, size_t data_length, uint8_t hashvalue[64])
 Calculate 512 bit SHA3 digest from data, see also class SHA3_512.
 
void Ase::shake128_hash (const void *data, size_t data_length, uint8_t *hashvalues, size_t n)
 Calculate SHA3 extendable output digest for 128 bit security strength, see also class SHAKE128.
 
void Ase::shake256_hash (const void *data, size_t data_length, uint8_t *hashvalues, size_t n)
 Calculate SHA3 extendable output digest for 256 bit security strength, see also class SHAKE256.
 

Class Documentation

◆ Ase::AlignedPOD

struct Ase::AlignedPOD
template<size_t SIZE>
struct Ase::AlignedPOD< SIZE >

Helper to provide memory for placement new AlignedPOD<SIZE> is aligned like max_align_t or like malloc()-ed memory and provides SIZE bytes. Idiomatic use is:

static AlignedPOD<sizeof (std::string)> pod_mem;
std::string *str = new (&pod_mem) std::string();

Definition at line 19 of file randomhash.hh.

Class Members
type mem