AWS SDK for C++AWS SDK for C++ Version 1.11.791 |
#include <Cipher.h>
Interface for symmetric encryption and decryption providers. An instance of this class is good for exactly one encryption or decryption run. It should not be used to encrypt or decrypt multiple messages.
false
Normally we don't work around VS 2013 not auto-generating these, but they are kind of expensive, so let's go ahead and optimize by defining default move operations. Implementors of this class need to be sure to define the move operations and call the base class.
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.
Implemented in Aws::Utils::Crypto::CRTSymmetricCipher.
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.
Implemented in Aws::Utils::Crypto::CRTSymmetricCipher.
Finalize Decryption, returns anything remaining in the last block
Implemented in Aws::Utils::Crypto::CRTSymmetricCipher.
Finalize Encryption, returns anything remaining in the last block
Implemented in Aws::Utils::Crypto::CRTSymmetricCipher.
false
Generates a non-deterministic random IV. The first call is somewhat expensive but subsequent calls should be fast. If ctrMode is true, it will pad nonce in the first 1/4 of the iv and initialize the back 1/4 to 1.
SYMMETRIC_KEY_LENGTH)
Generates a non-deterministic random symmetric key. Default (and minimum bar for security) is 256 bits.
Reimplemented in Aws::Utils::Crypto::CRTSymmetricCipher.
Normally we don't work around VS 2013 not auto-generating these, but they are kind of expensive, so let's go ahead and optimize by defining default move operations. Implementors of this class need to be sure to define the move operations and call the base class.
Implemented in Aws::Utils::Crypto::CRTSymmetricCipher.