AWS SDK for C++

AWS SDK for C++ Version 1.11.789

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aws::Utils::Crypto::CRTSymmetricCipher Class Reference

#include <CRTSymmetricCipher.h>

Inheritance diagram for Aws::Utils::Crypto::CRTSymmetricCipher:
[legend]

Public Member Functions

 
 
 
 
 ~CRTSymmetricCipher () override=default
 
CryptoBuffer EncryptBuffer (const CryptoBuffer &unEncryptedData) override
 
 
CryptoBuffer DecryptBuffer (const CryptoBuffer &encryptedData) override
 
 
void Reset () override
 
bool Good () const override
 
 CRTSymmetricCipher (Crt::Crypto::SymmetricCipher &&)
 

Public Member Functions inherited from Aws::Utils::Crypto::SymmetricCipher

 SymmetricCipher (const CryptoBuffer &key, size_t ivSize, bool ivGenerationInCtrMode=false)
 
 SymmetricCipher (const CryptoBuffer &key, const CryptoBuffer &initializationVector, const CryptoBuffer &tag=CryptoBuffer(0))
 
 SymmetricCipher (CryptoBuffer &&key, CryptoBuffer &&initializationVector, CryptoBuffer &&tag=CryptoBuffer(0))
 
 SymmetricCipher (const SymmetricCipher &other)=delete
 
SymmetricCipheroperator= (const SymmetricCipher &other)=delete
 
 
 
virtual ~SymmetricCipher ()=default
 
virtual operator bool () const
 
const CryptoBufferGetIV () const
 
const CryptoBufferGetTag () const
 
bool Fail () const
 

Additional Inherited Members

Static Public Member Functions inherited from Aws::Utils::Crypto::SymmetricCipher

static CryptoBuffer GenerateIV (size_t ivLengthBytes, bool ctrMode=false)
 
static CryptoBuffer GenerateKey (size_t keyLengthBytes=SYMMETRIC_KEY_LENGTH)
 

Protected Member Functions inherited from Aws::Utils::Crypto::SymmetricCipher

 

Protected Attributes inherited from Aws::Utils::Crypto::SymmetricCipher

 
 
 
bool m_failure
 

Detailed Description

Definition at line 13 of file CRTSymmetricCipher.h.

Constructor & Destructor Documentation

◆ CRTSymmetricCipher() [1/3]

Aws::Utils::Crypto::CRTSymmetricCipher::CRTSymmetricCipher ( const CRTSymmetricCipher )
delete

◆ CRTSymmetricCipher() [2/3]

Aws::Utils::Crypto::CRTSymmetricCipher::CRTSymmetricCipher ( CRTSymmetricCipher &&  )
default

◆ ~CRTSymmetricCipher()

Aws::Utils::Crypto::CRTSymmetricCipher::~CRTSymmetricCipher ( )
overridedefault

◆ CRTSymmetricCipher() [3/3]

Aws::Utils::Crypto::CRTSymmetricCipher::CRTSymmetricCipher ( Crt::Crypto::SymmetricCipher &&  )

Member Function Documentation

◆ DecryptBuffer()

CryptoBuffer Aws::Utils::Crypto::CRTSymmetricCipher::DecryptBuffer ( const CryptoBuffer encryptedData)
overridevirtual

Decrypt a buffer of data. Part of the contract for this interface is that intention that a user call this function multiple times for a large stream. As such, multiple calls to this function on the same instance should produce valid sequential output from an encrypted stream.

Implements Aws::Utils::Crypto::SymmetricCipher.

◆ EncryptBuffer()

CryptoBuffer Aws::Utils::Crypto::CRTSymmetricCipher::EncryptBuffer ( const CryptoBuffer unEncryptedData)
overridevirtual

Encrypt a buffer of data. Part of the contract for this interface is that intention that a user call this function multiple times for a large stream. As such, multiple calls to this function on the same instance should produce valid sequential output for an encrypted stream.

Implements Aws::Utils::Crypto::SymmetricCipher.

◆ FinalizeDecryption()

CryptoBuffer Aws::Utils::Crypto::CRTSymmetricCipher::FinalizeDecryption ( )
overridevirtual

Finalize Decryption, returns anything remaining in the last block

Implements Aws::Utils::Crypto::SymmetricCipher.

◆ FinalizeEncryption()

CryptoBuffer Aws::Utils::Crypto::CRTSymmetricCipher::FinalizeEncryption ( )
overridevirtual

Finalize Encryption, returns anything remaining in the last block

Implements Aws::Utils::Crypto::SymmetricCipher.

◆ Good()

bool Aws::Utils::Crypto::CRTSymmetricCipher::Good ( ) const
overridevirtual

◆ operator=() [1/2]

CRTSymmetricCipher & Aws::Utils::Crypto::CRTSymmetricCipher::operator= ( const CRTSymmetricCipher )
delete

◆ operator=() [2/2]

CRTSymmetricCipher & Aws::Utils::Crypto::CRTSymmetricCipher::operator= ( CRTSymmetricCipher &&  )
default

◆ Reset()

void Aws::Utils::Crypto::CRTSymmetricCipher::Reset ( )
overridevirtual

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