aws_encryption_sdk.structures
Public data structures for aws_encryption_sdk.
Classes
|
Holds both the encrypted and unencrypted copies of a data key. |
|
Holds only the encrypted copy of a data key. |
|
Contains information necessary to identify a Master Key. |
|
Deserialized message header object. |
|
Hold only the unencrypted copy of a data key. |
- class aws_encryption_sdk.structures.MessageHeader(version, algorithm, message_id, encryption_context, encrypted_data_keys, content_type, frame_length, type=None, content_aad_length=None, header_iv_length=None, commitment_key=None)
Bases:
object
Deserialized message header object.
- Parameters
version (aws_encryption_sdk.identifiers.SerializationVersion) – Message format version, per spec
type (aws_encryption_sdk.identifiers.ObjectType) – Message content type, per spec
algorithm (aws_encryption_sdk.identifiers.Algorithm) – Algorithm to use for encryption
message_id (bytes) – Message ID
encryption_context (dict) – Dictionary defining encryption context
encrypted_data_keys (set of
aws_encryption_sdk.structures.EncryptedDataKey
) – Encrypted data keyscontent_type (aws_encryption_sdk.identifiers.ContentType) – Message content framing type (framed/non-framed)
content_aad_length (bytes) – empty
header_iv_length (int) – Bytes in Initialization Vector value found in header
frame_length (int) – Length of message frame in bytes
Method generated by attrs for class MessageHeader.
- class aws_encryption_sdk.structures.MasterKeyInfo(provider_id, key_info)
Bases:
object
Contains information necessary to identify a Master Key.
- Parameters
Method generated by attrs for class MasterKeyInfo.
- class aws_encryption_sdk.structures.RawDataKey(key_provider, data_key)
Bases:
object
Hold only the unencrypted copy of a data key.
- Parameters
key_provider (aws_encryption_sdk.structures.MasterKeyInfo) – Key Provider information
data_key (bytes) – Plaintext data key
Method generated by attrs for class RawDataKey.
- class aws_encryption_sdk.structures.DataKey(key_provider, data_key, encrypted_data_key)
Bases:
object
Holds both the encrypted and unencrypted copies of a data key.
- Parameters
key_provider (aws_encryption_sdk.structures.MasterKeyInfo) – Key Provider information
data_key (bytes) – Plaintext data key
encrypted_data_key (bytes) – Encrypted data key
Method generated by attrs for class DataKey.
- class aws_encryption_sdk.structures.EncryptedDataKey(key_provider, encrypted_data_key)
Bases:
object
Holds only the encrypted copy of a data key.
- Parameters
key_provider (aws_encryption_sdk.structures.MasterKeyInfo) – Key Provider information
encrypted_data_key (bytes) – Encrypted data key
Method generated by attrs for class EncryptedDataKey.