drm_message.h

来自「SAMSUNG 5009的源代码」· C头文件 代码 · 共 49 行

H
49
字号
/*
// $Header: /Mux_Demux_SDK/libDrmDecrypt/src/DrmMessage.h 7     8/15/03 4:13p Wiley $
// 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

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

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


#ifdef __cplusplus
extern "C" {
#endif

void packRegistrationRequest(RegistrationRequest request, DrmMessagePacked *messagePacked);

void packRegistrationLogic(RegistrationRequest *request, DrmMessagePacked *messagePacked, UCHAR direction);
void registrationSecuritySwap(DrmMessagePacked *messagePacked);
void wrapSecureMessage(DrmMessagePacked *transformMessage);
void unwrapSecureMessage(DrmMessagePacked *transformMessage);

#ifdef __cplusplus
};
#endif

#endif //DRMMESSAGE_H_INCLUDE

⌨️ 快捷键说明

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