1 /*
2 ***************************************************************************************************
3 * Copyright (c) 2015 Advanced Micro Devices, Inc. (unpublished)
4 *
5 *  All rights reserved.  This notice is intended as a precaution against inadvertent publication and
6 *  does not imply publication or any waiver of confidentiality.  The year included in the foregoing
7 *  notice is the year of creation of the work.
8 *
9 ***************************************************************************************************
10 */
11 /**
12 ***************************************************************************************************
13 * @file  pspdecryptionparam.h
14 * @brief Decryption parameter definitions for VAAPI protected content decryption
15 ***************************************************************************************************
16 */
17 #ifndef _PSP_DECRYPTION_PARAM_H_
18 #define _PSP_DECRYPTION_PARAM_H_
19 
20 typedef struct _DECRYPT_PARAMETERS_
21 {
22    uint32_t                frame_size;         // Size of encrypted frame
23    uint8_t                 encrypted_iv[16];   // IV of the encrypted frame (clear)
24    uint8_t                 encrypted_key[16];  // key to decrypt encrypted frame (encrypted with session key)
25    uint8_t                 session_iv[16];     // IV to be used to decrypt encrypted_key
26 
27    union
28    {
29       struct
30       {
31          uint32_t    drm_id   : 4;	//DRM session ID
32          uint32_t    ctr      : 1;
33          uint32_t    cbc      : 1;
34          uint32_t    reserved : 26;
35       } s;
36       uint32_t        value;
37    } u;
38 } DECRYPT_PARAMETERS;
39 
40 #endif //_PSP_DECRYPTION_PARAM_H_
41