crypt_util.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:1k
源码类别:

DVD

开发平台:

Others

  1. // $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_Clips/AviDrm/LibDrmCommon/crypt_util.h 2     2/15/04 7:41p Lotan $
  2. // Copyright (c) 2003 DivXNetworks, Inc. http://www.divxnetworks.com
  3. // All rights reserved.
  4. //
  5. // This software is the confidential and proprietary information of DivxNetworks
  6. // Inc. ("Confidential Information").  You shall not disclose such Confidential
  7. // Information and shall use it only in accordance with the terms of the license
  8. // agreement you entered into with DivXNetworks, Inc.
  9. #ifndef CRYPT_UTIL_H
  10. #define CRYPT_UTIL_H
  11. #include "Config.h" // Global Configuration - do not remove!
  12. #include "Includesysdefs.h"
  13. #ifdef AVI_DRM_SUPPORT
  14. #include "PlaycoreNav_ClipsAviDrmlibAESrijndael-api-fst.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. int crypt_util_make_key(unsigned char *keydata, int direction, keyInstance *key, int keyLength);
  19. // <<< Robin_0915_2004
  20. #ifndef AVI_DRM_OPTIMIZATION
  21. void crypt_util_encrypt(cipherInstance * cipher, keyInstance *key, unsigned char *clearBuffer, 
  22. int clearBufferSize, unsigned char *encryptedBuffer, int * encryptedBufferSize );
  23. #endif
  24. // >>> Robin_0915_2004
  25. void crypt_util_decrypt(cipherInstance * cipher, keyInstance *key, unsigned char *encryptedBuffer, 
  26. int encryptedBufferSize, unsigned char *clearBuffer, int * clearBufferSize );
  27. #ifdef __cplusplus
  28. };
  29. #endif
  30. #endif // CRYPT_UTIL_H
  31. #endif // AVI_DRM_SUPPORT