AWS SDK for C++  1.9.108
AWS SDK for C++
EncryptionMaterials.h
Go to the documentation of this file.
1 
5 #pragma once
6 
12 #include <aws/core/NoResult.h>
13 
14 namespace Aws
15 {
16  namespace Utils
17  {
18  namespace Crypto
19  {
20  enum class CryptoErrors
21  {
22  ENCRYPT_CONTENT_ENCRYPTION_KEY_FAILED,
23  DECRYPT_CONTENT_ENCRYPTION_KEY_FAILED,
25  };
26 
28 
30  {
31  public:
33 
34  /*
35  * Override this method to control how to encrypt the content encryption key (CEK). This occurs in place.
36  */
37  virtual CryptoOutcome EncryptCEK(ContentCryptoMaterial& contentCryptoMaterial) = 0;
38 
39  /*
40  * Override this method to control how to decrypt the content encryption key (CEK). This occurs in place.
41  */
42  virtual CryptoOutcome DecryptCEK(ContentCryptoMaterial& contentCryptoMaterial) = 0;
43  };
44  }//namespace Crypto
45  }//namespace Utils
46 }//namespace Aws
Aws::Utils::Crypto::CryptoErrors::ENCRYPT_CONTENT_ENCRYPTION_KEY_FAILED
@ ENCRYPT_CONTENT_ENCRYPTION_KEY_FAILED
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
AWSError.h
Aws::Utils::Crypto::EncryptionMaterials::EncryptCEK
virtual CryptoOutcome EncryptCEK(ContentCryptoMaterial &contentCryptoMaterial)=0
Aws::Utils::Crypto::CryptoErrors
CryptoErrors
Definition: EncryptionMaterials.h:21
Aws::Utils::Crypto::ContentCryptoMaterial
Definition: ContentCryptoMaterial.h:20
NoResult.h
Aws::Utils::Crypto::EncryptionMaterials::~EncryptionMaterials
virtual ~EncryptionMaterials()
Outcome.h
Aws::Utils::Crypto::EncryptionMaterials
Definition: EncryptionMaterials.h:30
Aws::Utils::Crypto::EncryptionMaterials::DecryptCEK
virtual CryptoOutcome DecryptCEK(ContentCryptoMaterial &contentCryptoMaterial)=0
Aws::Utils::Crypto::CryptoOutcome
Outcome< Aws::NoResult, Aws::Client::AWSError< CryptoErrors > > CryptoOutcome
Definition: EncryptionMaterials.h:27
Core_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Utils::Outcome
Definition: Outcome.h:26
CryptoBuf.h
ContentCryptoMaterial.h