AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SimpleEncryptionMaterials.h
1
5#pragma once
6#include <aws/core/utils/crypto/EncryptionMaterials.h>
7#include <aws/s3-encryption/s3Encryption_EXPORTS.h>
8
9#if defined(_MSC_VER) && (_MSC_VER <= 1900 )
10#pragma warning (disable : 4996)
11#endif
12namespace Aws
13{
14 namespace S3Encryption
15 {
16 namespace Materials
17 {
18 /*
19 * Simple Encryption Materials is responsible for handling the encryption/decryption of
20 * content encryption keys. This class will use a user provided symmetric
21 * master key to encrypt/decrypt keys with AES Key Wrap.
22 */
24 {
25 public:
26 /*
27 Initialize with symmetric key.
28 */
30
31 /*
32 * This will encrypt the cek within the Content Crypto material and KeyWrapAlgorithm within the Content Crypto Material.
33 * This will occur in place and will directly manipulate the content crypto material passed to it.
34 */
36
37 /*
38 * This will decrypt the cek with the symmetric master key.
39 * This will occur in place and will directly manipulate the content crypto material passed to it.
40 */
42
43 protected:
44 virtual std::shared_ptr<Aws::Utils::Crypto::SymmetricCipher> CreateCipher(Aws::Utils::Crypto::ContentCryptoMaterial&, bool) const;
45
47
49 };
50
54 class
55 AWS_DEPRECATED("This class is in the maintenance mode, no new updates will be released, use SimpleEncryptionMaterialsWithGCMAAD. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information.")
57 {
58 public:
60 : SimpleEncryptionMaterialsBase(symmetricKey) {}
61 };
62
68 {
69 public:
71 : SimpleEncryptionMaterialsBase(symmetricKey) {}
72
73 protected:
75 };
76
77 }//namespace Materials
78 }//namespace S3Encryption
79}//namespace Aws
virtual Aws::Utils::Crypto::KeyWrapAlgorithm GetKeyWrapAlgorithm() const
Aws::Utils::Crypto::CryptoOutcome DecryptCEK(Aws::Utils::Crypto::ContentCryptoMaterial &contentCryptoMaterial) override
Aws::Utils::Crypto::CryptoOutcome EncryptCEK(Aws::Utils::Crypto::ContentCryptoMaterial &contentCryptoMaterial) override
virtual std::shared_ptr< Aws::Utils::Crypto::SymmetricCipher > CreateCipher(Aws::Utils::Crypto::ContentCryptoMaterial &, bool) const
SimpleEncryptionMaterialsBase(const Aws::Utils::CryptoBuffer &symmetricKey)
SimpleEncryptionMaterials(const Aws::Utils::CryptoBuffer &symmetricKey)
Aws::Utils::Crypto::KeyWrapAlgorithm GetKeyWrapAlgorithm() const override
SimpleEncryptionMaterialsWithGCMAAD(const Aws::Utils::CryptoBuffer &symmetricKey)