rmdconst.h 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. /* crypto/ripemd/rmdconst.h */
  2. /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  3. * All rights reserved.
  4. *
  5. * This package is an SSL implementation written
  6. * by Eric Young (eay@cryptsoft.com).
  7. * The implementation was written so as to conform with Netscapes SSL.
  8. *
  9. * This library is free for commercial and non-commercial use as long as
  10. * the following conditions are aheared to. The following conditions
  11. * apply to all code found in this distribution, be it the RC4, RSA,
  12. * lhash, DES, etc., code; not just the SSL code. The SSL documentation
  13. * included with this distribution is covered by the same copyright terms
  14. * except that the holder is Tim Hudson (tjh@cryptsoft.com).
  15. *
  16. * Copyright remains Eric Young's, and as such any Copyright notices in
  17. * the code are not to be removed.
  18. * If this package is used in a product, Eric Young should be given attribution
  19. * as the author of the parts of the library used.
  20. * This can be in the form of a textual message at program startup or
  21. * in documentation (online or textual) provided with the package.
  22. *
  23. * Redistribution and use in source and binary forms, with or without
  24. * modification, are permitted provided that the following conditions
  25. * are met:
  26. * 1. Redistributions of source code must retain the copyright
  27. * notice, this list of conditions and the following disclaimer.
  28. * 2. Redistributions in binary form must reproduce the above copyright
  29. * notice, this list of conditions and the following disclaimer in the
  30. * documentation and/or other materials provided with the distribution.
  31. * 3. All advertising materials mentioning features or use of this software
  32. * must display the following acknowledgement:
  33. * "This product includes cryptographic software written by
  34. * Eric Young (eay@cryptsoft.com)"
  35. * The word 'cryptographic' can be left out if the rouines from the library
  36. * being used are not cryptographic related :-).
  37. * 4. If you include any Windows specific code (or a derivative thereof) from
  38. * the apps directory (application code) you must include an acknowledgement:
  39. * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
  40. *
  41. * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
  42. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  43. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  44. * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  45. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  46. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  47. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  48. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  49. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  50. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  51. * SUCH DAMAGE.
  52. *
  53. * The licence and distribution terms for any publically available version or
  54. * derivative of this code cannot be changed. i.e. this code cannot simply be
  55. * copied and put under another distribution licence
  56. * [including the GNU Public Licence.]
  57. */
  58. #define KL0 0x00000000L
  59. #define KL1 0x5A827999L
  60. #define KL2 0x6ED9EBA1L
  61. #define KL3 0x8F1BBCDCL
  62. #define KL4 0xA953FD4EL
  63. #define KR0 0x50A28BE6L
  64. #define KR1 0x5C4DD124L
  65. #define KR2 0x6D703EF3L
  66. #define KR3 0x7A6D76E9L
  67. #define KR4 0x00000000L
  68. #define WL00 0
  69. #define SL00 11
  70. #define WL01 1
  71. #define SL01 14
  72. #define WL02 2
  73. #define SL02 15
  74. #define WL03 3
  75. #define SL03 12
  76. #define WL04 4
  77. #define SL04 5
  78. #define WL05 5
  79. #define SL05 8
  80. #define WL06 6
  81. #define SL06 7
  82. #define WL07 7
  83. #define SL07 9
  84. #define WL08 8
  85. #define SL08 11
  86. #define WL09 9
  87. #define SL09 13
  88. #define WL10 10
  89. #define SL10 14
  90. #define WL11 11
  91. #define SL11 15
  92. #define WL12 12
  93. #define SL12 6
  94. #define WL13 13
  95. #define SL13 7
  96. #define WL14 14
  97. #define SL14 9
  98. #define WL15 15
  99. #define SL15 8
  100. #define WL16 7
  101. #define SL16 7
  102. #define WL17 4
  103. #define SL17 6
  104. #define WL18 13
  105. #define SL18 8
  106. #define WL19 1
  107. #define SL19 13
  108. #define WL20 10
  109. #define SL20 11
  110. #define WL21 6
  111. #define SL21 9
  112. #define WL22 15
  113. #define SL22 7
  114. #define WL23 3
  115. #define SL23 15
  116. #define WL24 12
  117. #define SL24 7
  118. #define WL25 0
  119. #define SL25 12
  120. #define WL26 9
  121. #define SL26 15
  122. #define WL27 5
  123. #define SL27 9
  124. #define WL28 2
  125. #define SL28 11
  126. #define WL29 14
  127. #define SL29 7
  128. #define WL30 11
  129. #define SL30 13
  130. #define WL31 8
  131. #define SL31 12
  132. #define WL32 3
  133. #define SL32 11
  134. #define WL33 10
  135. #define SL33 13
  136. #define WL34 14
  137. #define SL34 6
  138. #define WL35 4
  139. #define SL35 7
  140. #define WL36 9
  141. #define SL36 14
  142. #define WL37 15
  143. #define SL37 9
  144. #define WL38 8
  145. #define SL38 13
  146. #define WL39 1
  147. #define SL39 15
  148. #define WL40 2
  149. #define SL40 14
  150. #define WL41 7
  151. #define SL41 8
  152. #define WL42 0
  153. #define SL42 13
  154. #define WL43 6
  155. #define SL43 6
  156. #define WL44 13
  157. #define SL44 5
  158. #define WL45 11
  159. #define SL45 12
  160. #define WL46 5
  161. #define SL46 7
  162. #define WL47 12
  163. #define SL47 5
  164. #define WL48 1
  165. #define SL48 11
  166. #define WL49 9
  167. #define SL49 12
  168. #define WL50 11
  169. #define SL50 14
  170. #define WL51 10
  171. #define SL51 15
  172. #define WL52 0
  173. #define SL52 14
  174. #define WL53 8
  175. #define SL53 15
  176. #define WL54 12
  177. #define SL54 9
  178. #define WL55 4
  179. #define SL55 8
  180. #define WL56 13
  181. #define SL56 9
  182. #define WL57 3
  183. #define SL57 14
  184. #define WL58 7
  185. #define SL58 5
  186. #define WL59 15
  187. #define SL59 6
  188. #define WL60 14
  189. #define SL60 8
  190. #define WL61 5
  191. #define SL61 6
  192. #define WL62 6
  193. #define SL62 5
  194. #define WL63 2
  195. #define SL63 12
  196. #define WL64 4
  197. #define SL64 9
  198. #define WL65 0
  199. #define SL65 15
  200. #define WL66 5
  201. #define SL66 5
  202. #define WL67 9
  203. #define SL67 11
  204. #define WL68 7
  205. #define SL68 6
  206. #define WL69 12
  207. #define SL69 8
  208. #define WL70 2
  209. #define SL70 13
  210. #define WL71 10
  211. #define SL71 12
  212. #define WL72 14
  213. #define SL72 5
  214. #define WL73 1
  215. #define SL73 12
  216. #define WL74 3
  217. #define SL74 13
  218. #define WL75 8
  219. #define SL75 14
  220. #define WL76 11
  221. #define SL76 11
  222. #define WL77 6
  223. #define SL77 8
  224. #define WL78 15
  225. #define SL78 5
  226. #define WL79 13
  227. #define SL79 6
  228. #define WR00 5
  229. #define SR00 8
  230. #define WR01 14
  231. #define SR01 9
  232. #define WR02 7
  233. #define SR02 9
  234. #define WR03 0
  235. #define SR03 11
  236. #define WR04 9
  237. #define SR04 13
  238. #define WR05 2
  239. #define SR05 15
  240. #define WR06 11
  241. #define SR06 15
  242. #define WR07 4
  243. #define SR07 5
  244. #define WR08 13
  245. #define SR08 7
  246. #define WR09 6
  247. #define SR09 7
  248. #define WR10 15
  249. #define SR10 8
  250. #define WR11 8
  251. #define SR11 11
  252. #define WR12 1
  253. #define SR12 14
  254. #define WR13 10
  255. #define SR13 14
  256. #define WR14 3
  257. #define SR14 12
  258. #define WR15 12
  259. #define SR15 6
  260. #define WR16 6
  261. #define SR16 9
  262. #define WR17 11
  263. #define SR17 13
  264. #define WR18 3
  265. #define SR18 15
  266. #define WR19 7
  267. #define SR19 7
  268. #define WR20 0
  269. #define SR20 12
  270. #define WR21 13
  271. #define SR21 8
  272. #define WR22 5
  273. #define SR22 9
  274. #define WR23 10
  275. #define SR23 11
  276. #define WR24 14
  277. #define SR24 7
  278. #define WR25 15
  279. #define SR25 7
  280. #define WR26 8
  281. #define SR26 12
  282. #define WR27 12
  283. #define SR27 7
  284. #define WR28 4
  285. #define SR28 6
  286. #define WR29 9
  287. #define SR29 15
  288. #define WR30 1
  289. #define SR30 13
  290. #define WR31 2
  291. #define SR31 11
  292. #define WR32 15
  293. #define SR32 9
  294. #define WR33 5
  295. #define SR33 7
  296. #define WR34 1
  297. #define SR34 15
  298. #define WR35 3
  299. #define SR35 11
  300. #define WR36 7
  301. #define SR36 8
  302. #define WR37 14
  303. #define SR37 6
  304. #define WR38 6
  305. #define SR38 6
  306. #define WR39 9
  307. #define SR39 14
  308. #define WR40 11
  309. #define SR40 12
  310. #define WR41 8
  311. #define SR41 13
  312. #define WR42 12
  313. #define SR42 5
  314. #define WR43 2
  315. #define SR43 14
  316. #define WR44 10
  317. #define SR44 13
  318. #define WR45 0
  319. #define SR45 13
  320. #define WR46 4
  321. #define SR46 7
  322. #define WR47 13
  323. #define SR47 5
  324. #define WR48 8
  325. #define SR48 15
  326. #define WR49 6
  327. #define SR49 5
  328. #define WR50 4
  329. #define SR50 8
  330. #define WR51 1
  331. #define SR51 11
  332. #define WR52 3
  333. #define SR52 14
  334. #define WR53 11
  335. #define SR53 14
  336. #define WR54 15
  337. #define SR54 6
  338. #define WR55 0
  339. #define SR55 14
  340. #define WR56 5
  341. #define SR56 6
  342. #define WR57 12
  343. #define SR57 9
  344. #define WR58 2
  345. #define SR58 12
  346. #define WR59 13
  347. #define SR59 9
  348. #define WR60 9
  349. #define SR60 12
  350. #define WR61 7
  351. #define SR61 5
  352. #define WR62 10
  353. #define SR62 15
  354. #define WR63 14
  355. #define SR63 8
  356. #define WR64 12
  357. #define SR64 8
  358. #define WR65 15
  359. #define SR65 5
  360. #define WR66 10
  361. #define SR66 12
  362. #define WR67 4
  363. #define SR67 9
  364. #define WR68 1
  365. #define SR68 12
  366. #define WR69 5
  367. #define SR69 5
  368. #define WR70 8
  369. #define SR70 14
  370. #define WR71 7
  371. #define SR71 6
  372. #define WR72 6
  373. #define SR72 8
  374. #define WR73 2
  375. #define SR73 13
  376. #define WR74 13
  377. #define SR74 6
  378. #define WR75 14
  379. #define SR75 5
  380. #define WR76 0
  381. #define SR76 15
  382. #define WR77 3
  383. #define SR77 13
  384. #define WR78 9
  385. #define SR78 11
  386. #define WR79 11
  387. #define SR79 11