RDK Documentation (Open Sourced RDK Components)
ClearKeyDrmSession.cpp File Reference

Source file for ClearKey DRM Session. More...

#include "config.h"
#include "ClearKeyDrmSession.h"
#include "AampUtils.h"
#include "AampConfig.h"
#include <gst/gst.h>
#include <sstream>
#include <string>
#include <string.h>
#include <vector>
#include "priv_aamp.h"
#include <openssl/err.h>
#include <sys/time.h>
#include <gst/base/gstbytereader.h>
Include dependency graph for ClearKeyDrmSession.cpp:

Go to the source code of this file.

Macros

#define AES_CTR_KID_LEN   16
 
#define AES_CTR_IV_LEN   16
 
#define AES_CTR_KEY_LEN   16
 
#define OPEN_SSL_CONTEXT   &mOpensslCtx
 

Functions

static unsigned char * extractKeyIdFromPssh (const char *psshData, int dataLength, int *len)
 Extract the keyId from PSSH data. Different procedures are used for PlayReady and WideVine. More...
 

yes

Source file for ClearKey DRM Session.

Definition in file ClearKeyDrmSession.cpp.

Function Documentation

◆ extractKeyIdFromPssh()

static unsigned char* extractKeyIdFromPssh ( const char *  psshData,
int  dataLength,
int *  len 
)
static

Extract the keyId from PSSH data. Different procedures are used for PlayReady and WideVine.

Parameters
[in]psshData- Pointer to PSSH data.
[in]dataLength- Length of PSSH data.
[out]len- Gets updated with length of keyId.
Returns
Pointer to extracted keyId.
Note
Memory for keyId is dynamically allocated, deallocation should be handled at the caller side.

Definition at line 108 of file ClearKeyDrmSession.cpp.