keys.c 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or
  8. * without modification, are permitted (subject to the limitations
  9. * in the disclaimer below) provided that the following conditions
  10. * are met:
  11. *
  12. * * Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. *
  15. * * Redistributions in binary form must reproduce the above
  16. * copyright notice, this list of conditions and the following
  17. * disclaimer in the documentation and/or other materials
  18. * provided with the distribution.
  19. *
  20. * * Neither the name of Qualcomm Atheros nor the names of
  21. * its contributors may be used to endorse or promote products
  22. * derived from this software without specific prior written
  23. * permission.
  24. *
  25. * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
  26. * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE
  27. * COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
  28. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  29. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  30. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  31. * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  32. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  33. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  34. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  36. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
  37. * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  38. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. *
  40. *--------------------------------------------------------------------*/
  41. /*====================================================================*
  42. *
  43. * keys.c - Encryption Key Data and Functions;
  44. *
  45. * keys.h
  46. *
  47. * Tabulate default Atheros pass phrases and their DAK, NMK and
  48. * NID for search and conversion purposes;
  49. *
  50. * Contributor(s):
  51. * Charles Maier
  52. *
  53. *--------------------------------------------------------------------*/
  54. #ifndef KEYS_SOURCE
  55. #define KEYS_SOURCE
  56. #include "../key/keys.h"
  57. struct key const keys [KEYS] =
  58. {
  59. {
  60. "none/secret",
  61. {
  62. 0x00,
  63. 0x00,
  64. 0x00,
  65. 0x00,
  66. 0x00,
  67. 0x00,
  68. 0x00,
  69. 0x00,
  70. 0x00,
  71. 0x00,
  72. 0x00,
  73. 0x00,
  74. 0x00,
  75. 0x00,
  76. 0x00,
  77. 0x00
  78. },
  79. {
  80. 0x00,
  81. 0x00,
  82. 0x00,
  83. 0x00,
  84. 0x00,
  85. 0x00,
  86. 0x00,
  87. 0x00,
  88. 0x00,
  89. 0x00,
  90. 0x00,
  91. 0x00,
  92. 0x00,
  93. 0x00,
  94. 0x00,
  95. 0x00
  96. }
  97. },
  98. {
  99. "HomePlugAV",
  100. {
  101. 0x68,
  102. 0x9F,
  103. 0x07,
  104. 0x4B,
  105. 0x8B,
  106. 0x02,
  107. 0x75,
  108. 0xA2,
  109. 0x71,
  110. 0x0B,
  111. 0x0B,
  112. 0x57,
  113. 0x79,
  114. 0xAD,
  115. 0x16,
  116. 0x30
  117. },
  118. {
  119. 0x50,
  120. 0xD3,
  121. 0xE4,
  122. 0x93,
  123. 0x3F,
  124. 0x85,
  125. 0x5B,
  126. 0x70,
  127. 0x40,
  128. 0x78,
  129. 0x4D,
  130. 0xF8,
  131. 0x15,
  132. 0xAA,
  133. 0x8D,
  134. 0xB7
  135. }
  136. },
  137. {
  138. "HomePlugAV0123",
  139. {
  140. 0xF0,
  141. 0x84,
  142. 0xB4,
  143. 0xE8,
  144. 0xF6,
  145. 0x06,
  146. 0x9F,
  147. 0xF1,
  148. 0x30,
  149. 0x0C,
  150. 0x9B,
  151. 0xDB,
  152. 0x81,
  153. 0x23,
  154. 0x67,
  155. 0xFF
  156. },
  157. {
  158. 0xB5,
  159. 0x93,
  160. 0x19,
  161. 0xD7,
  162. 0xE8,
  163. 0x15,
  164. 0x7B,
  165. 0xA0,
  166. 0x01,
  167. 0xB0,
  168. 0x18,
  169. 0x66,
  170. 0x9C,
  171. 0xCE,
  172. 0xE3,
  173. 0x0D
  174. }
  175. }
  176. };
  177. /*====================================================================*
  178. * device access key synonym table;
  179. *--------------------------------------------------------------------*/
  180. struct _term_ const daks [DAKS] =
  181. {
  182. {
  183. "key0",
  184. DAK0
  185. },
  186. {
  187. "key1",
  188. DAK1
  189. },
  190. {
  191. "key2",
  192. DAK2
  193. },
  194. {
  195. "none",
  196. DAK0
  197. },
  198. {
  199. "secret",
  200. DAK0
  201. },
  202. {
  203. "zero",
  204. DAK0
  205. }
  206. };
  207. /*====================================================================*
  208. * network membership key synonym table;
  209. *--------------------------------------------------------------------*/
  210. struct _term_ const nmks [NMKS] =
  211. {
  212. {
  213. "key0",
  214. NMK0
  215. },
  216. {
  217. "key1",
  218. NMK1
  219. },
  220. {
  221. "key2",
  222. NMK2
  223. },
  224. {
  225. "none",
  226. NMK0
  227. },
  228. {
  229. "zero",
  230. NMK0
  231. },
  232. };
  233. /*====================================================================*
  234. *
  235. *--------------------------------------------------------------------*/
  236. #endif