zcl_cert_data.c 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /**************************************************************************************************
  2. Filename: zcl_cert_data.c
  3. Revised: $Date: 2012-04-02 17:02:19 -0700 (Mon, 02 Apr 2012) $
  4. Revision: $Revision: 29996 $
  5. Description: This file defines actual data for use as in test & debug when
  6. instantiating the Certicom Certificate Data for ECC SECURITY.
  7. Copyright 2010-2011 Texas Instruments Incorporated. All rights reserved.
  8. IMPORTANT: Your use of this Software is limited to those specific rights
  9. granted under the terms of a software license agreement between the user
  10. who downloaded the software, his/her employer (which must be your employer)
  11. and Texas Instruments Incorporated (the "License"). You may not use this
  12. Software unless you agree to abide by the terms of the License. The License
  13. limits your use, and you acknowledge, that the Software may not be modified,
  14. copied or distributed unless embedded on a Texas Instruments microcontroller
  15. or used solely and exclusively in conjunction with a Texas Instruments radio
  16. frequency transceiver, which is integrated into your product. Other than for
  17. the foregoing purpose, you may not use, reproduce, copy, prepare derivative
  18. works of, modify, distribute, perform, display or sell this Software and/or
  19. its documentation for any purpose.
  20. YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
  21. PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
  22. INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
  23. NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
  24. TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,
  25. NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
  26. LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
  27. INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
  28. OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
  29. OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
  30. (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
  31. Should you have any questions regarding your right to use this Software,
  32. contact Texas Instruments Incorporated at www.TI.com.
  33. **************************************************************************************************/
  34. /* ------------------------------------------------------------------------------------------------
  35. * Includes
  36. * ------------------------------------------------------------------------------------------------
  37. */
  38. #include "ZComDef.h"
  39. #if defined TEST_CERT_DATA
  40. /* ------------------------------------------------------------------------------------------------
  41. * Constants
  42. * ------------------------------------------------------------------------------------------------
  43. */
  44. // The unique Extended Address is mangled into the following 3 certificates using
  45. // the certificate generation tool from Certicom.
  46. #if ZG_BUILD_COORDINATOR_TYPE
  47. #pragma location="IEEE_ADDRESS_SPACE"
  48. const uint8 certExtendedAddress[Z_EXTADDR_LEN] = {
  49. 0x01, 0x00, 0x00, 0x00, 0x00, 0x4b, 0x12, 0x00
  50. };
  51. #pragma required=certExtendedAddress
  52. #pragma location="IMPLICIT_CERTIFICATE_ADDRESS_SPACE"
  53. const uint8 ImplicitCertificate[ZCL_KE_IMPLICIT_CERTIFICATE_LEN] = {
  54. 0x03, 0x07, 0x8c, 0x45, 0xde, 0xa5, 0x06, 0xd0,
  55. 0x7f, 0x1b, 0x82, 0x21, 0x22, 0xb5, 0xa3, 0x1e,
  56. 0xb0, 0xa0, 0xd6, 0x29, 0x55, 0xdb, 0x00, 0x12,
  57. 0x4b, 0x00, 0x00, 0x00, 0x00, 0x01, 0x54, 0x45,
  58. 0x53, 0x54, 0x53, 0x45, 0x43, 0x41, 0x01, 0x09,
  59. 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  60. };
  61. #pragma required=ImplicitCertificate
  62. #pragma location="CA_PUBLIC_KEY_ADDRESS_SPACE"
  63. const uint8 CA_Public_Key[ZCL_KE_CA_PUBLIC_KEY_LEN] = {
  64. 0x02, 0x00, 0xfd, 0xe8, 0xa7, 0xf3, 0xd1, 0x08,
  65. 0x42, 0x24, 0x96, 0x2a, 0x4e, 0x7c, 0x54, 0xe6,
  66. 0x9a, 0xc3, 0xf0, 0x4d, 0xa6, 0xb8
  67. };
  68. #pragma required=CA_Public_Key
  69. #pragma location="DEV_PRIVATE_KEY_ADDRESS_SPACE"
  70. const uint8 DevicePrivateKey[ZCL_KE_DEVICE_PRIVATE_KEY_LEN] = {
  71. 0x02, 0x28, 0x4a, 0x56, 0x3f, 0x02, 0xf2, 0xc8,
  72. 0xbd, 0xa7, 0x57, 0xf9, 0x61, 0xbb, 0x8c, 0xb4,
  73. 0xfb, 0x6e, 0x90, 0xed, 0x42
  74. };
  75. #pragma required=DevicePrivateKey
  76. #elif ZG_BUILD_RTR_TYPE
  77. #pragma location="IEEE_ADDRESS_SPACE"
  78. const uint8 certExtendedAddress[Z_EXTADDR_LEN] = {
  79. 0x02, 0x00, 0x00, 0x00, 0x00, 0x4b, 0x12, 0x00
  80. };
  81. #pragma required=certExtendedAddress
  82. #pragma location="IMPLICIT_CERTIFICATE_ADDRESS_SPACE"
  83. const uint8 ImplicitCertificate[ZCL_KE_IMPLICIT_CERTIFICATE_LEN] = {
  84. 0x03, 0x06, 0x9b, 0xc9, 0x8f, 0x75, 0x1f, 0xba,
  85. 0x22, 0xdb, 0xca, 0xd6, 0x4a, 0x7d, 0x46, 0x2c,
  86. 0x20, 0x9c, 0x2e, 0xd9, 0x01, 0x5f, 0x00, 0x12,
  87. 0x4b, 0x00, 0x00, 0x00, 0x00, 0x02, 0x54, 0x45,
  88. 0x53, 0x54, 0x53, 0x45, 0x43, 0x41, 0x01, 0x09,
  89. 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  90. };
  91. #pragma required=ImplicitCertificate
  92. #pragma location="CA_PUBLIC_KEY_ADDRESS_SPACE"
  93. const uint8 CA_Public_Key[ZCL_KE_CA_PUBLIC_KEY_LEN] = {
  94. 0x02, 0x00, 0xfd, 0xe8, 0xa7, 0xf3, 0xd1, 0x08,
  95. 0x42, 0x24, 0x96, 0x2a, 0x4e, 0x7c, 0x54, 0xe6,
  96. 0x9a, 0xc3, 0xf0, 0x4d, 0xa6, 0xb8
  97. };
  98. #pragma required=CA_Public_Key
  99. #pragma location="DEV_PRIVATE_KEY_ADDRESS_SPACE"
  100. const uint8 DevicePrivateKey[ZCL_KE_DEVICE_PRIVATE_KEY_LEN] = {
  101. 0x03, 0x7a, 0xd5, 0x45, 0xab, 0xa5, 0xf7, 0x47,
  102. 0xe4, 0x0a, 0x24, 0xea, 0x85, 0x50, 0x4c, 0x47,
  103. 0x39, 0x8c, 0x97, 0xf4, 0x96
  104. };
  105. #pragma required=DevicePrivateKey
  106. #else // if ZG_BUILD_ENDDEVICE_TYPE
  107. #pragma location="IEEE_ADDRESS_SPACE"
  108. const uint8 certExtendedAddress[Z_EXTADDR_LEN] = {
  109. 0x03, 0x00, 0x00, 0x00, 0x00, 0x4b, 0x12, 0x00
  110. };
  111. #pragma required=certExtendedAddress
  112. #pragma location="IMPLICIT_CERTIFICATE_ADDRESS_SPACE"
  113. const uint8 ImplicitCertificate[ZCL_KE_IMPLICIT_CERTIFICATE_LEN] = {
  114. 0x02, 0x04, 0xac, 0x2c, 0x26, 0x56, 0xf1, 0xee,
  115. 0xa4, 0xff, 0x5d, 0xac, 0x4e, 0xdd, 0xa1, 0x76,
  116. 0xbf, 0xe4, 0xfa, 0x70, 0xd9, 0x56, 0x00, 0x12,
  117. 0x4b, 0x00, 0x00, 0x00, 0x00, 0x03, 0x54, 0x45,
  118. 0x53, 0x54, 0x53, 0x45, 0x43, 0x41, 0x01, 0x09,
  119. 0x00, 0x01, 0x00, 0x00, 0x01, 0x09, 0x10, 0x03
  120. };
  121. #pragma required=ImplicitCertificate
  122. #pragma location="CA_PUBLIC_KEY_ADDRESS_SPACE"
  123. const uint8 CA_Public_Key[ZCL_KE_CA_PUBLIC_KEY_LEN] = {
  124. 0x02, 0x00, 0xfd, 0xe8, 0xa7, 0xf3, 0xd1, 0x08,
  125. 0x42, 0x24, 0x96, 0x2a, 0x4e, 0x7c, 0x54, 0xe6,
  126. 0x9a, 0xc3, 0xf0, 0x4d, 0xa6, 0xb8
  127. };
  128. #pragma required=CA_Public_Key
  129. #pragma location="DEV_PRIVATE_KEY_ADDRESS_SPACE"
  130. const uint8 DevicePrivateKey[ZCL_KE_DEVICE_PRIVATE_KEY_LEN] = {
  131. 0x03, 0x4b, 0xc3, 0x7a, 0x72, 0x10, 0xb7, 0x40,
  132. 0x7a, 0x51, 0xdc, 0x11, 0xe5, 0xae, 0xba, 0xf2,
  133. 0xe1, 0x50, 0x3f, 0x69, 0x55
  134. };
  135. #pragma required=DevicePrivateKey
  136. #endif
  137. #endif
  138. /**************************************************************************************************
  139. */