Pepper_31_C_interfaces
|
#include <pp_content_decryptor_samsung.h>
Public Attributes | |
uint32_t | clear_bytes |
uint32_t | cipher_bytes |
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 111 of file pp_content_decryptor_samsung.h.
uint32_t PP_DecryptSubsampleDescription::cipher_bytes |
Size in bytes of encrypted data in a subsample entry.
Definition at line 119 of file pp_content_decryptor_samsung.h.
uint32_t PP_DecryptSubsampleDescription::clear_bytes |
Size in bytes of clear data in a subsample entry.
Definition at line 115 of file pp_content_decryptor_samsung.h.