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

DVD

开发平台:

Others

  1. /*
  2. // $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_Clips/AviDrm/LibDrmCommon/DrmSizes.h 2     2/15/04 7:41p Lotan $
  3. // Copyright (c) DivXNetworks, Inc. http://www.divxnetworks.com
  4. // All rights reserved.
  5. //
  6. // This software is the confidential and proprietary information of DivXNetworks
  7. // Inc. ("Confidential Information").  You shall not disclose such Confidential
  8. // Information and shall use it only in accordance with the terms of the license
  9. // agreement you entered into with DivXNetworks, Inc.
  10. */
  11. #ifndef DRM_SIZES_H_INCLUDE
  12. #define DRM_SIZES_H_INCLUDE
  13. /*
  14. This file defines various sizes used by the ADP DRM.
  15. */
  16. #include "Config.h" // Global Configuration - do not remove!
  17. #ifdef AVI_DRM_SUPPORT
  18. /* Memory sizes. */
  19. #define TOTAL_OWNERS                    1
  20. #define TOTAL_PLAY_SLOTS                8
  21. #define OWNER_GUARD_BYTES               3
  22. #define OWNER_USER_ID_BYTES             5
  23. #define SLOT_USE_DATA_BYTES 1          
  24. #define SLOT_SERIAL_NUMBER_BYTES 2
  25. #define PACKED_ALLOCATION_BYTES 48
  26. /* Misc sizes. */
  27. #define DRM_TYPES 5
  28. #define USE_LIMITS 8
  29. #define MAX_MESSAGE_SIZE_BYTES          12
  30. #define PROTECTION_FORMAT_BITS          4
  31. #define TRANSACTION_ID_BYTES            46
  32. #define MODEL_ID_BYTES                  2
  33. #define MODEL_ID_BITS 12
  34. #define KEY_SIZE_BYTES 16
  35. #define MASTER_KEY_SIZE_BYTES 32
  36. #define RANDOM_BYTE_BUCKET_SIZE 6
  37. #define MIN_REGISTRATION_RANDOM_SAMPLES 3
  38. #define DRM_HT_BOUNDED_BYTES 128
  39. #define DRM_BLOCK_ALIGN 16
  40. #define DRM_PORTABLE_KEY_LENGTH 44
  41. #define DRM_FRAME_KEY_COUNT 128
  42. #define DRM_FRAME_DRM_INFO_SIZE 10
  43. #define DRM_ADP_RESERVED                8
  44. #define DRM_OTHER_RESERVED 12
  45. #define DRM_HEADER_DRM_INFO_SIZE        2224
  46. /* Message sizes. */
  47. #define REGISTRATION_CODE_BITS 36
  48. #define REGISTRATION_CHALLENGE_BITS     40
  49. #define REGISTRATION_CODE_STRING_BYTES 9
  50. #endif // AVI_DRM_SUPPORT
  51. #endif DRM_SIZES_H_INCLUDE