epid_verify_pub.hh 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (C) 2011-2017 Intel Corporation. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * * Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in
  12. * the documentation and/or other materials provided with the
  13. * distribution.
  14. * * Neither the name of Intel Corporation nor the names of its
  15. * contributors may be used to endorse or promote products derived
  16. * from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. *
  30. */
  31. #define USE_DEBUG_KEY 0 /* Use debug key or production key */
  32. #define ECDSA_PUBLIC_KEY_SIZE 64
  33. #if USE_DEBUG_KEY
  34. const uint8_t INTEL_ECDSA_PUBKEY_DEBUG_LITTLE_ENDIAN[ECDSA_PUBLIC_KEY_SIZE] =
  35. {
  36. 0xe7, 0x76, 0x3a, 0xb9, 0x32, 0x02, 0x72, 0x3b,
  37. 0x06, 0x6c, 0x2a, 0x70, 0xf9, 0xdf, 0x3b, 0x85,
  38. 0x5b, 0x99, 0x88, 0x9b, 0x2a, 0xed, 0x71, 0x51,
  39. 0x47, 0x41, 0xf8, 0x3e, 0x15, 0x6f, 0x57, 0xfb,
  40. 0x63, 0xea, 0xf2, 0x19, 0x34, 0x7c, 0xb0, 0x93,
  41. 0x88, 0x20, 0xf1, 0xed, 0xd2, 0x2a, 0xce, 0xf1,
  42. 0xda, 0x1f, 0xb6, 0xfa, 0x17, 0x1c, 0x00, 0xd1,
  43. 0x30, 0x35, 0xb0, 0xb5, 0x3e, 0x1a, 0xbe, 0x1c
  44. };
  45. const uint8_t* pEpidVerifyKey = INTEL_ECDSA_PUBKEY_DEBUG_LITTLE_ENDIAN;
  46. #else
  47. const uint8_t INTEL_ECDSA_PUBKEY_PROD_IVK_LE[ECDSA_PUBLIC_KEY_SIZE] = {
  48. 0x27, 0xBD, 0x65, 0x2E, 0xA4, 0xB0, 0x4C, 0x00, 0x06, 0x6E, 0x81, 0x4A, 0x4E, 0x1A, 0x2D, 0x35,
  49. 0xC2, 0x80, 0x1E, 0xD0, 0xCC, 0x67, 0x8B, 0x02, 0x3C, 0xB4, 0xC4, 0xE6, 0xC7, 0xC7, 0xE2, 0x7B,
  50. 0xAE, 0xC8, 0x3E, 0x16, 0x44, 0x1B, 0xC6, 0xD5, 0x38, 0x3F, 0xBD, 0x9F, 0x6C, 0x9F, 0xC7, 0x0F,
  51. 0x12, 0xCA, 0xA6, 0x84, 0xC7, 0x2A, 0xB2, 0x42, 0x48, 0x3C, 0xB9, 0xCB, 0x62, 0x71, 0x07, 0x52
  52. };
  53. const uint8_t* pEpidVerifyKey = INTEL_ECDSA_PUBKEY_PROD_IVK_LE;
  54. #endif