You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
2.3 KiB

  1. package skein
  2. var SKEIN1024_IV_384 = []uint64{
  3. 0x5102B6B8C1894A35,
  4. 0xFEEBC9E3FE8AF11A,
  5. 0x0C807F06E32BED71,
  6. 0x60C13A52B41A91F6,
  7. 0x9716D35DD4917C38,
  8. 0xE780DF126FD31D3A,
  9. 0x797846B6C898303A,
  10. 0xB172C2A8B3572A3B,
  11. 0xC9BC8203A6104A6C,
  12. 0x65909338D75624F4,
  13. 0x94BCC5684B3F81A0,
  14. 0x3EBBF51E10ECFD46,
  15. 0x2DF50F0BEEB08542,
  16. 0x3B5A65300DBC6516,
  17. 0x484B9CD2167BBCE1,
  18. 0x2D136947D4CBAFEA}
  19. /* blkSize = 1024 bits. hashSize = 512 bits */
  20. var SKEIN1024_IV_512 = []uint64{
  21. 0xCAEC0E5D7C1B1B18,
  22. 0xA01B0E045F03E802,
  23. 0x33840451ED912885,
  24. 0x374AFB04EAEC2E1C,
  25. 0xDF25A0E2813581F7,
  26. 0xE40040938B12F9D2,
  27. 0xA662D539C2ED39B6,
  28. 0xFA8B85CF45D8C75A,
  29. 0x8316ED8E29EDE796,
  30. 0x053289C02E9F91B8,
  31. 0xC3F8EF1D6D518B73,
  32. 0xBDCEC3C4D5EF332E,
  33. 0x549A7E5222974487,
  34. 0x670708725B749816,
  35. 0xB9CD28FBF0581BD1,
  36. 0x0E2940B815804974}
  37. /* blkSize = 1024 bits. hashSize = 1024 bits */
  38. var SKEIN1024_IV_1024 = []uint64{
  39. 0xD593DA0741E72355,
  40. 0x15B5E511AC73E00C,
  41. 0x5180E5AEBAF2C4F0,
  42. 0x03BD41D3FCBCAFAF,
  43. 0x1CAEC6FD1983A898,
  44. 0x6E510B8BCDD0589F,
  45. 0x77E2BDFDC6394ADA,
  46. 0xC11E1DB524DCB0A3,
  47. 0xD6D14AF9C6329AB5,
  48. 0x6A9B0BFC6EB67E0D,
  49. 0x9243C60DCCFF1332,
  50. 0x1A1F1DDE743F02D4,
  51. 0x0996753C10ED0BB8,
  52. 0x6572DD22F2B4969A,
  53. 0x61FD3062D00A579A,
  54. 0x1DE0536E8682E539}
  55. const (
  56. SKEIN1024_STATE_WORDS = uint(16)
  57. SKEIN1024_BLOCK_BYTES = 8 * SKEIN1024_STATE_WORDS
  58. )
  59. const (
  60. R1024_0_0=24
  61. R1024_0_1=13
  62. R1024_0_2= 8
  63. R1024_0_3=47
  64. R1024_0_4= 8
  65. R1024_0_5=17
  66. R1024_0_6=22
  67. R1024_0_7=37
  68. R1024_1_0=38
  69. R1024_1_1=19
  70. R1024_1_2=10
  71. R1024_1_3=55
  72. R1024_1_4=49
  73. R1024_1_5=18
  74. R1024_1_6=23
  75. R1024_1_7=52
  76. R1024_2_0=33
  77. R1024_2_1= 4
  78. R1024_2_2=51
  79. R1024_2_3=13
  80. R1024_2_4=34
  81. R1024_2_5=41
  82. R1024_2_6=59
  83. R1024_2_7=17
  84. R1024_3_0= 5
  85. R1024_3_1=20
  86. R1024_3_2=48
  87. R1024_3_3=41
  88. R1024_3_4=47
  89. R1024_3_5=28
  90. R1024_3_6=16
  91. R1024_3_7=25
  92. R1024_4_0=41
  93. R1024_4_1= 9
  94. R1024_4_2=37
  95. R1024_4_3=31
  96. R1024_4_4=12
  97. R1024_4_5=47
  98. R1024_4_6=44
  99. R1024_4_7=30
  100. R1024_5_0=16
  101. R1024_5_1=34
  102. R1024_5_2=56
  103. R1024_5_3=51
  104. R1024_5_4= 4
  105. R1024_5_5=53
  106. R1024_5_6=42
  107. R1024_5_7=41
  108. R1024_6_0=31
  109. R1024_6_1=44
  110. R1024_6_2=47
  111. R1024_6_3=46
  112. R1024_6_4=19
  113. R1024_6_5=42
  114. R1024_6_6=44
  115. R1024_6_7=25
  116. R1024_7_0= 9
  117. R1024_7_1=48
  118. R1024_7_2=35
  119. R1024_7_3=52
  120. R1024_7_4=23
  121. R1024_7_5=31
  122. R1024_7_6=37
  123. R1024_7_7=20
  124. )