AWS SDK for C++  1.9.104
AWS SDK for C++
Public Member Functions | List of all members
Aws::Utils::Crypto::SecureRandomBytes_CommonCrypto Class Reference

#include <CryptoImpl.h>

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

Public Member Functions

 SecureRandomBytes_CommonCrypto ()
 
 ~SecureRandomBytes_CommonCrypto ()
 
void GetBytes (unsigned char *buffer, size_t bufferSize) override
 
- Public Member Functions inherited from Aws::Utils::Crypto::SecureRandomBytes
 SecureRandomBytes ()
 
virtual ~SecureRandomBytes ()=default
 
 operator bool () const
 

Additional Inherited Members

- Protected Attributes inherited from Aws::Utils::Crypto::SecureRandomBytes
bool m_failure
 

Detailed Description

Apple implementation for RandomBytes. Reads from /dev/random This class is intentionally not thread safe. If you need to use an instance of this class from multiple threads, then you are responsible for memory fencing.

Definition at line 34 of file CryptoImpl.h.

Constructor & Destructor Documentation

◆ SecureRandomBytes_CommonCrypto()

Aws::Utils::Crypto::SecureRandomBytes_CommonCrypto::SecureRandomBytes_CommonCrypto ( )

Opens file descriptor to /dev/random

◆ ~SecureRandomBytes_CommonCrypto()

Aws::Utils::Crypto::SecureRandomBytes_CommonCrypto::~SecureRandomBytes_CommonCrypto ( )

Closes file descriptor

Member Function Documentation

◆ GetBytes()

void Aws::Utils::Crypto::SecureRandomBytes_CommonCrypto::GetBytes ( unsigned char *  buffer,
size_t  bufferSize 
)
overridevirtual

Reads buffersize bytes from /dev/random and writes them to buffer

Implements Aws::Utils::Crypto::SecureRandomBytes.


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