Module data_envelope

Source

Structsยง

DataEnvelope
DataEnvelope allows sealing structs entire structs to encrypted blobs.

Enumsยง

DataEnvelopeError
Error type for DataEnvelope operations.

Constantsยง

DATA_ENVELOPE_PADDING_SIZE ๐Ÿ”’

Traitsยง

SealableData
Marker trait for data that can be sealed in a DataEnvelope.
SealableVersionedData
Marker trait for data that can be sealed in a DataEnvelope.

Functionsยง

content_format ๐Ÿ”’
Helper function to extract the content type from a ProtectedHeader. The content type is a standardized header set on the protected headers of the signature object. Currently we only support registered values, but PrivateUse values are also allowed in the COSE specification.
extract_namespace ๐Ÿ”’
Helper function to extract the namespace from a ProtectedHeader. The namespace is stored as a custom header value using the DATA_ENVELOPE_NAMESPACE label.
pad_cbor ๐Ÿ”’
unpad_cbor ๐Ÿ”’