Canonicalizes a MIME type for use in encrypted-media-v2 cryptographic operations (key derivation and AEAD AAD).
encrypted-media-v2
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 violates the v2 MIME profile
Canonicalizes a MIME type for use in
encrypted-media-v2cryptographic operations (key derivation and AEAD AAD).Sender and receiver MUST apply this identical algorithm (
features/encrypted-media.md— Media Type Canonicalization):;, dropping any parametersimage/jpg→image/jpegAdding an alias or normalization step is a breaking media-version change.