⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drmmessage.h

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 H
字号:
/*
// $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_Clips/AviDrm/libDrmDecrypt/DrmMessage.h 2     2/15/04 7:42p Lotan $
// Copyright (c) DivXNetworks, Inc. http://www.divxnetworks.com
// All rights reserved.
//
// This software is the confidential and proprietary information of DivxNetworks
// Inc. ("Confidential Information").  You shall not disclose such Confidential
// Information and shall use it only in accordance with the terms of the license
// agreement you entered into with DivXNetworks, Inc.
*/

/*
These functions and structures allow representation and manipulation
of the challenge response messages used by the ADP DRM.
*/

#ifndef DRMMESSAGE_H_INCLUDE
#define DRMMESSAGE_H_INCLUDE

#include "Config.h"		// Global Configuration - do not remove!

#ifdef AVI_DRM_SUPPORT

#include "Playcore\Nav_Clips\AviDrm\LibDrmCommon\Portable.h" /* uint8_t, uint16_t */
#include "Playcore\Nav_Clips\AviDrm\LibDrmCommon\DrmSizes.h"

typedef struct DrmMessagePackedStruct
{
    uint8_t message[MAX_MESSAGE_SIZE_BYTES];
    uint8_t sizeInBits;
} DrmMessagePacked;

typedef struct RegistrationRequestStruct
{
    uint8_t userIdGuard[OWNER_GUARD_BYTES];
    uint8_t modelId[MODEL_ID_BYTES];
} RegistrationRequest;


#ifdef __cplusplus
extern "C" {
#endif

void packRegistrationRequest(RegistrationRequest request, DrmMessagePacked *messagePacked);

void packRegistrationLogic(RegistrationRequest *request, DrmMessagePacked *messagePacked, uint8_t direction);
void registrationSecuritySwap(DrmMessagePacked *messagePacked);
uint8_t setHash(uint8_t keyId, uint8_t *keyHash);
void wrapSecureMessage(DrmMessagePacked *transformMessage);
void unwrapSecureMessage(DrmMessagePacked *transformMessage);

#ifdef __cplusplus
};
#endif

#endif // AVI_DRM_SUPPORT

#endif DRMMESSAGE_H_INCLUDE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -