libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
random.hh File Reference

Random data generation and obfuscation for KDBX inner streams. More...

#include "cipher.hh"
#include "libkeepass/export.hh"
#include "libkeepass/secure.hh"
#include <memory>
#include <random>
#include <vector>

Go to the source code of this file.

Classes

class  keepass::RandomObfuscator
 

Functions

template<std::size_t N>
std::array< uint8_t, N > keepass::random_array ()
 Generates an array of N cryptographically random bytes.
 

Detailed Description

Random data generation and obfuscation for KDBX inner streams.

Function Documentation

◆ random_array()

template<std::size_t N>
std::array< uint8_t, N > keepass::random_array ( )

Generates an array of N cryptographically random bytes.

Template Parameters
NThe number of random bytes to generate.
Returns
An array filled with uniformly distributed random bytes in [0, 255].