verifier-testhelper.cc 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. /*############################################################################
  2. # Copyright 2016 Intel Corporation
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ############################################################################*/
  16. /*!
  17. * \file
  18. * \brief Test fixture class for EpidVerifier.
  19. */
  20. #include "epid/verifier/unittests/verifier-testhelper.h"
  21. const G1ElemStr EpidVerifierTest::kG1IdentityStr = {
  22. {{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  23. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  24. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}},
  25. {{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  26. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  27. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}}};
  28. const GroupPubKey EpidVerifierTest::kPubKeyStr = {
  29. // gid
  30. {
  31. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  32. 0x00, 0x00, 0x00, 0x2A,
  33. },
  34. // h1
  35. {{0xB3, 0x6F, 0xFF, 0x81, 0xE2, 0x1B, 0x17, 0xEB, 0x3D, 0x75, 0x3D, 0x61,
  36. 0x7E, 0x27, 0xB0, 0xCB, 0xD0, 0x6D, 0x8F, 0x9D, 0x64, 0xCE, 0xE3, 0xCE,
  37. 0x43, 0x4C, 0x62, 0xFD, 0xB5, 0x80, 0xE0, 0x99},
  38. {0x3A, 0x07, 0x56, 0x80, 0xE0, 0x88, 0x59, 0xA4, 0xFD, 0xB5, 0xB7, 0x9D,
  39. 0xE9, 0x4D, 0xAE, 0x9C, 0xEE, 0x3D, 0x66, 0x42, 0x82, 0x45, 0x7E, 0x7F,
  40. 0xD8, 0x69, 0x3E, 0xA1, 0x74, 0xF4, 0x59, 0xEE}},
  41. // h2
  42. {{0xD2, 0x74, 0x2E, 0x9F, 0x63, 0xC2, 0x51, 0x8E, 0xD5, 0xDB, 0xCA, 0x1C,
  43. 0x54, 0x74, 0x10, 0x7B, 0xDC, 0x99, 0xED, 0x42, 0xD5, 0x5B, 0xA7, 0x04,
  44. 0x29, 0x66, 0x61, 0x63, 0xBC, 0xDD, 0x7F, 0xE1},
  45. {0x76, 0x5D, 0xC0, 0x6E, 0xE3, 0x14, 0xAC, 0x72, 0x48, 0x12, 0x0A, 0xA6,
  46. 0xE8, 0x5B, 0x08, 0x7B, 0xDA, 0x3F, 0x51, 0x7D, 0xDE, 0x4C, 0xEA, 0xCB,
  47. 0x93, 0xA5, 0x6E, 0xCC, 0xE7, 0x8E, 0x10, 0x84}},
  48. // w
  49. {{{0xBD, 0x19, 0x5A, 0x95, 0xE2, 0x0F, 0xCA, 0x1C, 0x50, 0x71, 0x94, 0x51,
  50. 0x40, 0x1B, 0xA5, 0xB6, 0x78, 0x87, 0x53, 0xF6, 0x6A, 0x95, 0xCA, 0xC6,
  51. 0x8D, 0xCD, 0x36, 0x88, 0x07, 0x28, 0xE8, 0x96},
  52. {0xCA, 0x78, 0x11, 0x5B, 0xB8, 0x6A, 0xE7, 0xE5, 0xA6, 0x65, 0x7A, 0x68,
  53. 0x15, 0xD7, 0x75, 0xF8, 0x24, 0x14, 0xCF, 0xD1, 0x0F, 0x6C, 0x56, 0xF5,
  54. 0x22, 0xD9, 0xFD, 0xE0, 0xE2, 0xF4, 0xB3, 0xA1}},
  55. {{0x90, 0x21, 0xA7, 0xE0, 0xE8, 0xB3, 0xC7, 0x25, 0xBC, 0x07, 0x72, 0x30,
  56. 0x5D, 0xEE, 0xF5, 0x6A, 0x89, 0x88, 0x46, 0xDD, 0x89, 0xC2, 0x39, 0x9C,
  57. 0x0A, 0x3B, 0x58, 0x96, 0x57, 0xE4, 0xF3, 0x3C},
  58. {0x79, 0x51, 0x69, 0x36, 0x1B, 0xB6, 0xF7, 0x05, 0x5D, 0x0A, 0x88, 0xDB,
  59. 0x1F, 0x3D, 0xEA, 0xA2, 0xBA, 0x6B, 0xF0, 0xDA, 0x8E, 0x25, 0xC6, 0xAD,
  60. 0x83, 0x7D, 0x3E, 0x31, 0xEE, 0x11, 0x40, 0xA9}}}};
  61. const GroupPubKey EpidVerifierTest::kPubKeyIkgfStr = {
  62. {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  63. 0x00, 0x00, 0x00, 0x00}, // group id
  64. {{{{0x45, 0xcb, 0x06, 0x04, 0xb3, 0xf7, 0x23, 0xb2, 0xd1, 0xd1, 0x0d, 0x4f,
  65. 0x51, 0x7b, 0xbb, 0x8f, 0x71, 0x15, 0xd7, 0xf1, 0xdc, 0x15, 0x37, 0xc8,
  66. 0xb8, 0x3d, 0x68, 0x0a, 0x18, 0xa5, 0x34, 0x14}}},
  67. {{{0x0c, 0xdc, 0xd9, 0x15, 0x7e, 0xba, 0x56, 0xc5, 0xe5, 0x61, 0xfa, 0x6a,
  68. 0x86, 0xa0, 0xac, 0x6a, 0x81, 0x36, 0x6d, 0x01, 0x5f, 0x86, 0xc0, 0x04,
  69. 0x8b, 0x1e, 0xff, 0x49, 0xd9, 0x37, 0x96, 0x66}}}}, // h1
  70. {{{{0xf1, 0xc3, 0x16, 0xb5, 0xc5, 0x1c, 0x67, 0xb6, 0xff, 0x28, 0x23, 0x79,
  71. 0x59, 0xea, 0x80, 0xe6, 0x09, 0x07, 0xe7, 0xd3, 0x38, 0xec, 0xb9, 0x16,
  72. 0x83, 0x88, 0xda, 0x64, 0xdd, 0xc4, 0x9d, 0x6a}}},
  73. {{{0x5c, 0xb2, 0x1c, 0x88, 0x97, 0xea, 0xaf, 0xa9, 0xf3, 0x3e, 0x07, 0xea,
  74. 0xb6, 0x2a, 0xd5, 0x7a, 0xed, 0x32, 0xd9, 0x3d, 0x90, 0xd7, 0xb9, 0x91,
  75. 0x08, 0x05, 0x9e, 0xe3, 0x22, 0x75, 0x06, 0x35}}}}, // h2
  76. {{{{{0xe5, 0xc4, 0x77, 0xad, 0x52, 0xb9, 0x7c, 0x04, 0x2d, 0x7e, 0x81, 0xf2,
  77. 0x5d, 0x5d, 0x52, 0x7d, 0xd7, 0x1d, 0x29, 0xfb, 0x6a, 0xa7, 0xbc, 0xb5,
  78. 0xa9, 0x1a, 0xa6, 0xfd, 0x20, 0xea, 0xf2, 0x98}}},
  79. {{{0xe2, 0x67, 0x33, 0x28, 0x67, 0x5f, 0xbe, 0x23, 0xa0, 0x43, 0xe8, 0x71,
  80. 0xaa, 0xab, 0xf6, 0xf0, 0x6a, 0x2b, 0x52, 0xa8, 0x61, 0x51, 0x22, 0x44,
  81. 0x00, 0x91, 0xd7, 0xf1, 0x7e, 0x05, 0x48, 0xdc}}}},
  82. {{{{0x51, 0x0c, 0xef, 0xa0, 0xf3, 0x72, 0xcd, 0x59, 0xd4, 0x7a, 0x2a, 0x60,
  83. 0xa3, 0x62, 0x54, 0xa8, 0xb6, 0x8f, 0xed, 0x90, 0xdf, 0x3e, 0x94, 0xe8,
  84. 0xa4, 0x89, 0x32, 0xaa, 0x52, 0x5a, 0x97, 0xae}}},
  85. {{{0x4c, 0x86, 0xf4, 0xba, 0xec, 0xc6, 0x36, 0x13, 0x87, 0x42, 0x5d, 0x16,
  86. 0x49, 0x12, 0x66, 0xc5, 0xe0, 0xe4, 0x9b, 0xf9, 0x68, 0xaa, 0xa9, 0x95,
  87. 0x81, 0x16, 0x5c, 0xd2, 0xca, 0xd4, 0x2e, 0x61}}}}} // w
  88. };
  89. const GroupPubKey EpidVerifierTest::kPubKeyRevGroupIkgfStr = {
  90. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  91. 0x00, 0x00, 0x00, 0x01, 0x78, 0x8a, 0xb6, 0x0f, 0x9a, 0xf5, 0xe4, 0xd1,
  92. 0xe7, 0x39, 0x6a, 0x79, 0x6c, 0xb5, 0xd1, 0xa1, 0x83, 0xec, 0xa1, 0x01,
  93. 0xfe, 0xe8, 0x72, 0xce, 0xce, 0x05, 0x9a, 0x4f, 0xa5, 0x17, 0x1b, 0xed,
  94. 0x30, 0xc5, 0x00, 0xc0, 0xb4, 0xdb, 0x5e, 0xa6, 0xe2, 0x24, 0x23, 0xab,
  95. 0xf5, 0x09, 0xf2, 0x4a, 0x7e, 0x72, 0xfa, 0xc3, 0xbf, 0x33, 0x93, 0x23,
  96. 0x48, 0x89, 0xd2, 0x98, 0x08, 0xe1, 0x01, 0xba, 0x9d, 0xa9, 0xe5, 0x41,
  97. 0x46, 0x2e, 0xbb, 0x9e, 0x6a, 0xfd, 0x28, 0x85, 0x94, 0xd5, 0x6e, 0x5a,
  98. 0xfa, 0x42, 0x71, 0x6e, 0xdc, 0x7e, 0xdb, 0xd1, 0xf2, 0x84, 0x11, 0x08,
  99. 0x4f, 0x0f, 0x22, 0x1f, 0x32, 0xbe, 0xd7, 0x6f, 0x55, 0x17, 0x17, 0x4a,
  100. 0xa7, 0x46, 0xeb, 0xca, 0x02, 0x65, 0x53, 0xca, 0xd7, 0x93, 0x03, 0x01,
  101. 0xe1, 0x54, 0xfc, 0xdd, 0xb4, 0x95, 0x5a, 0x5c, 0x0c, 0x8c, 0x13, 0x65,
  102. 0x02, 0x16, 0xf0, 0xfc, 0xbb, 0x02, 0x5f, 0x87, 0x83, 0x8c, 0xd0, 0x3e,
  103. 0x69, 0xc8, 0xf5, 0x7c, 0x09, 0xdd, 0x48, 0x65, 0x82, 0x48, 0x6f, 0xb5,
  104. 0x35, 0x0c, 0xc4, 0x04, 0x2d, 0x83, 0x0a, 0x3e, 0xa0, 0x0f, 0x5f, 0x8e,
  105. 0x61, 0xf7, 0xc3, 0xb5, 0x5c, 0x66, 0xf8, 0xf8, 0xa3, 0x0a, 0xc1, 0x50,
  106. 0xcd, 0xb0, 0x44, 0x19, 0x14, 0x07, 0xf1, 0xad, 0x7a, 0xec, 0x73, 0xac,
  107. 0x55, 0x01, 0x8a, 0xa6, 0x62, 0x9b, 0x30, 0xf3, 0xf9, 0xc5, 0xd1, 0x3d,
  108. 0xf2, 0x36, 0x13, 0x28, 0x4d, 0xbf, 0x95, 0x88, 0x76, 0x6b, 0xb0, 0x18,
  109. 0xd8, 0x3f, 0xa6, 0x22, 0x69, 0x13, 0x06, 0xa4, 0x04, 0xbf, 0x52, 0x8e,
  110. 0xf0, 0x11, 0x99, 0x65, 0xb9, 0xf8, 0x57, 0x0b, 0xf6, 0xc2, 0xe8, 0xaf,
  111. 0xee, 0xd4, 0x6e, 0xa7, 0x49, 0x7b, 0xeb, 0x8f, 0x92, 0x66, 0x45, 0xda,
  112. 0xb4, 0x01, 0xa8, 0xee, 0x7c, 0xdf, 0x8e, 0x08};
  113. const VerifierPrecomp EpidVerifierTest::kVerifierPrecompStr = {
  114. // gid
  115. {
  116. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  117. 0x00, 0x00, 0x00, 0x2A,
  118. },
  119. // e12
  120. {0xD8, 0x14, 0xBA, 0x4B, 0x44, 0x03, 0x55, 0x6C, 0xF6, 0x42, 0xE8, 0xF0,
  121. 0x4C, 0xB5, 0xE7, 0xD4, 0xA2, 0xA3, 0x69, 0x47, 0xF5, 0xD4, 0xC8, 0xE9,
  122. 0xC5, 0x5A, 0x39, 0xB5, 0x55, 0xA5, 0xD3, 0xFB, 0xF3, 0x85, 0x5A, 0x0D,
  123. 0xD5, 0xEE, 0xDE, 0xF4, 0xA8, 0xB1, 0x8B, 0xCF, 0xA9, 0x0D, 0x29, 0xBF,
  124. 0x86, 0x27, 0x9C, 0x1F, 0x96, 0xED, 0xD8, 0x44, 0x01, 0x35, 0x1A, 0xCE,
  125. 0xFD, 0x4E, 0x6F, 0xA1, 0x66, 0x0D, 0x59, 0x08, 0x6D, 0xA2, 0xE4, 0x99,
  126. 0x83, 0xDC, 0x39, 0x28, 0xB7, 0x1C, 0x1A, 0x33, 0xAD, 0xCA, 0x5C, 0x35,
  127. 0x26, 0x1F, 0xAB, 0xBA, 0x0D, 0x53, 0xAF, 0xE0, 0x72, 0x14, 0xC5, 0xA7,
  128. 0x2E, 0x58, 0x26, 0xC9, 0x8E, 0xFA, 0x6F, 0x62, 0xFC, 0xF0, 0x08, 0x3E,
  129. 0xA3, 0x11, 0x3A, 0xF0, 0xB8, 0x3B, 0x2D, 0x3E, 0xEC, 0xD5, 0xBC, 0xF2,
  130. 0x05, 0x68, 0xF4, 0x40, 0xCE, 0x2C, 0x8F, 0xDD, 0xA4, 0xE5, 0xE1, 0xB5,
  131. 0xBE, 0xBD, 0x3E, 0xD4, 0xF6, 0x9A, 0xB3, 0x37, 0x24, 0x0D, 0xEA, 0x13,
  132. 0xD7, 0x1F, 0xA2, 0x75, 0x68, 0xA1, 0xBE, 0x2C, 0x01, 0x42, 0x2A, 0xAE,
  133. 0x6F, 0xAE, 0x7A, 0x72, 0x3A, 0x11, 0x03, 0x58, 0x02, 0x0D, 0xF0, 0xB0,
  134. 0xD9, 0x6F, 0xB1, 0xE4, 0xF2, 0x70, 0xB8, 0xFF, 0x22, 0x56, 0x7C, 0xB3,
  135. 0x80, 0xFD, 0xDF, 0xE5, 0xAB, 0xCC, 0x18, 0x7A, 0xFD, 0x91, 0xD0, 0xB0,
  136. 0x63, 0x40, 0xD4, 0x71, 0xFA, 0x03, 0xF5, 0xF1, 0x26, 0xE1, 0xA5, 0x5A,
  137. 0xD9, 0x6D, 0xF5, 0x5A, 0x7B, 0x2A, 0x3A, 0xFE, 0x94, 0x9E, 0x74, 0x41,
  138. 0x79, 0x49, 0x7E, 0x48, 0x1D, 0x58, 0x5E, 0xF6, 0x98, 0xA3, 0x6E, 0x61,
  139. 0x8E, 0x9F, 0x1F, 0xCD, 0x15, 0x01, 0x16, 0xA5, 0xE0, 0xAB, 0xD6, 0xD6,
  140. 0x1F, 0x1C, 0xF5, 0x81, 0x76, 0xC1, 0xEC, 0x10, 0xC2, 0xCC, 0x68, 0x59,
  141. 0x4D, 0x47, 0xEF, 0x4B, 0x7F, 0xD8, 0x78, 0x9C, 0xFE, 0x9A, 0x86, 0x7E,
  142. 0x0C, 0xFD, 0x3E, 0x0A, 0x7A, 0x72, 0x8B, 0x14, 0x5F, 0xE6, 0x5F, 0x19,
  143. 0xA3, 0x0A, 0x1B, 0x71, 0xDC, 0xD2, 0xAE, 0x35, 0xC3, 0x11, 0xA5, 0xD3,
  144. 0xEA, 0xE1, 0xA9, 0xE7, 0x70, 0x0C, 0x7A, 0x39, 0x56, 0x3C, 0xE4, 0xE7,
  145. 0xF9, 0xB6, 0xF1, 0x15, 0x40, 0xAB, 0xB6, 0xC4, 0xAD, 0xBD, 0xF4, 0xCC,
  146. 0x13, 0xB7, 0xA8, 0xB6, 0x92, 0x1E, 0x72, 0x27, 0xA7, 0xFF, 0xD9, 0xEA,
  147. 0x2F, 0x91, 0x96, 0x22, 0xD2, 0xC4, 0x4D, 0x80, 0xDC, 0x47, 0x66, 0x87,
  148. 0xCC, 0xCF, 0xC5, 0x64, 0xF7, 0xB2, 0x34, 0xED, 0xD5, 0x44, 0x44, 0xCC,
  149. 0x57, 0x41, 0xC7, 0x92, 0xB7, 0x5C, 0x12, 0xF7, 0x81, 0xF2, 0x92, 0x35,
  150. 0x3E, 0x4B, 0xDF, 0xF8, 0xDA, 0x68, 0xAC, 0x30, 0xE3, 0xDD, 0x9E, 0x22,
  151. 0xAA, 0x6D, 0x77, 0xDD, 0xAC, 0xD9, 0x11, 0x6E, 0xFB, 0x1A, 0x88, 0xB3},
  152. // e22
  153. {0x07, 0x3F, 0x9D, 0x47, 0x82, 0xB8, 0x3D, 0x6A, 0xE0, 0x36, 0xAB, 0xA6,
  154. 0xFA, 0xE6, 0xD2, 0x1C, 0xC8, 0xB2, 0xD0, 0x01, 0xD4, 0x96, 0xDC, 0x2E,
  155. 0xF8, 0x19, 0xDC, 0x70, 0x1B, 0xF9, 0x73, 0x0C, 0x2B, 0xC2, 0xE2, 0x1D,
  156. 0x85, 0x53, 0x81, 0x51, 0xFB, 0xCA, 0x16, 0x86, 0xD4, 0x4E, 0xFD, 0x1A,
  157. 0x59, 0xE3, 0x97, 0xC4, 0x7F, 0x99, 0xD8, 0x66, 0x08, 0xA1, 0xE4, 0x9F,
  158. 0xBB, 0x3A, 0xCE, 0xA5, 0x23, 0x9C, 0x83, 0x13, 0xC5, 0xC8, 0xF2, 0x16,
  159. 0x1E, 0xE8, 0xE6, 0xC5, 0x36, 0x57, 0x2C, 0xDF, 0x73, 0xB4, 0xE2, 0xB2,
  160. 0xCB, 0xEB, 0xBB, 0xF7, 0x45, 0xD1, 0x44, 0xBD, 0x6E, 0x92, 0x95, 0x00,
  161. 0xE5, 0x89, 0xB5, 0x91, 0x78, 0xC7, 0x44, 0xB1, 0x2F, 0x37, 0xDF, 0xFB,
  162. 0xE7, 0x8A, 0x44, 0x3F, 0x3D, 0x06, 0x5F, 0x5B, 0x1C, 0x5F, 0xCE, 0x11,
  163. 0x05, 0x35, 0x3C, 0xAD, 0x92, 0x7E, 0x79, 0xB8, 0xFF, 0x28, 0x05, 0xE4,
  164. 0x04, 0x2C, 0xB6, 0x1D, 0x22, 0xAB, 0x36, 0x00, 0x5F, 0x74, 0xF1, 0xE3,
  165. 0xF6, 0xA6, 0x68, 0xE6, 0x7B, 0x25, 0xB8, 0xCF, 0x19, 0xB0, 0x1A, 0xDD,
  166. 0x0F, 0xAD, 0x63, 0x73, 0x62, 0x1B, 0xE7, 0x94, 0x5D, 0xBF, 0x3D, 0xF1,
  167. 0xF9, 0x8E, 0xAB, 0x59, 0xE5, 0xD1, 0x7C, 0x62, 0xDD, 0xBC, 0x40, 0x07,
  168. 0x70, 0x5B, 0x13, 0xF6, 0x12, 0x09, 0xB4, 0x0D, 0x3E, 0xAB, 0x8B, 0x70,
  169. 0x60, 0x1D, 0xD4, 0x61, 0x37, 0x28, 0x98, 0x3E, 0x7E, 0xDC, 0xFD, 0xD2,
  170. 0xC0, 0x2F, 0x4B, 0x71, 0x31, 0x34, 0xD7, 0x69, 0x41, 0x5E, 0xAA, 0x72,
  171. 0xE4, 0xDF, 0xEB, 0xFE, 0x8D, 0xCD, 0x68, 0xFC, 0x68, 0x55, 0xBE, 0x32,
  172. 0x7D, 0x24, 0xC5, 0x07, 0x0F, 0xA8, 0xBD, 0x5A, 0xFE, 0xE7, 0xEC, 0xDB,
  173. 0xFD, 0x19, 0xC8, 0xA9, 0x20, 0xA2, 0x7F, 0x6C, 0xA6, 0x62, 0xEC, 0xED,
  174. 0x9B, 0x79, 0xBF, 0x9C, 0x0E, 0x31, 0x0B, 0x25, 0x2F, 0xD3, 0xCC, 0xA0,
  175. 0xDD, 0xB2, 0xF2, 0x69, 0x26, 0x85, 0x21, 0x06, 0x94, 0x56, 0x5F, 0x59,
  176. 0x5C, 0xF5, 0xB7, 0x82, 0xCE, 0x0F, 0xDD, 0x40, 0xDB, 0x83, 0xAC, 0x3C,
  177. 0x41, 0xA0, 0x1B, 0xB1, 0xAF, 0xDA, 0x55, 0xBF, 0x6B, 0x1A, 0xEF, 0xE6,
  178. 0x90, 0xE7, 0xAA, 0x0F, 0x04, 0x3C, 0x9F, 0x5B, 0xB7, 0xCD, 0x98, 0xA8,
  179. 0x9E, 0xFF, 0x54, 0x26, 0xC8, 0xD5, 0x5C, 0x30, 0x5E, 0xA2, 0x99, 0x8E,
  180. 0x34, 0xD5, 0x98, 0x9F, 0xCD, 0x57, 0xD1, 0x4D, 0x1D, 0xEE, 0x01, 0x5D,
  181. 0x5A, 0x6D, 0xB2, 0xF1, 0xCF, 0x4B, 0xC0, 0x21, 0x23, 0x96, 0x05, 0xF9,
  182. 0xC9, 0x66, 0xE5, 0x25, 0x9D, 0xA3, 0x8E, 0x78, 0x43, 0x19, 0xC1, 0x7F,
  183. 0x7B, 0xEF, 0xF5, 0xED, 0x00, 0xB7, 0x45, 0x1F, 0x4E, 0xA9, 0xFA, 0xE3,
  184. 0xFF, 0x54, 0xF2, 0x21, 0x73, 0xF8, 0x6B, 0xA1, 0xC7, 0x31, 0x4D, 0x6A},
  185. // e2w
  186. {0x49, 0x0D, 0x0F, 0x2A, 0x5C, 0x6A, 0x3B, 0xAD, 0x71, 0xC9, 0x22, 0x49,
  187. 0xE8, 0x08, 0xDD, 0xBA, 0x79, 0x57, 0xB7, 0xC7, 0x61, 0xE4, 0xDB, 0x84,
  188. 0x68, 0x57, 0xB9, 0x30, 0x83, 0xA4, 0xDC, 0xEF, 0x70, 0x93, 0x28, 0xE2,
  189. 0x6F, 0xB9, 0xBC, 0x15, 0x28, 0x3A, 0x30, 0xBD, 0x96, 0x83, 0xDB, 0xF2,
  190. 0x9D, 0x1E, 0xC7, 0x64, 0x6D, 0x2E, 0x7C, 0xA2, 0xF3, 0xAA, 0x2F, 0x4B,
  191. 0x6D, 0x86, 0x9E, 0x48, 0x20, 0x29, 0x4B, 0x1F, 0x8D, 0xC2, 0x93, 0xC3,
  192. 0x55, 0x25, 0x8E, 0xB0, 0x8A, 0x7E, 0x64, 0x45, 0x3F, 0xF4, 0x1D, 0x16,
  193. 0x4C, 0x88, 0x2D, 0x54, 0xBE, 0xA8, 0x67, 0x70, 0x81, 0xC5, 0xB9, 0x5C,
  194. 0x16, 0x00, 0xEF, 0x78, 0xF6, 0x4D, 0x6A, 0xEB, 0xFD, 0xA2, 0x0D, 0x52,
  195. 0x86, 0xF3, 0x04, 0x4B, 0xD8, 0xF0, 0x7D, 0x50, 0x8B, 0xAD, 0xC0, 0x37,
  196. 0xDB, 0x38, 0xF2, 0x7D, 0x1F, 0x8B, 0x13, 0x83, 0x7B, 0xCC, 0xE8, 0x25,
  197. 0xFE, 0xFA, 0x0C, 0x02, 0x05, 0x2E, 0x75, 0x12, 0xA1, 0x0A, 0x89, 0xAB,
  198. 0xF1, 0xB2, 0x08, 0x47, 0x9A, 0xEA, 0xEF, 0x1D, 0xA4, 0x9F, 0xDE, 0x89,
  199. 0x47, 0x3E, 0x7C, 0x5E, 0x4A, 0x40, 0xDC, 0xEC, 0xC5, 0x1B, 0x7E, 0x33,
  200. 0x0A, 0x19, 0x69, 0x27, 0xA6, 0xCC, 0x25, 0xFC, 0xF9, 0xEB, 0xBD, 0xB7,
  201. 0x8A, 0xDB, 0x45, 0x5F, 0x9D, 0x9E, 0x01, 0xDE, 0x3D, 0x91, 0x10, 0x99,
  202. 0x13, 0xBF, 0xC0, 0xFA, 0x9D, 0xD4, 0x0F, 0xB3, 0x09, 0xF3, 0xA1, 0xAE,
  203. 0x68, 0xE1, 0x1B, 0x48, 0x85, 0x9F, 0x81, 0x66, 0x91, 0xE2, 0xF0, 0x7B,
  204. 0x29, 0xDB, 0x8F, 0x5D, 0x99, 0xA9, 0xD3, 0x39, 0x30, 0xD9, 0x1B, 0x94,
  205. 0x2A, 0x1C, 0x5C, 0xE9, 0xC0, 0x3F, 0x6E, 0xB2, 0x27, 0xBE, 0x74, 0x7A,
  206. 0xCA, 0xE1, 0x0F, 0x6A, 0x43, 0x2E, 0x98, 0x65, 0xAF, 0x7F, 0x6E, 0x5A,
  207. 0x55, 0x98, 0xC1, 0x58, 0x29, 0xB3, 0x86, 0x54, 0x0F, 0x57, 0x91, 0x89,
  208. 0x29, 0xB1, 0x98, 0x79, 0xCC, 0x95, 0x39, 0xD0, 0xAB, 0xE0, 0x9F, 0xF3,
  209. 0xDA, 0xF9, 0x5E, 0xD9, 0x34, 0xBB, 0x72, 0xDA, 0xE5, 0x72, 0xD3, 0xF8,
  210. 0x9B, 0xF9, 0x14, 0x84, 0x48, 0x81, 0x54, 0x4F, 0xE6, 0x2B, 0x80, 0xC8,
  211. 0xC1, 0x79, 0xFE, 0x83, 0xFF, 0x76, 0xA3, 0x6D, 0xFE, 0x37, 0x78, 0xC5,
  212. 0x30, 0x7A, 0x50, 0xE2, 0x5D, 0x12, 0xDC, 0x72, 0xE9, 0x58, 0x7C, 0x07,
  213. 0x4F, 0xFF, 0x15, 0x8A, 0x97, 0x3B, 0xCB, 0x60, 0xFA, 0x4E, 0xDE, 0x8C,
  214. 0x80, 0x3A, 0x8B, 0x0B, 0xC6, 0x1D, 0xA3, 0xCE, 0x6A, 0xB3, 0x50, 0x69,
  215. 0x03, 0x96, 0xCA, 0xC0, 0xB6, 0x94, 0x6F, 0x8F, 0xAB, 0x6F, 0x5B, 0x00,
  216. 0x2A, 0x1D, 0x90, 0xA7, 0x81, 0xC6, 0x15, 0x77, 0x79, 0xF3, 0x36, 0x23,
  217. 0xD1, 0x46, 0x25, 0x58, 0x6F, 0x7B, 0x22, 0xAC, 0x4C, 0x7A, 0xF3, 0x9F},
  218. // eg12
  219. {0xA8, 0x8E, 0x9A, 0xF9, 0x25, 0x12, 0x98, 0xE2, 0xC3, 0x61, 0x2E, 0xE8,
  220. 0xD6, 0xA6, 0x77, 0x16, 0x49, 0x04, 0x75, 0x69, 0xD1, 0x83, 0x2D, 0x3F,
  221. 0x2A, 0x79, 0xB6, 0x9B, 0xC9, 0x1D, 0x03, 0x90, 0x2A, 0xD8, 0x11, 0x9F,
  222. 0x26, 0x36, 0xE7, 0xE9, 0x3A, 0x05, 0x4C, 0x15, 0x49, 0x93, 0xDA, 0xE9,
  223. 0xD0, 0x5A, 0xE4, 0x8D, 0x8A, 0xFA, 0x04, 0xF1, 0x20, 0x84, 0x56, 0xEC,
  224. 0x3C, 0x27, 0x19, 0x5C, 0xF1, 0xAF, 0xBF, 0xF6, 0x0E, 0x58, 0x84, 0x2D,
  225. 0x94, 0x11, 0xF4, 0xB5, 0xF4, 0x14, 0x51, 0xB0, 0x90, 0x46, 0x1A, 0x81,
  226. 0xED, 0xCF, 0x91, 0x66, 0x58, 0xA6, 0x36, 0x3A, 0x52, 0x18, 0x5A, 0xC1,
  227. 0x08, 0x4C, 0x99, 0xD3, 0xDC, 0xCE, 0x7F, 0xCE, 0x78, 0xE0, 0x38, 0x87,
  228. 0x32, 0xF1, 0x80, 0x3C, 0x7B, 0x67, 0xAA, 0x6F, 0xDD, 0xE0, 0xFC, 0xCB,
  229. 0xD0, 0xB0, 0x3A, 0x59, 0x52, 0x2A, 0x84, 0xE4, 0xF8, 0x4A, 0xFF, 0x50,
  230. 0xA0, 0x65, 0xC4, 0xEE, 0xF4, 0x9C, 0xAA, 0x34, 0x46, 0xF9, 0xD2, 0x6C,
  231. 0xA1, 0x61, 0x71, 0x49, 0x32, 0x25, 0x84, 0x54, 0x90, 0x44, 0xBE, 0xA4,
  232. 0x0B, 0xF7, 0xFE, 0x26, 0x81, 0x63, 0x73, 0xF7, 0x2F, 0xF2, 0xFA, 0x24,
  233. 0x52, 0xA4, 0xD9, 0x4C, 0xC1, 0xA7, 0xA5, 0xC3, 0x03, 0x36, 0x13, 0x9B,
  234. 0x16, 0x45, 0x16, 0xCB, 0x4B, 0x99, 0x38, 0xF3, 0x6D, 0xC8, 0x7E, 0xAB,
  235. 0xB3, 0x53, 0xDF, 0xB6, 0x82, 0x60, 0x12, 0x11, 0x36, 0x69, 0x0E, 0x05,
  236. 0x31, 0x8E, 0xCF, 0xD7, 0x3F, 0x32, 0xE7, 0x95, 0x84, 0x1D, 0xC8, 0xB5,
  237. 0xBE, 0x49, 0x17, 0x9D, 0xCF, 0xA9, 0x5A, 0x2A, 0xC4, 0x11, 0x86, 0xE8,
  238. 0x6C, 0x02, 0x56, 0xB0, 0x25, 0x2F, 0xA0, 0x06, 0xB3, 0x62, 0xB2, 0x11,
  239. 0xAF, 0xBE, 0xA4, 0xE8, 0x61, 0x64, 0x85, 0xFB, 0xEB, 0x1C, 0xF1, 0xBC,
  240. 0x2C, 0xAE, 0x10, 0x51, 0x16, 0xA6, 0xC0, 0xB3, 0x86, 0x8E, 0x6D, 0x79,
  241. 0xB6, 0xBD, 0xDE, 0x1E, 0x26, 0x06, 0x46, 0x65, 0x82, 0x84, 0x5A, 0x97,
  242. 0xD3, 0xB7, 0x93, 0x78, 0x6B, 0x9D, 0x14, 0x33, 0x94, 0x43, 0x34, 0x04,
  243. 0x45, 0xD1, 0x47, 0xD4, 0x2F, 0x17, 0xCF, 0xF1, 0xDD, 0xEA, 0x11, 0x52,
  244. 0xAE, 0x01, 0x88, 0x3A, 0x10, 0xEE, 0x5C, 0x16, 0xCD, 0xB5, 0x48, 0xE9,
  245. 0x16, 0x2C, 0x70, 0xB4, 0x1E, 0x19, 0x38, 0xE0, 0x18, 0xE9, 0xAE, 0xC5,
  246. 0xDA, 0x74, 0x41, 0x2D, 0x70, 0x07, 0x60, 0x37, 0x27, 0x66, 0xF7, 0x00,
  247. 0xBB, 0x79, 0x51, 0xF3, 0x7C, 0x8A, 0x2B, 0xB5, 0x69, 0x6E, 0x10, 0x1F,
  248. 0xE0, 0x0A, 0x5E, 0xBE, 0xB4, 0x4E, 0x0E, 0x02, 0x59, 0xB5, 0xCB, 0x4A,
  249. 0x6A, 0x86, 0x8B, 0xCC, 0xA2, 0x13, 0xA0, 0xE9, 0xF2, 0x5C, 0xB0, 0x23,
  250. 0xB2, 0x15, 0xF9, 0xBB, 0x43, 0xC1, 0x54, 0xF4, 0xC8, 0xAB, 0x16, 0xA6}};
  251. const VerifierPrecomp EpidVerifierTest::kVerifierPrecompIkgfStr = {
  252. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  253. 0x00, 0x00, 0x00, 0x00, 0xbc, 0x74, 0xd9, 0xd2, 0xcc, 0x56, 0x28, 0xfd,
  254. 0x3d, 0x0b, 0x2b, 0x86, 0xf4, 0xc6, 0xb2, 0x25, 0x19, 0x6b, 0x5b, 0x42,
  255. 0x35, 0x6a, 0xd9, 0x9c, 0xf9, 0xb4, 0x30, 0xcb, 0xff, 0x39, 0xbb, 0x92,
  256. 0x41, 0x71, 0xf4, 0x49, 0xc3, 0xfd, 0x36, 0xa3, 0xe0, 0xdd, 0x83, 0xf1,
  257. 0x34, 0x53, 0x2e, 0x16, 0x2f, 0x45, 0x06, 0x10, 0x3d, 0x9a, 0xfd, 0x22,
  258. 0xb8, 0xf1, 0xfd, 0x52, 0x3a, 0x24, 0xc5, 0x9c, 0xdd, 0x54, 0x9c, 0xff,
  259. 0xb0, 0x4d, 0xb9, 0xe5, 0x21, 0x62, 0x61, 0xaa, 0x76, 0xc3, 0xc1, 0x25,
  260. 0x47, 0xe4, 0x3b, 0x62, 0xab, 0x5f, 0x2c, 0x56, 0xe1, 0x24, 0x9c, 0x21,
  261. 0xec, 0x6b, 0x1d, 0x80, 0x1d, 0xca, 0xc5, 0x45, 0x34, 0xee, 0x4e, 0xc6,
  262. 0x20, 0x94, 0x14, 0x98, 0x0e, 0xd6, 0x88, 0x1d, 0x69, 0xfd, 0x25, 0xd3,
  263. 0xe3, 0x08, 0x3f, 0x62, 0x82, 0xa9, 0xf2, 0x13, 0xd6, 0x54, 0xda, 0x12,
  264. 0xec, 0x4e, 0xd2, 0x92, 0xe1, 0x82, 0x3f, 0x54, 0xf8, 0xc7, 0x0e, 0x21,
  265. 0x90, 0x49, 0xa1, 0x73, 0xa2, 0x03, 0xd0, 0xc7, 0x1c, 0xc2, 0x36, 0x1f,
  266. 0xb5, 0x8e, 0x22, 0xaf, 0xb5, 0x96, 0xad, 0xba, 0xde, 0xe6, 0x45, 0xb9,
  267. 0xee, 0x39, 0x74, 0x53, 0x62, 0x68, 0xa6, 0x37, 0x33, 0x65, 0x47, 0x3b,
  268. 0xf2, 0xa3, 0x35, 0xd0, 0xe9, 0x50, 0x49, 0x68, 0x23, 0x9a, 0xa0, 0x33,
  269. 0x66, 0x2f, 0x84, 0x23, 0x43, 0x95, 0x35, 0xea, 0x1d, 0xfe, 0x3a, 0xe4,
  270. 0x45, 0x6f, 0xad, 0x86, 0x7a, 0x4b, 0xf8, 0xb7, 0x32, 0xaf, 0x79, 0x7c,
  271. 0x45, 0x8d, 0xd9, 0x36, 0x0d, 0x66, 0xcb, 0x47, 0x07, 0xf4, 0x75, 0xae,
  272. 0x38, 0xe1, 0x32, 0x67, 0x80, 0x73, 0x0b, 0x98, 0xb7, 0x8d, 0xa3, 0x03,
  273. 0x94, 0x59, 0x0c, 0x04, 0xa8, 0x3e, 0xf8, 0x39, 0xc9, 0x25, 0x74, 0xb5,
  274. 0x9c, 0x62, 0x79, 0xb9, 0xf0, 0x20, 0x0b, 0x41, 0xb1, 0x76, 0x2a, 0x93,
  275. 0x15, 0xfa, 0x7a, 0x55, 0xe4, 0x50, 0xf3, 0xe1, 0x54, 0xf8, 0x9e, 0x42,
  276. 0x84, 0xaf, 0xb6, 0xc2, 0x2e, 0x98, 0xd5, 0xfd, 0x31, 0xe4, 0x16, 0x2b,
  277. 0x4d, 0x32, 0x96, 0x04, 0x4f, 0xca, 0x8b, 0x8d, 0x3c, 0x24, 0xb4, 0xc3,
  278. 0x86, 0x3b, 0x06, 0xc9, 0x45, 0xc9, 0xb1, 0x90, 0xac, 0xc3, 0xd6, 0xec,
  279. 0x80, 0x5b, 0x84, 0xcb, 0x5e, 0x7b, 0xc4, 0xcb, 0x63, 0x9e, 0xca, 0x09,
  280. 0x92, 0xca, 0x70, 0xfd, 0x24, 0x2a, 0x81, 0x37, 0x5a, 0x85, 0x72, 0x4a,
  281. 0x46, 0x2d, 0x29, 0x38, 0x8f, 0xc3, 0x59, 0xc7, 0xe9, 0x76, 0x24, 0xea,
  282. 0xd4, 0xef, 0x06, 0x12, 0xf5, 0xab, 0xab, 0xa1, 0x59, 0x13, 0xc8, 0x1d,
  283. 0xdf, 0x0f, 0x41, 0xbe, 0x98, 0x65, 0x00, 0x11, 0x41, 0x7c, 0x6e, 0x29,
  284. 0x83, 0x73, 0xfd, 0x81, 0xff, 0xe8, 0xd8, 0x7f, 0xa1, 0x00, 0x62, 0x11,
  285. 0x14, 0x38, 0x06, 0x57, 0x20, 0x81, 0xaa, 0x9e, 0xaf, 0xfe, 0xee, 0x68,
  286. 0xee, 0x30, 0x1a, 0x83, 0xe7, 0x32, 0xc3, 0xfc, 0x69, 0xe5, 0x19, 0x29,
  287. 0x4e, 0xee, 0xb0, 0xf1, 0x63, 0xaf, 0x41, 0x3d, 0x3b, 0xb9, 0xbb, 0x2e,
  288. 0xde, 0xd7, 0x0b, 0xbe, 0x11, 0x8f, 0x4a, 0x94, 0x4c, 0x57, 0xf3, 0x64,
  289. 0x38, 0x5a, 0xc6, 0xb8, 0x5d, 0xa1, 0x9d, 0xc8, 0xfa, 0x32, 0xe2, 0x08,
  290. 0xf4, 0x26, 0x3f, 0x75, 0xb5, 0x35, 0x9a, 0xe9, 0xd6, 0x1d, 0x35, 0x41,
  291. 0x9b, 0x20, 0x2b, 0x54, 0xb9, 0x66, 0x6c, 0xc6, 0xb7, 0x44, 0x82, 0x9b,
  292. 0x74, 0xe8, 0x09, 0x04, 0xa4, 0xf2, 0x7a, 0x8f, 0xe8, 0x6f, 0x3c, 0xa0,
  293. 0x18, 0xab, 0x66, 0xf6, 0x39, 0x34, 0x70, 0xf3, 0xa6, 0xd3, 0xc9, 0xe1,
  294. 0x97, 0xe2, 0xdc, 0x4d, 0xca, 0x02, 0xb6, 0x73, 0x07, 0xf3, 0x8c, 0xd0,
  295. 0xab, 0xd9, 0x12, 0x45, 0x70, 0x7c, 0x3a, 0x24, 0x64, 0xce, 0x9e, 0x38,
  296. 0x4d, 0x5d, 0xe1, 0x9d, 0xf2, 0x4b, 0x58, 0xdc, 0x71, 0xb3, 0x61, 0x56,
  297. 0x14, 0x62, 0x2a, 0x1b, 0x36, 0x5e, 0xc9, 0x15, 0xf3, 0x50, 0xe6, 0xc0,
  298. 0x93, 0x62, 0xd0, 0x69, 0xab, 0xd4, 0xe5, 0x9b, 0xa6, 0xa7, 0xa3, 0x0c,
  299. 0x51, 0xad, 0xf7, 0x38, 0x6f, 0x1d, 0xcf, 0x43, 0xda, 0x83, 0x95, 0xc6,
  300. 0xfb, 0xd8, 0x90, 0x5e, 0x35, 0x30, 0x0b, 0x7b, 0x45, 0xd0, 0x12, 0x32,
  301. 0x95, 0xc3, 0x96, 0xdc, 0x0a, 0x68, 0xcc, 0xcf, 0x19, 0x0b, 0x13, 0xc7,
  302. 0x6a, 0x7a, 0x53, 0x36, 0x5b, 0x24, 0xc5, 0x84, 0x5c, 0xeb, 0x9e, 0xeb,
  303. 0xdc, 0x91, 0x17, 0xb3, 0x29, 0xfd, 0xee, 0x55, 0xc9, 0x8c, 0xcd, 0xbe,
  304. 0x3a, 0x66, 0xf3, 0xba, 0x79, 0xfe, 0xc7, 0xf8, 0x08, 0xeb, 0xd2, 0x3a,
  305. 0x17, 0x3c, 0x36, 0x29, 0xc1, 0xde, 0xa9, 0xab, 0x80, 0xdb, 0x6c, 0xdd,
  306. 0xfb, 0xe5, 0xb1, 0x12, 0x25, 0x2f, 0xa3, 0x3d, 0x0e, 0x72, 0xde, 0xaf,
  307. 0x86, 0x93, 0x35, 0x18, 0x96, 0x19, 0x47, 0xfd, 0x8f, 0xae, 0x7b, 0xe7,
  308. 0xac, 0x6e, 0x53, 0x10, 0x1e, 0x66, 0x54, 0xc0, 0x36, 0x0e, 0x73, 0x35,
  309. 0xb3, 0x20, 0xf9, 0xaa, 0x25, 0x4a, 0x66, 0xaf, 0xc9, 0x2f, 0xd1, 0x19,
  310. 0x8b, 0x8f, 0x93, 0xbe, 0x3a, 0x30, 0xa5, 0x24, 0xc2, 0xad, 0x30, 0xfc,
  311. 0x97, 0xfe, 0x6c, 0xe0, 0x7f, 0x98, 0x71, 0x37, 0x33, 0x26, 0xc3, 0x75,
  312. 0xc8, 0x51, 0xe6, 0xf2, 0x99, 0xf0, 0x0f, 0x7d, 0x5d, 0x12, 0x26, 0x9d,
  313. 0x96, 0xeb, 0xd5, 0x08, 0x28, 0x34, 0x90, 0x1c, 0xdb, 0x98, 0xbd, 0x8a,
  314. 0xeb, 0x93, 0x0d, 0xd0, 0x57, 0x3e, 0xb8, 0x65, 0xdd, 0xa6, 0xa9, 0x81,
  315. 0xd6, 0xca, 0x62, 0x4b, 0x24, 0xed, 0xf4, 0x36, 0xf0, 0x83, 0xd6, 0x0e,
  316. 0x53, 0xf2, 0x50, 0x89, 0x70, 0x23, 0x19, 0x7b, 0xd0, 0x7e, 0x67, 0xa3,
  317. 0x45, 0x72, 0x9d, 0x11, 0xbe, 0xbb, 0xe1, 0x72, 0x51, 0xf6, 0x5f, 0x4e,
  318. 0x2c, 0xca, 0x61, 0x3d, 0xaa, 0xfd, 0xb7, 0x61, 0xbc, 0x3a, 0xd2, 0x20,
  319. 0x18, 0xa2, 0xee, 0x04, 0xe4, 0x6b, 0xf3, 0x84, 0x26, 0xc2, 0x43, 0xa4,
  320. 0xfe, 0x4e, 0x14, 0x5c, 0xbe, 0xe7, 0x11, 0x4a, 0x61, 0x33, 0x7d, 0xeb,
  321. 0x71, 0x98, 0x7c, 0xf0, 0x44, 0xe2, 0x41, 0x17, 0x39, 0xd0, 0x4e, 0xe2,
  322. 0x9c, 0xcc, 0x8d, 0x76, 0x3c, 0xb8, 0x0f, 0x63, 0x4a, 0x56, 0x7c, 0xf8,
  323. 0xab, 0xbd, 0x87, 0xcc, 0xa2, 0x29, 0xb9, 0x3c, 0xcc, 0x12, 0xd2, 0x9d,
  324. 0x6f, 0xbd, 0x28, 0xc3, 0x0c, 0x2f, 0x83, 0x8c, 0xf3, 0xad, 0x3d, 0xc6,
  325. 0x92, 0xba, 0x0b, 0x28, 0x47, 0x81, 0x78, 0xbe, 0x2b, 0xe0, 0x6a, 0x47,
  326. 0xba, 0xf3, 0xbe, 0x39, 0x30, 0x49, 0x0b, 0x35, 0x34, 0x80, 0x70, 0xc2,
  327. 0x75, 0x54, 0x65, 0xd8, 0xc8, 0x1c, 0x26, 0xb8, 0x97, 0x61, 0x57, 0xcf,
  328. 0x2d, 0xb8, 0xd1, 0xdd, 0xb0, 0xf1, 0xa9, 0x0f, 0x3f, 0x7e, 0xfe, 0xd3,
  329. 0xee, 0xdc, 0x75, 0xbf, 0xc2, 0xf1, 0x30, 0xd6, 0x60, 0x1b, 0xcd, 0x7b,
  330. 0x87, 0xde, 0x0b, 0x58, 0x5c, 0xac, 0x84, 0xda, 0xef, 0x86, 0x86, 0x8d,
  331. 0x8e, 0xfd, 0x6f, 0x93, 0x32, 0x8d, 0xac, 0x7b, 0x8f, 0x2a, 0x8a, 0x5f,
  332. 0xf1, 0xea, 0xbb, 0x8e, 0x6d, 0xbf, 0xe0, 0x59, 0x90, 0xc2, 0xd3, 0x3d,
  333. 0x8a, 0x03, 0x64, 0x11, 0xdd, 0xf1, 0xfc, 0x2d, 0x26, 0x8a, 0x6f, 0x39,
  334. 0x25, 0xa9, 0xaa, 0x61, 0x45, 0x5b, 0x7b, 0x36, 0xfd, 0x82, 0xd2, 0x6a,
  335. 0x8c, 0x9a, 0xf1, 0xc2};
  336. const std::vector<uint8_t> EpidVerifierTest::kGroupRlEmptyBuf = {
  337. // RLVer
  338. 0x00, 0x00, 0x00, 0x00,
  339. // n3
  340. 0x00, 0x00, 0x00, 0x00};
  341. const std::vector<uint8_t> EpidVerifierTest::kGroupRl3GidBuf = {
  342. // RLVer
  343. 0x00, 0x00, 0x00, 0x03,
  344. // n3
  345. 0x00, 0x00, 0x00, 0x03,
  346. // gid[0]
  347. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  348. 0x00, 0x00, 0x00, 0x01,
  349. // gid[1]
  350. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  351. 0x00, 0x00, 0x00, 0x02,
  352. // gid[2]
  353. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  354. 0x00, 0x00, 0x00, 0x03,
  355. };
  356. const std::vector<uint8_t> EpidVerifierTest::kGroupRl3GidN0Buf = {
  357. // RLVer
  358. 0x00, 0x00, 0x00, 0x03,
  359. // n3
  360. 0x00, 0x00, 0x00, 0x00,
  361. // gid[0]
  362. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  363. 0x00, 0x00, 0x00, 0x01,
  364. // gid[1]
  365. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  366. 0x00, 0x00, 0x00, 0x02,
  367. // gid[2]
  368. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  369. 0x00, 0x00, 0x00, 0x03,
  370. };
  371. const std::vector<uint8_t> EpidVerifierTest::kGroupRl3GidN2Buf = {
  372. // RLVer
  373. 0x00, 0x00, 0x00, 0x03,
  374. // n3
  375. 0x00, 0x00, 0x00, 0x02,
  376. // gid[0]
  377. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  378. 0x00, 0x00, 0x00, 0x01,
  379. // gid[1]
  380. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  381. 0x00, 0x00, 0x00, 0x02,
  382. // gid[2]
  383. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  384. 0x00, 0x00, 0x00, 0x03,
  385. };
  386. const std::vector<uint8_t> EpidVerifierTest::kGroupRl3GidN4Buf = {
  387. // RLVer
  388. 0x00, 0x00, 0x00, 0x03,
  389. // n3
  390. 0x00, 0x00, 0x00, 0x04,
  391. // gid[0]
  392. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  393. 0x00, 0x00, 0x00, 0x01,
  394. // gid[1]
  395. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  396. 0x00, 0x00, 0x00, 0x02,
  397. // gid[2]
  398. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  399. 0x00, 0x00, 0x00, 0x03,
  400. };
  401. const std::vector<uint8_t> EpidVerifierTest::kGrp01VerRlOneEntry = {
  402. // gid
  403. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  404. 0x00, 0x00, 0x00, 0x2A,
  405. // B
  406. 0x41, 0x63, 0xfd, 0x06, 0xb8, 0xb1, 0xa6, 0x32, 0xa5, 0xe3, 0xeb, 0xc4,
  407. 0x40, 0x11, 0x37, 0xc0, 0x62, 0x0d, 0xe1, 0xca, 0xe9, 0x79, 0xad, 0xff,
  408. 0x1d, 0x13, 0xb3, 0xda, 0xa0, 0x10, 0x8a, 0xa8, 0x30, 0x72, 0xa4, 0xe8,
  409. 0x27, 0xb5, 0xad, 0xdb, 0xac, 0x89, 0xd8, 0x37, 0x79, 0xd9, 0x8c, 0xd0,
  410. 0xb3, 0xef, 0x94, 0x17, 0x4f, 0x05, 0x53, 0x4c, 0x4d, 0xf0, 0x77, 0xf7,
  411. 0xb6, 0xaf, 0xb8, 0xfa,
  412. // version
  413. 0x00, 0x00, 0x00, 0x01,
  414. // n4
  415. 0x00, 0x00, 0x00, 0x01,
  416. // k's
  417. 0xdc, 0x41, 0x24, 0xe7, 0xb8, 0xf2, 0x6d, 0xc4, 0x01, 0xf9, 0x5d, 0xf8,
  418. 0xd9, 0x23, 0x32, 0x29, 0x0a, 0xe1, 0xf6, 0xdc, 0xa1, 0xef, 0x52, 0xf7,
  419. 0x3a, 0x3c, 0xe6, 0x7e, 0x3d, 0x0e, 0xe8, 0x86, 0xa9, 0x58, 0xf4, 0xfe,
  420. 0xfa, 0x8b, 0xe4, 0x1c, 0xad, 0x58, 0x5b, 0x1c, 0xc7, 0x54, 0xee, 0x7e,
  421. 0xe7, 0x12, 0x6a, 0x4b, 0x01, 0x63, 0xb4, 0xdb, 0x6e, 0xe7, 0x7a, 0xe9,
  422. 0x62, 0xa5, 0xb4, 0xe3};
  423. const std::vector<uint8_t> EpidVerifierTest::kEmptyGrp01VerRl = {
  424. // gid
  425. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  426. 0x00, 0x00, 0x00, 0x2A,
  427. // B
  428. 0xa6, 0x13, 0x29, 0xb6, 0x61, 0xa2, 0xb8, 0xd7, 0x49, 0x86, 0xcb, 0xaf,
  429. 0x94, 0x4d, 0x9e, 0x51, 0xcf, 0xd3, 0x5d, 0x0f, 0x33, 0x9a, 0x59, 0x0d,
  430. 0xe7, 0xc9, 0xb9, 0x7f, 0x83, 0xae, 0x27, 0xe6, 0x40, 0xf0, 0x88, 0x13,
  431. 0xe2, 0xb6, 0x6a, 0x43, 0x26, 0xa3, 0x21, 0xea, 0x00, 0x78, 0xcd, 0xce,
  432. 0x0e, 0x14, 0x7a, 0xde, 0xcf, 0xaa, 0x7b, 0xc5, 0x7e, 0x7c, 0xaf, 0xe4,
  433. 0x5e, 0x8a, 0xdd, 0xc7,
  434. // version
  435. 0x00, 0x00, 0x00, 0x00,
  436. // n4
  437. 0x00, 0x00, 0x00, 0x00,
  438. // no k's
  439. };
  440. const Epid2Params EpidVerifierTest::kParamsStr = {
  441. #include "epid/common/src/epid2params_ate.inc"
  442. };
  443. const GroupPubKey EpidVerifierTest::kGrp01Key = {
  444. #include "epid/common-testhelper/testdata/grp01/gpubkey.inc"
  445. };
  446. const std::vector<uint8_t> EpidVerifierTest::kGrp01PrivRl = {
  447. #include "epid/common-testhelper/testdata/grp01/privrl.inc"
  448. };
  449. const std::vector<uint8_t> EpidVerifierTest::kGrp01SigRl = {
  450. #include "epid/common-testhelper/testdata/grp01/sigrl.inc"
  451. };
  452. const std::vector<uint8_t> EpidVerifierTest::kSigRlIkgf = {
  453. #include "epid/common-testhelper/testdata/ikgf/groupa/sigrl.inc"
  454. };
  455. const std::vector<uint8_t> EpidVerifierTest::kEmptySigRlIkgf = {
  456. #include "epid/common-testhelper/testdata/ikgf/groupa/sigrl_empty.inc"
  457. };
  458. const std::vector<uint8_t> EpidVerifierTest::kGrp01VerRl = {
  459. #include "epid/common-testhelper/testdata/grp01/verrl.inc"
  460. };
  461. const std::vector<uint8_t>
  462. EpidVerifierTest::kSigGrp01Member0Sha256RandombaseTest0 = {
  463. #include "epid/common-testhelper/testdata/grp01/member0/sig_test0_sha256_sigrl.inc"
  464. };
  465. const std::vector<uint8_t>
  466. EpidVerifierTest::kSigMember0Sha256RandombaseMsg0Ikgf = {
  467. #include "epid/common-testhelper/testdata/ikgf/groupa/sig_msg0_sha256_sigrl.inc"
  468. };
  469. const std::vector<uint8_t>
  470. EpidVerifierTest::kSigGrp01Member0Sha384RandombaseTest0 = {
  471. #include "epid/common-testhelper/testdata/grp01/member0/sig_test0_sha384_sigrl.inc"
  472. };
  473. const std::vector<uint8_t>
  474. EpidVerifierTest::kSigGrp01Member0Sha512RandombaseTest0 = {
  475. #include "epid/common-testhelper/testdata/grp01/member0/sig_test0_sha512_sigrl.inc"
  476. };
  477. const std::vector<uint8_t>
  478. EpidVerifierTest::kSigGrp01Member0Sha512256RandombaseTest1 = {0};
  479. const std::vector<uint8_t>
  480. EpidVerifierTest::kSigGrp01Member0Sha256RandombaseTest1NoSigRl = {
  481. #include "epid/common-testhelper/testdata/grp01/member0/sig_test1_sha256.inc"
  482. };
  483. const std::vector<uint8_t>
  484. EpidVerifierTest::kSigGrp01Member0Sha256Basename1Test1NoSigRl = {
  485. #include "epid/common-testhelper/testdata/grp01/member0/sig_test1_basename1_sha256.inc"
  486. };
  487. const std::vector<uint8_t>
  488. EpidVerifierTest::kSigSha256Basename1Test1NoSigRlIkgf = {
  489. #include "epid/common-testhelper/testdata/ikgf/groupa/sig_test1_basename1_sha256.inc"
  490. };
  491. const std::vector<uint8_t>
  492. EpidVerifierTest::kSigGrp01Member0Sha384RandombaseTest1NoSigRl = {
  493. #include "epid/common-testhelper/testdata/grp01/member0/sig_test1_sha384.inc"
  494. };
  495. const std::vector<uint8_t>
  496. EpidVerifierTest::kSigGrp01Member0Sha512RandombaseTest1NoSigRl = {
  497. #include "epid/common-testhelper/testdata/grp01/member0/sig_test1_sha512.inc"
  498. };
  499. const std::vector<uint8_t> EpidVerifierTest::kTest0 = {
  500. 't', 'e', 's', 't', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', 0x0};
  501. const std::vector<uint8_t> EpidVerifierTest::kTest1 = {'t', 'e', 's', 't', '1'};
  502. const std::vector<uint8_t> EpidVerifierTest::kBasename = {'b', 'a', 's', 'e',
  503. 'n', 'a', 'm', 'e'};
  504. const std::vector<uint8_t> EpidVerifierTest::kBasename1 = {
  505. 'b', 'a', 's', 'e', 'n', 'a', 'm', 'e', '1'};
  506. const OctStr32 EpidVerifierTest::kOctStr32_1 = {0x00, 0x00, 0x00, 0x01};
  507. const GroupPubKey EpidVerifierTest::kPubKeySigRlVerify = {
  508. #include "epid/verifier/unittests/testdata/sigrl/pub_key_sigrl_verify.inc"
  509. };
  510. const std::vector<uint8_t> EpidVerifierTest::kSigRlSingleEntry = {
  511. #include "epid/verifier/unittests/testdata/sigrl/sigrl_single_entry.inc"
  512. };
  513. const std::vector<uint8_t> EpidVerifierTest::kSigRlFiveEntries = {
  514. #include "epid/verifier/unittests/testdata/sigrl/sigrl_five_entries.inc"
  515. };
  516. const EpidSignature EpidVerifierTest::kSignatureSigrlFirst = {
  517. #include "epid/verifier/unittests/testdata/sigrl/signature_sigrl_first.inc"
  518. };
  519. const EpidSignature EpidVerifierTest::kSignatureSigrlMiddle = {
  520. #include "epid/verifier/unittests/testdata/sigrl/signature_sigrl_middle.inc"
  521. };
  522. const EpidSignature EpidVerifierTest::kSignatureSigrlLast = {
  523. #include "epid/verifier/unittests/testdata/sigrl/signature_sigrl_last.inc"
  524. };
  525. const std::vector<uint8_t> EpidVerifierTest::kGrpRl = {
  526. #include "epid/common-testhelper/testdata/grprl.inc"
  527. };
  528. const std::vector<uint8_t> EpidVerifierTest::kGrpRlIkgf = {
  529. #include "epid/common-testhelper/testdata/ikgf/grprl.inc"
  530. };
  531. const std::vector<uint8_t> EpidVerifierTest::kGrpRlRevokedGrpXOnlyEntry = {
  532. #include "epid/common-testhelper/testdata/grprl_single_entry_revoked_grp_x.inc"
  533. };
  534. const std::vector<uint8_t> EpidVerifierTest::kGrpRlRevokedGrpXFirstEntry = {
  535. #include "epid/common-testhelper/testdata/grprl_revoked_grp_x_first_entry.inc"
  536. };
  537. const std::vector<uint8_t> EpidVerifierTest::kGrpRlRevokedGrpXMiddleEntry = {
  538. #include "epid/common-testhelper/testdata/grprl_revoked_grp_x_middle_entry.inc"
  539. };
  540. const std::vector<uint8_t> EpidVerifierTest::kGrpRlRevokedGrpXLastEntry = {
  541. #include "epid/common-testhelper/testdata/grprl_revoked_grp_x_last_entry.inc"
  542. };
  543. const std::vector<uint8_t> EpidVerifierTest::kBsn0 = {'b', 's', 'n', '0'};
  544. const std::vector<uint8_t> EpidVerifierTest::kMsg0 = {'m', 's', 'g', '0'};
  545. const GroupPubKey EpidVerifierTest::kGrpXKey = {
  546. #include "epid/common-testhelper/testdata/grp_x/pubkey.inc"
  547. };
  548. const std::vector<uint8_t> EpidVerifierTest::kGrpXPrivRl = {
  549. #include "epid/common-testhelper/testdata/grp_x/privrl.inc"
  550. };
  551. const std::vector<uint8_t> EpidVerifierTest::kPrivRlIkgf = {
  552. #include "epid/common-testhelper/testdata/ikgf/groupa/privrl.inc"
  553. };
  554. const std::vector<uint8_t> EpidVerifierTest::kEmptyPrivRlIkgf = {
  555. #include "epid/common-testhelper/testdata/ikgf/groupa/privrl_empty.inc"
  556. };
  557. const std::vector<uint8_t>
  558. EpidVerifierTest::kGrpXPrivRlRevokedPrivKey000OnlyEntry = {
  559. #include "epid/common-testhelper/testdata/grp_x/privrl_single_entry_revoked_key000.inc"
  560. };
  561. const std::vector<uint8_t> EpidVerifierTest::kGrpXSigRl = {
  562. #include "epid/common-testhelper/testdata/grp_x/sigrl.inc"
  563. };
  564. const std::vector<uint8_t> EpidVerifierTest::kGrpXSigRlVersion2 = {
  565. #include "epid/common-testhelper/testdata/grp_x/sigrl_ver_2.inc"
  566. };
  567. const std::vector<uint8_t>
  568. EpidVerifierTest::kGrpXSigRlMember0Sha256Bsn0Msg0OnlyEntry = {
  569. #include "epid/common-testhelper/testdata/grp_x/sigrl_single_entry.inc"
  570. };
  571. const std::vector<uint8_t>
  572. EpidVerifierTest::kGrpXSigRlMember0Sha256Bsn0Msg0FirstEntry = {
  573. #include "epid/common-testhelper/testdata/grp_x/sigrl_member0_sig_sha256_bsn0_msg0_revoked_first_entry.inc"
  574. };
  575. const std::vector<uint8_t>
  576. EpidVerifierTest::kGrpXSigRlMember0Sha256Bsn0Msg0MiddleEntry = {
  577. #include "epid/common-testhelper/testdata/grp_x/sigrl_member0_sig_sha256_bsn0_msg0_revoked_middle_entry.inc"
  578. };
  579. const std::vector<uint8_t>
  580. EpidVerifierTest::kGrpXSigRlMember0Sha256Bsn0Msg0LastEntry = {
  581. #include "epid/common-testhelper/testdata/grp_x/sigrl_member0_sig_sha256_bsn0_msg0_revoked_last_entry.inc"
  582. };
  583. const std::vector<uint8_t> EpidVerifierTest::kGrpXBsn0Sha256VerRl = {
  584. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn0/verrl.inc"
  585. };
  586. const std::vector<uint8_t> EpidVerifierTest::kGrpXBsn0Sha384VerRl = {
  587. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn0/verrl_sha384.inc"
  588. };
  589. const std::vector<uint8_t> EpidVerifierTest::kGrpXBsn0Sha512VerRl = {
  590. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn0/verrl_sha512.inc"
  591. };
  592. const std::vector<uint8_t> EpidVerifierTest::kGrpXBsn0Sha512256VerRl = {
  593. // #include "testdata/grp_x/verrevoked/bsn0/verrl_sha512_256.inc"
  594. };
  595. const std::vector<uint8_t> EpidVerifierTest::kGrpXBsn0VerRlSingleEntry = {
  596. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn0/verrl_1entry.inc"
  597. };
  598. const std::vector<uint8_t> EpidVerifierTest::kGrpXBsn1VerRl = {
  599. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn1/verrl.inc"
  600. };
  601. const std::vector<uint8_t> EpidVerifierTest::kGrpXBsn1VerRl_012 = {
  602. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn1/verrl_012revoked.inc"
  603. };
  604. // clang-format off
  605. const std::vector<uint8_t>
  606. EpidVerifierTest::kSigGrpXVerRevokedMember0Sha256Bsn0Msg0 = {
  607. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn0/sig_revoked0sha256bsn0msg0.inc"
  608. };
  609. const std::vector<uint8_t>
  610. EpidVerifierTest::kSigGrpXVerRevokedMember1Sha256Bsn0Msg0 = {
  611. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn0/sig_revoked1sha256bsn0msg0.inc"
  612. };
  613. const std::vector<uint8_t>
  614. EpidVerifierTest::kSigGrpXVerRevokedMember2Sha256Bsn0Msg0 = {
  615. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn0/sig_revoked2sha256bsn0msg0.inc"
  616. };
  617. const std::vector<uint8_t>
  618. EpidVerifierTest::kSigGrpXVerRevokedMember3Sha256Bsn1Msg0 = {
  619. #include "epid/common-testhelper/testdata/grp_x/verrevoked/bsn1/sig_revoked3sha256bsn1msg0.inc"
  620. };
  621. const std::vector<uint8_t> EpidVerifierTest::kSigGrpXMember0Sha256Bsn0Msg0 = {
  622. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha256_bsn0_msg0.inc"
  623. };
  624. const std::vector<uint8_t> EpidVerifierTest::kSigMember0Sha256Bsn0Msg0Ikgf = {
  625. #include "epid/common-testhelper/testdata/ikgf/groupa/sig_sha256_bsn0_msg0.inc"
  626. };
  627. const std::vector<uint8_t>
  628. EpidVerifierTest::kSigMember0Sha256Bsn0Msg0EmptySigRlIkgf = {
  629. #include "epid/common-testhelper/testdata/ikgf/groupa/sig_sha256_bsn0_msg0_empty_sigrl.inc"
  630. };
  631. const std::vector<uint8_t>
  632. EpidVerifierTest::kSigMember0Sha256Bsn0Msg0NoSigRlIkgf = {
  633. #include "epid/common-testhelper/testdata/ikgf/groupa/sig_sha256_bsn0_msg0_nosigrl.inc"
  634. };
  635. const std::vector<uint8_t>
  636. EpidVerifierTest::kSigRevSigMember0Sha256Bsn0Msg0Ikgf = {
  637. #include "epid/common-testhelper/testdata/ikgf/groupa/sig_sigrevoked_sha256_bsn0_msg0.inc"
  638. };
  639. const std::vector<uint8_t>
  640. EpidVerifierTest::kRevGroupSigMember0Sha256Bsn0Msg0Ikgf = {
  641. #include "epid/common-testhelper/testdata/ikgf/groupb/sig_grouprevoked_sha256_bsn0_msg0.inc"
  642. };
  643. const std::vector<uint8_t>
  644. EpidVerifierTest::kSigGrpXMember0Sha256Bsn0Msg0SingleEntrySigRl = {
  645. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha256_bsn0_msg0_rl_singleentry.inc"
  646. };
  647. const std::vector<uint8_t>
  648. EpidVerifierTest::kSigGrpXRevokedPrivKey000Sha256Bsn0Msg0 = {
  649. #include "epid/common-testhelper/testdata/grp_x/privrevoked/signatures/sig_sha256_bsn0_msg0_revkey000.inc"
  650. };
  651. const std::vector<uint8_t>
  652. EpidVerifierTest::kSigRevokedPrivKeySha256Bsn0Msg0Ikgf = {
  653. #include "epid/common-testhelper/testdata/ikgf/groupa/sig_sha256_bsn0_msg0_revkey.inc"
  654. };
  655. const std::vector<uint8_t>
  656. EpidVerifierTest::kSigGrpXRevokedPrivKey001Sha256Bsn0Msg0 = {
  657. #include "epid/common-testhelper/testdata/grp_x/privrevoked/signatures/sig_sha256_bsn0_msg0_revkey001.inc"
  658. };
  659. const std::vector<uint8_t>
  660. EpidVerifierTest::kSigGrpXRevokedPrivKey002Sha256Bsn0Msg0 = {
  661. #include "epid/common-testhelper/testdata/grp_x/privrevoked/signatures/sig_sha256_bsn0_msg0_revkey002.inc"
  662. };
  663. const std::vector<uint8_t> EpidVerifierTest::kSigGrpXMember0Sha256Bsn0Msg1 = {
  664. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha256_bsn0_msg1.inc"
  665. };
  666. const std::vector<uint8_t> EpidVerifierTest::kSigGrpXMember0Sha256Bsn1Msg0 = {
  667. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha256_bsn1_msg0.inc"
  668. };
  669. const std::vector<uint8_t>
  670. EpidVerifierTest::kSigGrpXMember0Sha256RandbaseMsg0 = {
  671. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha256_rndbase_msg0.inc"
  672. };
  673. const std::vector<uint8_t>
  674. EpidVerifierTest::kSigMember0Sha256RandbaseMsg0Ikgf = {
  675. #include "epid/common-testhelper/testdata/ikgf/groupa/sig_sha256_rndbase_msg0.inc"
  676. };
  677. const std::vector<uint8_t>
  678. EpidVerifierTest::kSigGrpXMember0Sha256RandbaseMsg1 = {
  679. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha256_rndbase_msg1.inc"
  680. };
  681. const std::vector<uint8_t> EpidVerifierTest::kSigGrpXMember0Sha384Bsn0Msg0 = {
  682. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha384_bsn0_msg0.inc"
  683. };
  684. const std::vector<uint8_t>
  685. EpidVerifierTest::kSigGrpXMember0Sha384RandbaseMsg0 = {
  686. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha384_rndbase_msg0.inc"
  687. };
  688. const std::vector<uint8_t> EpidVerifierTest::kSigGrpXMember0Sha512Bsn0Msg0 = {
  689. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha512_bsn0_msg0.inc"
  690. };
  691. const std::vector<uint8_t>
  692. EpidVerifierTest::kSigGrpXMember0Sha512RandbaseMsg0 = {
  693. #include "epid/common-testhelper/testdata/grp_x/member0/sig_sha512_rndbase_msg0.inc"
  694. };
  695. const std::vector<uint8_t>
  696. EpidVerifierTest::kSigGrpXMember0Sha512256Bsn0Msg0 = {
  697. // #include "testdata/grp_x/member0/sig_sha512256_bsn0_msg0.inc"
  698. };
  699. const std::vector<uint8_t>
  700. EpidVerifierTest::kSigGrpXMember0Sha512256RandbaseMsg0 = {
  701. // #include "testdata/grp_x/member0/sig_sha512256_rndbase_msg0.inc"
  702. };
  703. const std::vector<uint8_t> EpidVerifierTest::kSigGrpXMember1Sha256Bsn0Msg0 = {
  704. #include "epid/common-testhelper/testdata/grp_x/member1/sig_sha256_bsn0_msg0.inc"
  705. };