# AP4_SampleDecrypter Class Reference

`#include <Ap4Protection.h>`

Inheritance diagram for AP4_SampleDecrypter:

List of all members.

## Public Member Functions
virtual | ~AP4_SampleDecrypter ()
virtual AP4_Result | DecryptSampleData (AP4_DataBuffer &data_in, AP4_DataBuffer &data_out)=0
## Static Public Member Functions
static AP4_SampleDecrypter * | Create (AP4_ProtectedSampleDescription *sample_description, const AP4_UI08 *key, AP4_Size key_size, AP4_BlockCipherFactory *block_cipher_factory=NULL)

## Detailed Description

Definition at line 267 of file Ap4Protection.h.

## Constructor & Destructor Documentation

virtual AP4_SampleDecrypter::~AP4_SampleDecrypter | ( |  | ) | `[inline, virtual]`

Definition at line 277 of file Ap4Protection.h.

## Member Function Documentation

static AP4_SampleDecrypter* AP4_SampleDecrypter::Create | ( | AP4_ProtectedSampleDescription * | sample_description,
|  | const AP4_UI08 * | key,
|  | AP4_Size | key_size,
|  | AP4_BlockCipherFactory * | block_cipher_factory = `NULL` |
| ) |  |  | `[static]`

virtual AP4_Result AP4_SampleDecrypter::DecryptSampleData | ( | AP4_DataBuffer & | data_in,
|  | AP4_DataBuffer & | data_out |
| ) |  |  | `[pure virtual]`

Implemented in AP4_IsmaCipher, AP4_OmaDcfCtrSampleDecrypter, and AP4_OmaDcfCbcSampleDecrypter.

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

- Ap4Protection.h