ISOBMFF
ISO Base Media File Format Reference Software Documentation
 
Loading...
Searching...
No Matches
ISMACrypt Support

ISMACrypt Support. More...

Macros

#define ISMA_selective_encrypt   0x80
 

Functions

MP4Err ISMATransformSampleEntry (u32 newTrackFlags, MP4Handle insampleEntryH, u8 selective_encryption, u8 key_indicator_length, u8 IV_length, char *kms_URL, MP4Handle outsampleEntryH)
 ‘Transforms’ a sample entry into the format expected by ISMA for a sample entry for protected (encrypted) content.
 
MP4Err ISMAUnTransformSampleEntry (MP4Handle insampleEntryH, u8 *selective_encryption, u8 *key_indicator_length, u8 *IV_length, char **kms_URL, MP4Handle outsampleEntryH)
 ‘Untransforms’ a sample entry, from the encrypted form to the standard form.
 
MP4Err ISMATransformSampleEntrySalt (u32 newTrackFlags, MP4Handle insampleEntryH, u8 selective_encryption, u8 key_indicator_length, u8 IV_length, char *kms_URL, u64 salt, MP4Handle outsampleEntryH)
 ‘Transforms’ a sample entry into the format expected by ISMA for a sample entry for protected (encrypted) content.
 
MP4Err ISMAUnTransformSampleEntrySalt (MP4Handle insampleEntryH, u8 *selective_encryption, u8 *key_indicator_length, u8 *IV_length, char **kms_URL, u64 *salt, MP4Handle outsampleEntryH)
 ‘Untransforms’ a sample entry, from the encrypted form to the standard form.
 

Detailed Description

ISMACrypt Support.

Function Documentation

◆ ISMATransformSampleEntry()

MP4Err ISMATransformSampleEntry ( u32  newTrackFlags,
MP4Handle  insampleEntryH,
u8  selective_encryption,
u8  key_indicator_length,
u8  IV_length,
char *  kms_URL,
MP4Handle  outsampleEntryH 
)

‘Transforms’ a sample entry into the format expected by ISMA for a sample entry for protected (encrypted) content.

The flags are the same as for new tracks (audio or video track).

Note
it is possible to build without ISMACrypt support using an ifdef.

◆ ISMATransformSampleEntrySalt()

MP4Err ISMATransformSampleEntrySalt ( u32  newTrackFlags,
MP4Handle  insampleEntryH,
u8  selective_encryption,
u8  key_indicator_length,
u8  IV_length,
char *  kms_URL,
u64  salt,
MP4Handle  outsampleEntryH 
)

‘Transforms’ a sample entry into the format expected by ISMA for a sample entry for protected (encrypted) content.

The flags are the same as for new tracks (audio or video track). The salt is an initial salt value which will be stored in the file if non-zero.

Note
it is possible to build without ISMACrypt support using an ifdef.

◆ ISMAUnTransformSampleEntry()

MP4Err ISMAUnTransformSampleEntry ( MP4Handle  insampleEntryH,
u8 *  selective_encryption,
u8 *  key_indicator_length,
u8 *  IV_length,
char **  kms_URL,
MP4Handle  outsampleEntryH 
)

‘Untransforms’ a sample entry, from the encrypted form to the standard form.

Returns the encryption parameter information previously supplied to the previous function.

◆ ISMAUnTransformSampleEntrySalt()

MP4Err ISMAUnTransformSampleEntrySalt ( MP4Handle  insampleEntryH,
u8 *  selective_encryption,
u8 *  key_indicator_length,
u8 *  IV_length,
char **  kms_URL,
u64 *  salt,
MP4Handle  outsampleEntryH 
)

‘Untransforms’ a sample entry, from the encrypted form to the standard form.

Returns the encryption parameter information previously supplied to the previous function, filling in salt if it was supplied in the file.