Pepper_47_C_interfaces
Public Attributes | List of all members
PP_DecryptSubsampleDescription Struct Reference

#include <pp_content_decryptor.h>

Collaboration diagram for PP_DecryptSubsampleDescription:
Collaboration graph

Public Attributes

uint32_t clear_bytes
 
uint32_t cipher_bytes
 

Detailed Description

The PP_DecryptSubsampleDescription struct contains information to support subsample decryption.

An input block can be split into several continuous subsamples. A PP_DecryptSubsampleEntry specifies the number of clear and cipher bytes in each subsample. For example, the following block has three subsamples:

|<--— subsample1 --—>|<--— subsample2 --—>|<--— subsample3 --—>| | clear1 | cipher1 | clear2 | cipher2 | clear3 | cipher3 |

For decryption, all of the cipher bytes in a block should be treated as a contiguous (in the subsample order) logical stream. The clear bytes should not be considered as part of decryption.

Logical stream to decrypt: | cipher1 | cipher2 | cipher3 | Decrypted stream: | decrypted1| decrypted2 | decrypted3 |

After decryption, the decrypted bytes should be copied over the position of the corresponding cipher bytes in the original block to form the output block. Following the above example, the decrypted block should be:

|<--— subsample1 --—>|<--— subsample2 --—>|<--— subsample3 --—>| | clear1 | decrypted1| clear2 | decrypted2 | clear3 | decrypted3 |

Definition at line 80 of file pp_content_decryptor.h.

Member Data Documentation

uint32_t PP_DecryptSubsampleDescription::cipher_bytes

Size in bytes of encrypted data in a subsample entry.

Definition at line 88 of file pp_content_decryptor.h.

uint32_t PP_DecryptSubsampleDescription::clear_bytes

Size in bytes of clear data in a subsample entry.

Definition at line 84 of file pp_content_decryptor.h.


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