FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
AVEncryptionInfo Struct Reference

This describes encryption info for a packet. More...

#include <encryption_info.h>

Data Fields

uint32_t scheme
 The fourcc encryption scheme, in big-endian byte order. More...
 
uint32_t crypt_byte_block
 Only used for pattern encryption. More...
 
uint32_t skip_byte_block
 Only used for pattern encryption. More...
 
uint8_tkey_id
 The ID of the key used to encrypt the packet. More...
 
uint32_t key_id_size
 
uint8_tiv
 The initialization vector. More...
 
uint32_t iv_size
 
AVSubsampleEncryptionInfosubsamples
 An array of subsample encryption info specifying how parts of the sample are encrypted. More...
 
uint32_t subsample_count
 

Detailed Description

This describes encryption info for a packet.

This contains frame-specific info for how to decrypt the packet before passing it to the decoder.

The size of this struct is not part of the public ABI.

Definition at line 43 of file encryption_info.h.

Field Documentation

uint32_t AVEncryptionInfo::scheme
uint32_t AVEncryptionInfo::crypt_byte_block

Only used for pattern encryption.

This is the number of 16-byte blocks that are encrypted.

Definition at line 51 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_clone(), av_encryption_info_get_side_data(), cenc_decrypt(), compare_encryption_info(), mov_read_tenc(), and run_encryption_info_test().

uint32_t AVEncryptionInfo::skip_byte_block

Only used for pattern encryption.

This is the number of 16-byte blocks that are clear.

Definition at line 57 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_clone(), av_encryption_info_get_side_data(), cenc_decrypt(), compare_encryption_info(), mov_read_tenc(), and run_encryption_info_test().

uint8_t* AVEncryptionInfo::key_id

The ID of the key used to encrypt the packet.

This should always be 16 bytes long, but may be changed in the future.

Definition at line 63 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_alloc(), av_encryption_info_clone(), av_encryption_info_free(), av_encryption_info_get_side_data(), compare_encryption_info(), mov_read_tenc(), and run_encryption_info_test().

uint32_t AVEncryptionInfo::key_id_size
uint8_t* AVEncryptionInfo::iv

The initialization vector.

This may have been zero-filled to be the correct block size. This should always be 16 bytes long, but may be changed in the future.

Definition at line 71 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_alloc(), av_encryption_info_clone(), av_encryption_info_free(), av_encryption_info_get_side_data(), cenc_decrypt(), compare_encryption_info(), mov_read_tenc(), and run_encryption_info_test().

uint32_t AVEncryptionInfo::iv_size
AVSubsampleEncryptionInfo* AVEncryptionInfo::subsamples

An array of subsample encryption info specifying how parts of the sample are encrypted.

If there are no subsamples, then the whole sample is encrypted.

Definition at line 79 of file encryption_info.h.

Referenced by av_encryption_info_add_side_data(), av_encryption_info_alloc(), av_encryption_info_clone(), av_encryption_info_free(), av_encryption_info_get_side_data(), cenc_decrypt(), compare_encryption_info(), and run_encryption_info_test().

uint32_t AVEncryptionInfo::subsample_count

The documentation for this struct was generated from the following file: