AWS SDK for C++  1.9.158
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto Class Reference

#include <CryptoImpl.h>

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

Public Member Functions

 AES_CBC_Cipher_CommonCrypto (const CryptoBuffer &key)
 
 AES_CBC_Cipher_CommonCrypto (CryptoBuffer &&key, CryptoBuffer &&initializationVector)
 
 AES_CBC_Cipher_CommonCrypto (const CryptoBuffer &key, const CryptoBuffer &initializationVector)
 
 AES_CBC_Cipher_CommonCrypto (const AES_CBC_Cipher_CommonCrypto &other)=delete
 
AES_CBC_Cipher_CommonCryptooperator= (const AES_CBC_Cipher_CommonCrypto &other)=delete
 
 AES_CBC_Cipher_CommonCrypto (AES_CBC_Cipher_CommonCrypto &&toMove)=default
 
void Reset () override
 
- Public Member Functions inherited from Aws::Utils::Crypto::CommonCryptoCipher
 CommonCryptoCipher (const CryptoBuffer &key, size_t ivSize, bool ctrMode=false)
 
 CommonCryptoCipher (CryptoBuffer &&key, CryptoBuffer &&initializationVector, CryptoBuffer &&tag=CryptoBuffer(0))
 
 CommonCryptoCipher (const CryptoBuffer &key, const CryptoBuffer &initializationVector, const CryptoBuffer &tag=CryptoBuffer(0))
 
 CommonCryptoCipher (const CommonCryptoCipher &other)=delete
 
CommonCryptoCipheroperator= (const CommonCryptoCipher &other)=delete
 
 CommonCryptoCipher (CommonCryptoCipher &&toMove)
 
CommonCryptoCipheroperator= (CommonCryptoCipher &&toMove)=default
 
virtual ~CommonCryptoCipher ()
 
CryptoBuffer EncryptBuffer (const CryptoBuffer &unEncryptedData) override
 
CryptoBuffer FinalizeEncryption () override
 
CryptoBuffer DecryptBuffer (const CryptoBuffer &encryptedData) override
 
CryptoBuffer FinalizeDecryption () override
 
- 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
 
 SymmetricCipher (SymmetricCipher &&toMove)
 
SymmetricCipheroperator= (SymmetricCipher &&toMove)
 
virtual ~SymmetricCipher ()=default
 
virtual operator bool () const
 
const CryptoBufferGetIV () const
 
const CryptoBufferGetTag () const
 
bool Fail () const
 
bool Good () const
 

Protected Member Functions

size_t GetBlockSizeBytes () const override
 
size_t GetKeyLengthBits () const override
 
- Protected Member Functions inherited from Aws::Utils::Crypto::CommonCryptoCipher
bool CheckKeyAndIVLength (size_t expectedKeyLength, size_t expectedIVLength)
 
- Protected Member Functions inherited from Aws::Utils::Crypto::SymmetricCipher
 SymmetricCipher ()
 

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 Attributes inherited from Aws::Utils::Crypto::CommonCryptoCipher
_CCCryptor * m_encryptorHandle
 
_CCCryptor * m_decryptorHandle
 
- Protected Attributes inherited from Aws::Utils::Crypto::SymmetricCipher
CryptoBuffer m_key
 
CryptoBuffer m_initializationVector
 
CryptoBuffer m_tag
 
bool m_failure
 

Detailed Description

CommonCrypto implementation for AES in CBC mode

Definition at line 191 of file CryptoImpl.h.

Constructor & Destructor Documentation

◆ AES_CBC_Cipher_CommonCrypto() [1/5]

Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto::AES_CBC_Cipher_CommonCrypto ( const CryptoBuffer key)

Create AES in CBC mode off of a 256 bit key. Auto Generates a 16 byte secure random IV

◆ AES_CBC_Cipher_CommonCrypto() [2/5]

Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto::AES_CBC_Cipher_CommonCrypto ( CryptoBuffer &&  key,
CryptoBuffer &&  initializationVector 
)

Create AES in CBC mode off of a 256 bit key and 16 byte IV

◆ AES_CBC_Cipher_CommonCrypto() [3/5]

Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto::AES_CBC_Cipher_CommonCrypto ( const CryptoBuffer key,
const CryptoBuffer initializationVector 
)

Create AES in CBC mode off of a 256 bit key and 16 byte IV

◆ AES_CBC_Cipher_CommonCrypto() [4/5]

Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto::AES_CBC_Cipher_CommonCrypto ( const AES_CBC_Cipher_CommonCrypto other)
delete

◆ AES_CBC_Cipher_CommonCrypto() [5/5]

Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto::AES_CBC_Cipher_CommonCrypto ( AES_CBC_Cipher_CommonCrypto &&  toMove)
default

Member Function Documentation

◆ GetBlockSizeBytes()

size_t Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto::GetBlockSizeBytes ( ) const
overrideprotectedvirtual

◆ GetKeyLengthBits()

size_t Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto::GetKeyLengthBits ( ) const
overrideprotectedvirtual

◆ operator=()

AES_CBC_Cipher_CommonCrypto& Aws::Utils::Crypto::AES_CBC_Cipher_CommonCrypto::operator= ( const AES_CBC_Cipher_CommonCrypto other)
delete

◆ Reset()

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

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