Pepper_31_C++_interfaces
Public Member Functions | List of all members
pp::Crypto_Dev Class Reference

APIs related to cryptography. More...

#include <crypto_dev.h>

Collaboration diagram for pp::Crypto_Dev:
Collaboration graph

Public Member Functions

 Crypto_Dev ()
 
bool GetRandomBytes (char *buffer, uint32_t num_bytes)
 

Detailed Description

APIs related to cryptography.

Definition at line 16 of file crypto_dev.h.

Constructor & Destructor Documentation

pp::Crypto_Dev::Crypto_Dev ( )
inline

Definition at line 18 of file crypto_dev.h.

Member Function Documentation

bool pp::Crypto_Dev::GetRandomBytes ( char *  buffer,
uint32_t  num_bytes 
)

A function that fills the buffer with random bytes. This may be slow, so avoid getting more bytes than needed.

Parameters
[out]bufferThe buffer to receive the random bytes.
[in]num_bytesA number of random bytes to produce.
Returns
True on success, false on failure.

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