Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::DecryptorSource Class Reference

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)
 

Detailed Description

DecryptorSource wraps KeySource and is responsible for decryptor management.

Definition at line 23 of file decryptor_source.h.

Constructor & Destructor Documentation

◆ DecryptorSource()

shaka::media::DecryptorSource::DecryptorSource ( KeySource key_source)
explicit

Constructs a DecryptorSource object.

Parameters
key_sourcepoints to the key source that contains the keys.

Definition at line 30 of file decryptor_source.cc.

Member Function Documentation

◆ DecryptSampleBuffer()

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.

Parameters
decrypt_configcontains decrypt configuration, e.g. protection scheme, subsample information etc.
encrypted_bufferpoints to the encrypted buffer that is to be decrypted. It should not overlap with decrypted_buffer.
buffer_sizeis the size of encrypted buffer and decrypted buffer.
decrypted_bufferpoints to the decrypted buffer. It should not overlap with encrypted_buffer.
Returns
true if success, false otherwise.

Definition at line 36 of file decryptor_source.cc.


The documentation for this class was generated from the following files: