aws_encryption_sdk.internal.formatting

Formatting functions for aws_encryption_sdk.

Functions

body_length(header, plaintext_length) Calculates the ciphertext message body length, given a complete header.
ciphertext_length(header, plaintext_length) Calculates the complete ciphertext message length, given a complete header.
footer_length(header) Calculates the ciphertext message footer length, given a complete header.
header_length(header) Calculates the ciphertext message header length, given a complete header.
aws_encryption_sdk.internal.formatting.header_length(header)

Calculates the ciphertext message header length, given a complete header.

Parameters:header (aws_encryption_sdk.structures.MessageHeader) – Complete message header object
Return type:int
aws_encryption_sdk.internal.formatting.body_length(header, plaintext_length)

Calculates the ciphertext message body length, given a complete header.

Parameters:
Return type:

int

aws_encryption_sdk.internal.formatting.footer_length(header)

Calculates the ciphertext message footer length, given a complete header.

Parameters:header (aws_encryption_sdk.structures.MessageHeader) – Complete message header object
Return type:int
aws_encryption_sdk.internal.formatting.ciphertext_length(header, plaintext_length)

Calculates the complete ciphertext message length, given a complete header.

Parameters:
Return type:

int