crypt_util.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:1k
- // $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_Clips/AviDrm/LibDrmCommon/crypt_util.h 2 2/15/04 7:41p Lotan $
- // Copyright (c) 2003 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.
- #ifndef CRYPT_UTIL_H
- #define CRYPT_UTIL_H
- #include "Config.h" // Global Configuration - do not remove!
- #include "Includesysdefs.h"
- #ifdef AVI_DRM_SUPPORT
- #include "PlaycoreNav_ClipsAviDrmlibAESrijndael-api-fst.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- int crypt_util_make_key(unsigned char *keydata, int direction, keyInstance *key, int keyLength);
- // <<< Robin_0915_2004
- #ifndef AVI_DRM_OPTIMIZATION
- void crypt_util_encrypt(cipherInstance * cipher, keyInstance *key, unsigned char *clearBuffer,
- int clearBufferSize, unsigned char *encryptedBuffer, int * encryptedBufferSize );
- #endif
- // >>> Robin_0915_2004
- void crypt_util_decrypt(cipherInstance * cipher, keyInstance *key, unsigned char *encryptedBuffer,
- int encryptedBufferSize, unsigned char *clearBuffer, int * clearBufferSize );
- #ifdef __cplusplus
- };
- #endif
- #endif // CRYPT_UTIL_H
- #endif // AVI_DRM_SUPPORT