Shaka Packager SDK
|
DecryptorSource wraps KeySource and is responsible for decryptor management. More...
#include <decryptor_source.h>
Public Member Functions | |
DecryptorSource (KeySource *key_source) | |
bool | DecryptSampleBuffer (const DecryptConfig *decrypt_config, const uint8_t *encrypted_buffer, size_t buffer_size, uint8_t *decrypted_buffer) |
DecryptorSource wraps KeySource and is responsible for decryptor management.
Definition at line 23 of file decryptor_source.h.
|
explicit |
Constructs a DecryptorSource object.
key_source | points to the key source that contains the keys. |
Definition at line 30 of file decryptor_source.cc.
bool shaka::media::DecryptorSource::DecryptSampleBuffer | ( | const DecryptConfig * | decrypt_config, |
const uint8_t * | encrypted_buffer, | ||
size_t | buffer_size, | ||
uint8_t * | decrypted_buffer | ||
) |
Decrypt encrypted buffer.
decrypt_config | contains decrypt configuration, e.g. protection scheme, subsample information etc. |
encrypted_buffer | points to the encrypted buffer that is to be decrypted. It should not overlap with decrypted_buffer. |
buffer_size | is the size of encrypted buffer and decrypted buffer. |
decrypted_buffer | points to the decrypted buffer. It should not overlap with encrypted_buffer. |
Definition at line 36 of file decryptor_source.cc.