Canonicalizes a MIME type for use in encrypted-media-v1 cryptographic operations (key derivation and AEAD AAD).
encrypted-media-v1
Sender and receiver MUST apply this identical algorithm (features/encrypted-media.md — Media Type Canonicalization):
features/encrypted-media.md
;
/
image/jpg
image/jpeg
Adding an alias or normalization step is a breaking media-version change.
The raw MIME type string
The canonical MIME type
If the canonical result is empty or has no /
Canonicalizes a MIME type for use in
encrypted-media-v1cryptographic operations (key derivation and AEAD AAD).Sender and receiver MUST apply this identical algorithm (
features/encrypted-media.md— Media Type Canonicalization):;, dropping any parameters/image/jpg→image/jpegAdding an alias or normalization step is a breaking media-version change.