Skip to main content

Module data_envelope

Module data_envelope 

Source

Structsยง

DataEnvelope
DataEnvelope allows sealing structs entire structs to encrypted blobs.

Enumsยง

DataEnvelopeError
Error type for DataEnvelope operations.
DataEnvelopeNamespace
Data envelopes are domain-separated within bitwarden, to prevent cross protocol attacks.

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.
pad_cbor ๐Ÿ”’
unpad_cbor ๐Ÿ”’