aws_encryption_sdk.structures

Public data structures for aws_encryption_sdk.

Classes

DataKey(key_provider, data_key, ...)

Holds both the encrypted and unencrypted copies of a data key.

EncryptedDataKey(key_provider, ...)

Holds only the encrypted copy of a data key.

MasterKeyInfo(provider_id, key_info)

Contains information necessary to identify a Master Key.

MessageHeader(version, algorithm, ...[, ...])

Deserialized message header object.

RawDataKey(key_provider, data_key)

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

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
  • provider_id (str) – MasterKey provider_id value

  • key_info (bytes) – MasterKey key_info value

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

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

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

Method generated by attrs for class EncryptedDataKey.