AWS SDK for C++  1.9.159
AWS SDK for C++
Public Member Functions | Protected Attributes | List of all members
Aws::Utils::Crypto::SecureRandomBytes Class Referenceabstract

#include <SecureRandom.h>

+ Inheritance diagram for Aws::Utils::Crypto::SecureRandomBytes:

Public Member Functions

 SecureRandomBytes ()
virtual ~SecureRandomBytes ()=default
virtual void GetBytes (unsigned char *buffer, size_t bufferSize)=0
 operator bool () const

Protected Attributes

bool m_failure

Detailed Description

Interface for generating Random Bytes with guaranteed entropy for use with cryptographic functions. An instance is not guaranteed to be thread safe. This is intentional, that is needless overhead to pay for something you probably don't need. If you encounter a need for thread safety, you are responsible for memory fencing.

Definition at line 20 of file SecureRandom.h.

Constructor & Destructor Documentation

◆ SecureRandomBytes()

Aws::Utils::Crypto::SecureRandomBytes::SecureRandomBytes ( )

Definition at line 23 of file SecureRandom.h.

◆ ~SecureRandomBytes()

virtual Aws::Utils::Crypto::SecureRandomBytes::~SecureRandomBytes ( )

Member Function Documentation

◆ GetBytes()

virtual void Aws::Utils::Crypto::SecureRandomBytes::GetBytes ( unsigned char *  buffer,
size_t  bufferSize 
pure virtual

◆ operator bool()

Aws::Utils::Crypto::SecureRandomBytes::operator bool ( ) const

Always check this. If anything goes wrong, this tells you

Definition at line 37 of file SecureRandom.h.

Member Data Documentation

◆ m_failure

bool Aws::Utils::Crypto::SecureRandomBytes::m_failure

Definition at line 40 of file SecureRandom.h.

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