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

#include <CryptoImpl.h>

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

Public Member Functions

 SecureRandomBytes_OpenSSLImpl ()
 ~SecureRandomBytes_OpenSSLImpl ()=default
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

OpenSSL implementation for SecureRandomBytes. Incidentally, this implementation is thread safe, though it is not on other platforms. You should treat an instance of SecureRandomBytes as needed to be memory fenced if you will be using accross multiple threads

Definition at line 44 of file CryptoImpl.h.

Constructor & Destructor Documentation

◆ SecureRandomBytes_OpenSSLImpl()

Aws::Utils::Crypto::SecureRandomBytes_OpenSSLImpl::SecureRandomBytes_OpenSSLImpl ( )

Definition at line 47 of file CryptoImpl.h.

◆ ~SecureRandomBytes_OpenSSLImpl()

Aws::Utils::Crypto::SecureRandomBytes_OpenSSLImpl::~SecureRandomBytes_OpenSSLImpl ( )

Member Function Documentation

◆ GetBytes()

void Aws::Utils::Crypto::SecureRandomBytes_OpenSSLImpl::GetBytes ( unsigned char *  buffer,
size_t  bufferSize 

Reads bufferSize bytes from RAND_bytes into buffer.

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

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