StaticnewStaticfromCreate an EncryptedMessage from components (legacy alias).
Optionalaad: Uint8Array<ArrayBufferLike>Returns a reference to the ciphertext data.
Returns a reference to the additional authenticated data (AAD).
Returns a reference to the nonce value used for encryption.
Returns a reference to the authentication tag value used for encryption.
Returns a CBOR representation in the AAD field, if it exists.
Returns a Digest instance if the AAD data can be parsed as CBOR.
Returns true if the AAD data can be parsed as a Digest.
Get string representation.
Returns the CBOR tags associated with EncryptedMessage.
Returns the untagged CBOR encoding (as an array). Array format: [ciphertext, nonce, auth, ?aad]
Returns the tagged CBOR encoding.
Returns the tagged value in CBOR binary representation.
Creates an EncryptedMessage by decoding it from untagged CBOR.
Creates an EncryptedMessage by decoding it from tagged CBOR.
StaticfromStaticfromStatic method to decode from tagged CBOR binary data.
StaticfromStatic method to decode from untagged CBOR binary data.
Returns the UR representation of the EncryptedMessage. Note: URs use untagged CBOR since the type is conveyed by the UR type itself.
Returns the UR string representation.
StaticfromStaticfrom
Restores an EncryptedMessage from its components.