digest-kangarootwelve 0.4.8 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (473) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.XKCP +0 -20
  3. data/README.md +2 -2
  4. data/ext/digest/kangarootwelve/XKCP/lib/high/KangarooTwelve/KangarooTwelve.c +20 -20
  5. data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.c +2 -0
  6. data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.h +4 -4
  7. data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.inc +27 -31
  8. data/ext/digest/kangarootwelve/XKCP/lib/high/TurboSHAKE/TurboSHAKE.c +2 -0
  9. data/ext/digest/kangarootwelve/XKCP/lib/high/TurboSHAKE/TurboSHAKE.h +1 -1
  10. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARM/KeccakP-1600-SnP.h +18 -12
  11. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARMv7A-NEON/KeccakP-1600-SnP.h +19 -11
  12. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVR8/KeccakP-1600-SnP.h +18 -12
  13. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVR8/KeccakP-1600-avr8-fast.s +10 -10
  14. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX2/KeccakP-1600-AVX2.s +3 -0
  15. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX2/KeccakP-1600-SnP.h +24 -14
  16. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/C/KeccakP-1600-AVX512.c +23 -22
  17. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/C/KeccakP-1600-SnP.h +18 -13
  18. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/KeccakP-1600-AVX512.s +12 -12
  19. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/KeccakP-1600-SnP.h +18 -14
  20. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/XOP/KeccakP-1600-SnP.h +19 -13
  21. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/XOP/KeccakP-1600-XOP.c +36 -36
  22. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/compact/KeccakP-1600-SnP.h +18 -12
  23. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/compact/KeccakP-1600-compact64.c +19 -19
  24. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-32bits-inplace/KeccakP-1600-SnP.h +18 -12
  25. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-32bits-inplace/KeccakP-1600-inplace32BI.c +31 -31
  26. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-64bits/KeccakP-1600-SnP.h +21 -16
  27. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-64bits/KeccakP-1600-opt64.c +64 -64
  28. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/ARMv7A-NEON/KeccakP-1600-inplace-pl2-armv7a-neon-le-gcc.s +16 -16
  29. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/ARMv7A-NEON/KeccakP-1600-times2-SnP.h +24 -17
  30. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/AVX512/KeccakP-1600-times2-SIMD512.c +37 -37
  31. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/AVX512/KeccakP-1600-times2-SnP.h +25 -17
  32. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/KeccakP-1600-times2-SIMD128.c +32 -34
  33. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/KeccakP-1600-times2-SnP.h +24 -17
  34. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX2/KeccakP-1600-times4-SIMD256.c +39 -43
  35. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX2/KeccakP-1600-times4-SnP.h +26 -20
  36. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX512/KeccakP-1600-times4-SIMD512.c +38 -39
  37. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX512/KeccakP-1600-times4-SnP.h +25 -19
  38. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/AVX512/KeccakP-1600-times8-SIMD512.c +33 -35
  39. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/AVX512/KeccakP-1600-times8-SnP.h +26 -21
  40. data/ext/digest/kangarootwelve/XKCP/lib/low/common/SnP-Relaned.h +25 -21
  41. data/ext/digest/kangarootwelve/targets/armv7a/config.h +1 -0
  42. data/ext/digest/kangarootwelve/targets/avx/config.h +1 -0
  43. data/ext/digest/kangarootwelve/targets/avx2/config.h +2 -0
  44. data/ext/digest/kangarootwelve/targets/avx2noasm/config.h +2 -0
  45. data/ext/digest/kangarootwelve/targets/avx512/config.h +3 -0
  46. data/ext/digest/kangarootwelve/targets/avx512noasm/config.h +3 -0
  47. data/ext/digest/kangarootwelve/targets/config.h +0 -6
  48. data/ext/digest/kangarootwelve/targets/list +0 -2
  49. data/ext/digest/kangarootwelve/targets/ssse3/config.h +1 -0
  50. data/ext/digest/kangarootwelve/targets/xop/config.h +1 -0
  51. data/lib/digest/kangarootwelve/version.rb +1 -1
  52. metadata +2 -423
  53. data/ext/digest/kangarootwelve/.sitearchdir.-.digest.time +0 -0
  54. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-SnP.h +0 -44
  55. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference.h +0 -23
  56. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference32BI.c +0 -625
  57. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-SnP.h +0 -44
  58. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.c +0 -444
  59. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.h +0 -23
  60. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/fallback-on1/KeccakP-1600-times2-SnP.h +0 -45
  61. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/fallback-on1/KeccakP-1600-times2-on1.c +0 -37
  62. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on1/KeccakP-1600-times4-SnP.h +0 -45
  63. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on1/KeccakP-1600-times4-on1.c +0 -37
  64. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on2/KeccakP-1600-times4-SnP.h +0 -45
  65. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on2/KeccakP-1600-times4-on2.c +0 -38
  66. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on1/KeccakP-1600-times8-SnP.h +0 -45
  67. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on1/KeccakP-1600-times8-on1.c +0 -37
  68. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on2/KeccakP-1600-times8-SnP.h +0 -45
  69. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on2/KeccakP-1600-times8-on2.c +0 -38
  70. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on4/KeccakP-1600-times8-SnP.h +0 -45
  71. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on4/KeccakP-1600-times8-on4.c +0 -38
  72. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-SnP.h +0 -41
  73. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-armv6m-le-gcc.s +0 -446
  74. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-armv7m-le-gcc.s +0 -427
  75. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/AVR8/KeccakP-200-SnP.h +0 -41
  76. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/AVR8/KeccakP-200-avr8-fast.s +0 -647
  77. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/compact/KeccakP-200-SnP.h +0 -39
  78. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/compact/KeccakP-200-compact.c +0 -190
  79. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-SnP.h +0 -43
  80. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-reference.c +0 -416
  81. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-reference.h +0 -23
  82. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-SnP.h +0 -41
  83. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-armv6m-le-gcc.s +0 -458
  84. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-armv7m-le-gcc.s +0 -458
  85. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/AVR8/KeccakP-400-SnP.h +0 -41
  86. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/AVR8/KeccakP-400-avr8-fast.s +0 -728
  87. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-SnP.h +0 -43
  88. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-reference.c +0 -418
  89. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-reference.h +0 -23
  90. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-SnP.h +0 -42
  91. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv6m-le-gcc.s +0 -534
  92. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv7a-le-gcc.s +0 -527
  93. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv7m-le-gcc.s +0 -523
  94. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/AVR8/KeccakP-800-SnP.h +0 -42
  95. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/AVR8/KeccakP-800-avr8-fast.s +0 -929
  96. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/compact/KeccakP-800-SnP.h +0 -40
  97. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/compact/KeccakP-800-compact.c +0 -244
  98. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-SnP.h +0 -46
  99. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32-bis.macros +0 -184
  100. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32.c +0 -454
  101. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32.macros +0 -459
  102. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-unrolling-bis.macros +0 -83
  103. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-unrolling.macros +0 -88
  104. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/lcu2/KeccakP-800-opt32-config.h +0 -7
  105. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/lcua/KeccakP-800-opt32-config.h +0 -7
  106. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/u2/KeccakP-800-opt32-config.h +0 -7
  107. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/ua/KeccakP-800-opt32-config.h +0 -7
  108. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-SnP.h +0 -44
  109. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-reference.c +0 -441
  110. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-reference.h +0 -23
  111. data/ext/digest/kangarootwelve/XKCP/lib/low/common/PlSnP-Fallback.inc +0 -291
  112. data/ext/digest/kangarootwelve/XKCP/tests/UnitTests/displayIntermediateValues.c +0 -177
  113. data/ext/digest/kangarootwelve/XKCP/tests/UnitTests/displayIntermediateValues.h +0 -30
  114. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times2-SnP.h +0 -1
  115. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times2-on1.c +0 -1
  116. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times4-SnP.h +0 -1
  117. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times4-on1.c +0 -1
  118. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times8-SnP.h +0 -1
  119. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times8-on1.c +0 -1
  120. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-200-SnP.h +0 -1
  121. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-200-armv6m-le-gcc.S +0 -1
  122. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-400-SnP.h +0 -1
  123. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-400-armv6m-le-gcc.S +0 -1
  124. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-800-SnP.h +0 -1
  125. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-800-u2-armv6m-le-gcc.S +0 -1
  126. data/ext/digest/kangarootwelve/targets/armv6/PlSnP-Fallback.inc +0 -1
  127. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times2-SnP.h +0 -1
  128. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times2-on1.c +0 -1
  129. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times4-SnP.h +0 -1
  130. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times4-on1.c +0 -1
  131. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times8-SnP.h +0 -1
  132. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times8-on1.c +0 -1
  133. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-200-SnP.h +0 -1
  134. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-200-armv6m-le-gcc.S +0 -1
  135. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-400-SnP.h +0 -1
  136. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-400-armv6m-le-gcc.S +0 -1
  137. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-800-SnP.h +0 -1
  138. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-800-u2-armv6m-le-gcc.S +0 -1
  139. data/ext/digest/kangarootwelve/targets/armv6m/PlSnP-Fallback.inc +0 -1
  140. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times4-SnP.h +0 -1
  141. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times4-on2.c +0 -1
  142. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times8-SnP.h +0 -1
  143. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times8-on2.c +0 -1
  144. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-SnP.h +0 -1
  145. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-reference.c +0 -1
  146. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-reference.h +0 -1
  147. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-SnP.h +0 -1
  148. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-reference.c +0 -1
  149. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-reference.h +0 -1
  150. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-800-SnP.h +0 -1
  151. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-800-u2-armv7a-le-gcc.S +0 -1
  152. data/ext/digest/kangarootwelve/targets/armv7a/PlSnP-Fallback.inc +0 -1
  153. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times2-SnP.h +0 -1
  154. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times2-on1.c +0 -1
  155. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times4-SnP.h +0 -1
  156. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times4-on1.c +0 -1
  157. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times8-SnP.h +0 -1
  158. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times8-on1.c +0 -1
  159. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-200-SnP.h +0 -1
  160. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-200-armv7m-le-gcc.S +0 -1
  161. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-400-SnP.h +0 -1
  162. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-400-armv7m-le-gcc.S +0 -1
  163. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-800-SnP.h +0 -1
  164. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-800-u2-armv7m-le-gcc.S +0 -1
  165. data/ext/digest/kangarootwelve/targets/armv7m/PlSnP-Fallback.inc +0 -1
  166. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times2-SnP.h +0 -1
  167. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times2-on1.c +0 -1
  168. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times4-SnP.h +0 -1
  169. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times4-on1.c +0 -1
  170. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times8-SnP.h +0 -1
  171. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times8-on1.c +0 -1
  172. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-SnP.h +0 -1
  173. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-reference.c +0 -1
  174. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-reference.h +0 -1
  175. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-SnP.h +0 -1
  176. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-reference.c +0 -1
  177. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-reference.h +0 -1
  178. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-SnP.h +0 -1
  179. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32-bis.macros +0 -1
  180. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32-config.h +0 -1
  181. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32.c +0 -1
  182. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32.macros +0 -1
  183. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-unrolling-bis.macros +0 -1
  184. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-unrolling.macros +0 -1
  185. data/ext/digest/kangarootwelve/targets/armv8a/PlSnP-Fallback.inc +0 -1
  186. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times2-SnP.h +0 -1
  187. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times2-on1.c +0 -1
  188. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times4-SnP.h +0 -1
  189. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times4-on1.c +0 -1
  190. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times8-SnP.h +0 -1
  191. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times8-on1.c +0 -1
  192. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-200-SnP.h +0 -1
  193. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-200-avr8-fast.S +0 -1
  194. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-400-SnP.h +0 -1
  195. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-400-avr8-fast.S +0 -1
  196. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-800-SnP.h +0 -1
  197. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-800-avr8-fast.S +0 -1
  198. data/ext/digest/kangarootwelve/targets/avr8/PlSnP-Fallback.inc +0 -1
  199. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times4-SnP.h +0 -1
  200. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times4-on2.c +0 -1
  201. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times8-SnP.h +0 -1
  202. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times8-on2.c +0 -1
  203. data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-SnP.h +0 -1
  204. data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-reference.c +0 -1
  205. data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-reference.h +0 -1
  206. data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-SnP.h +0 -1
  207. data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-reference.c +0 -1
  208. data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-reference.h +0 -1
  209. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-SnP.h +0 -1
  210. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32-bis.macros +0 -1
  211. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32-config.h +0 -1
  212. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32.c +0 -1
  213. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32.macros +0 -1
  214. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-unrolling-bis.macros +0 -1
  215. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-unrolling.macros +0 -1
  216. data/ext/digest/kangarootwelve/targets/avx/PlSnP-Fallback.inc +0 -1
  217. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times8-SnP.h +0 -1
  218. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times8-on4.c +0 -1
  219. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-SnP.h +0 -1
  220. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-reference.c +0 -1
  221. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-reference.h +0 -1
  222. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-SnP.h +0 -1
  223. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-reference.c +0 -1
  224. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-reference.h +0 -1
  225. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-SnP.h +0 -1
  226. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32-bis.macros +0 -1
  227. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32-config.h +0 -1
  228. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32.c +0 -1
  229. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32.macros +0 -1
  230. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-unrolling-bis.macros +0 -1
  231. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-unrolling.macros +0 -1
  232. data/ext/digest/kangarootwelve/targets/avx2/PlSnP-Fallback.inc +0 -1
  233. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times8-SnP.h +0 -1
  234. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times8-on4.c +0 -1
  235. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-SnP.h +0 -1
  236. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-reference.c +0 -1
  237. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-reference.h +0 -1
  238. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-SnP.h +0 -1
  239. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-reference.c +0 -1
  240. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-reference.h +0 -1
  241. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-SnP.h +0 -1
  242. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32-bis.macros +0 -1
  243. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32-config.h +0 -1
  244. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32.c +0 -1
  245. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32.macros +0 -1
  246. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-unrolling-bis.macros +0 -1
  247. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-unrolling.macros +0 -1
  248. data/ext/digest/kangarootwelve/targets/avx2noasm/PlSnP-Fallback.inc +0 -1
  249. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-SnP.h +0 -1
  250. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-reference.c +0 -1
  251. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-reference.h +0 -1
  252. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-SnP.h +0 -1
  253. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-reference.c +0 -1
  254. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-reference.h +0 -1
  255. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-SnP.h +0 -1
  256. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32-bis.macros +0 -1
  257. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32-config.h +0 -1
  258. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32.c +0 -1
  259. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32.macros +0 -1
  260. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-unrolling-bis.macros +0 -1
  261. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-unrolling.macros +0 -1
  262. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-SnP.h +0 -1
  263. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-reference.c +0 -1
  264. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-reference.h +0 -1
  265. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-SnP.h +0 -1
  266. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-reference.c +0 -1
  267. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-reference.h +0 -1
  268. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-SnP.h +0 -1
  269. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32-bis.macros +0 -1
  270. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32-config.h +0 -1
  271. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32.c +0 -1
  272. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32.macros +0 -1
  273. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-unrolling-bis.macros +0 -1
  274. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-unrolling.macros +0 -1
  275. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times2-SnP.h +0 -1
  276. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times2-on1.c +0 -1
  277. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times4-SnP.h +0 -1
  278. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times4-on1.c +0 -1
  279. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times8-SnP.h +0 -1
  280. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times8-on1.c +0 -1
  281. data/ext/digest/kangarootwelve/targets/compact/KeccakP-200-SnP.h +0 -1
  282. data/ext/digest/kangarootwelve/targets/compact/KeccakP-200-compact.c +0 -1
  283. data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-SnP.h +0 -1
  284. data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-reference.c +0 -1
  285. data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-reference.h +0 -1
  286. data/ext/digest/kangarootwelve/targets/compact/KeccakP-800-SnP.h +0 -1
  287. data/ext/digest/kangarootwelve/targets/compact/KeccakP-800-compact.c +0 -1
  288. data/ext/digest/kangarootwelve/targets/compact/PlSnP-Fallback.inc +0 -1
  289. data/ext/digest/kangarootwelve/targets/defs +0 -2
  290. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times2-SnP.h +0 -1
  291. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times2-on1.c +0 -1
  292. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times4-SnP.h +0 -1
  293. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times4-on1.c +0 -1
  294. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times8-SnP.h +0 -1
  295. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times8-on1.c +0 -1
  296. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-SnP.h +0 -1
  297. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-reference.c +0 -1
  298. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-reference.h +0 -1
  299. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-SnP.h +0 -1
  300. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-reference.c +0 -1
  301. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-reference.h +0 -1
  302. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-SnP.h +0 -1
  303. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32-bis.macros +0 -1
  304. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32-config.h +0 -1
  305. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32.c +0 -1
  306. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32.macros +0 -1
  307. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-unrolling-bis.macros +0 -1
  308. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-unrolling.macros +0 -1
  309. data/ext/digest/kangarootwelve/targets/generic32/PlSnP-Fallback.inc +0 -1
  310. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times2-SnP.h +0 -1
  311. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times2-on1.c +0 -1
  312. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times4-SnP.h +0 -1
  313. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times4-on1.c +0 -1
  314. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times8-SnP.h +0 -1
  315. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times8-on1.c +0 -1
  316. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-SnP.h +0 -1
  317. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-reference.c +0 -1
  318. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-reference.h +0 -1
  319. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-SnP.h +0 -1
  320. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-reference.c +0 -1
  321. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-reference.h +0 -1
  322. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-SnP.h +0 -1
  323. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32-bis.macros +0 -1
  324. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32-config.h +0 -1
  325. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32.c +0 -1
  326. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32.macros +0 -1
  327. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-unrolling-bis.macros +0 -1
  328. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-unrolling.macros +0 -1
  329. data/ext/digest/kangarootwelve/targets/generic32lc/PlSnP-Fallback.inc +0 -1
  330. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times2-SnP.h +0 -1
  331. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times2-on1.c +0 -1
  332. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times4-SnP.h +0 -1
  333. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times4-on1.c +0 -1
  334. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times8-SnP.h +0 -1
  335. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times8-on1.c +0 -1
  336. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-SnP.h +0 -1
  337. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-reference.c +0 -1
  338. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-reference.h +0 -1
  339. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-SnP.h +0 -1
  340. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-reference.c +0 -1
  341. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-reference.h +0 -1
  342. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-SnP.h +0 -1
  343. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32-bis.macros +0 -1
  344. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32-config.h +0 -1
  345. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32.c +0 -1
  346. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32.macros +0 -1
  347. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-unrolling-bis.macros +0 -1
  348. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-unrolling.macros +0 -1
  349. data/ext/digest/kangarootwelve/targets/generic64/PlSnP-Fallback.inc +0 -1
  350. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times2-SnP.h +0 -1
  351. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times2-on1.c +0 -1
  352. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times4-SnP.h +0 -1
  353. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times4-on1.c +0 -1
  354. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times8-SnP.h +0 -1
  355. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times8-on1.c +0 -1
  356. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-SnP.h +0 -1
  357. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-reference.c +0 -1
  358. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-reference.h +0 -1
  359. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-SnP.h +0 -1
  360. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-reference.c +0 -1
  361. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-reference.h +0 -1
  362. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-SnP.h +0 -1
  363. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32-bis.macros +0 -1
  364. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32-config.h +0 -1
  365. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32.c +0 -1
  366. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32.macros +0 -1
  367. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-unrolling-bis.macros +0 -1
  368. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-unrolling.macros +0 -1
  369. data/ext/digest/kangarootwelve/targets/generic64lc/PlSnP-Fallback.inc +0 -1
  370. data/ext/digest/kangarootwelve/targets/reference/KangarooTwelve.c +0 -1
  371. data/ext/digest/kangarootwelve/targets/reference/KangarooTwelve.h +0 -1
  372. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-SnP.h +0 -1
  373. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-reference.c +0 -1
  374. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-reference.h +0 -1
  375. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times2-SnP.h +0 -1
  376. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times2-on1.c +0 -1
  377. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times4-SnP.h +0 -1
  378. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times4-on1.c +0 -1
  379. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times8-SnP.h +0 -1
  380. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times8-on1.c +0 -1
  381. data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-SnP.h +0 -1
  382. data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-reference.c +0 -1
  383. data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-reference.h +0 -1
  384. data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-SnP.h +0 -1
  385. data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-reference.c +0 -1
  386. data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-reference.h +0 -1
  387. data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-SnP.h +0 -1
  388. data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-reference.c +0 -1
  389. data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-reference.h +0 -1
  390. data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.c +0 -1
  391. data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.h +0 -1
  392. data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.inc +0 -1
  393. data/ext/digest/kangarootwelve/targets/reference/Phases.h +0 -1
  394. data/ext/digest/kangarootwelve/targets/reference/PlSnP-Fallback.inc +0 -1
  395. data/ext/digest/kangarootwelve/targets/reference/TurboSHAKE.c +0 -1
  396. data/ext/digest/kangarootwelve/targets/reference/TurboSHAKE.h +0 -1
  397. data/ext/digest/kangarootwelve/targets/reference/align.h +0 -1
  398. data/ext/digest/kangarootwelve/targets/reference/brg_endian.h +0 -1
  399. data/ext/digest/kangarootwelve/targets/reference/config.h +0 -1
  400. data/ext/digest/kangarootwelve/targets/reference/displayIntermediateValues.c +0 -1
  401. data/ext/digest/kangarootwelve/targets/reference/displayIntermediateValues.h +0 -1
  402. data/ext/digest/kangarootwelve/targets/reference/ext.c +0 -1
  403. data/ext/digest/kangarootwelve/targets/reference/utils.h +0 -1
  404. data/ext/digest/kangarootwelve/targets/reference32bits/KangarooTwelve.c +0 -1
  405. data/ext/digest/kangarootwelve/targets/reference32bits/KangarooTwelve.h +0 -1
  406. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-SnP.h +0 -1
  407. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-reference.h +0 -1
  408. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-reference32BI.c +0 -1
  409. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times2-SnP.h +0 -1
  410. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times2-on1.c +0 -1
  411. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times4-SnP.h +0 -1
  412. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times4-on1.c +0 -1
  413. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times8-SnP.h +0 -1
  414. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times8-on1.c +0 -1
  415. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-SnP.h +0 -1
  416. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-reference.c +0 -1
  417. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-reference.h +0 -1
  418. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-SnP.h +0 -1
  419. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-reference.c +0 -1
  420. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-reference.h +0 -1
  421. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-SnP.h +0 -1
  422. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-reference.c +0 -1
  423. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-reference.h +0 -1
  424. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.c +0 -1
  425. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.h +0 -1
  426. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.inc +0 -1
  427. data/ext/digest/kangarootwelve/targets/reference32bits/Phases.h +0 -1
  428. data/ext/digest/kangarootwelve/targets/reference32bits/PlSnP-Fallback.inc +0 -1
  429. data/ext/digest/kangarootwelve/targets/reference32bits/TurboSHAKE.c +0 -1
  430. data/ext/digest/kangarootwelve/targets/reference32bits/TurboSHAKE.h +0 -1
  431. data/ext/digest/kangarootwelve/targets/reference32bits/align.h +0 -1
  432. data/ext/digest/kangarootwelve/targets/reference32bits/brg_endian.h +0 -1
  433. data/ext/digest/kangarootwelve/targets/reference32bits/config.h +0 -1
  434. data/ext/digest/kangarootwelve/targets/reference32bits/displayIntermediateValues.c +0 -1
  435. data/ext/digest/kangarootwelve/targets/reference32bits/displayIntermediateValues.h +0 -1
  436. data/ext/digest/kangarootwelve/targets/reference32bits/ext.c +0 -1
  437. data/ext/digest/kangarootwelve/targets/reference32bits/utils.h +0 -1
  438. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times4-SnP.h +0 -1
  439. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times4-on2.c +0 -1
  440. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times8-SnP.h +0 -1
  441. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times8-on2.c +0 -1
  442. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-SnP.h +0 -1
  443. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-reference.c +0 -1
  444. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-reference.h +0 -1
  445. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-SnP.h +0 -1
  446. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-reference.c +0 -1
  447. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-reference.h +0 -1
  448. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-SnP.h +0 -1
  449. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32-bis.macros +0 -1
  450. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32-config.h +0 -1
  451. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32.c +0 -1
  452. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32.macros +0 -1
  453. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-unrolling-bis.macros +0 -1
  454. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-unrolling.macros +0 -1
  455. data/ext/digest/kangarootwelve/targets/ssse3/PlSnP-Fallback.inc +0 -1
  456. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times4-SnP.h +0 -1
  457. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times4-on2.c +0 -1
  458. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times8-SnP.h +0 -1
  459. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times8-on2.c +0 -1
  460. data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-SnP.h +0 -1
  461. data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-reference.c +0 -1
  462. data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-reference.h +0 -1
  463. data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-SnP.h +0 -1
  464. data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-reference.c +0 -1
  465. data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-reference.h +0 -1
  466. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-SnP.h +0 -1
  467. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32-bis.macros +0 -1
  468. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32-config.h +0 -1
  469. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32.c +0 -1
  470. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32.macros +0 -1
  471. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-unrolling-bis.macros +0 -1
  472. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-unrolling.macros +0 -1
  473. data/ext/digest/kangarootwelve/targets/xop/PlSnP-Fallback.inc +0 -1
@@ -1,44 +0,0 @@
1
- /*
2
- The eXtended Keccak Code Package (XKCP)
3
- https://github.com/XKCP/XKCP
4
-
5
- The Keccak-p permutations, designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche.
6
-
7
- Implementation by the designers, hereby denoted as "the implementer".
8
-
9
- For more information, feedback or questions, please refer to the Keccak Team website:
10
- https://keccak.team/
11
-
12
- To the extent possible under law, the implementer has waived all copyright
13
- and related or neighboring rights to the source code in this file.
14
- http://creativecommons.org/publicdomain/zero/1.0/
15
-
16
- ---
17
-
18
- Please refer to SnP-documentation.h for more details.
19
- */
20
-
21
- #ifndef _KeccakP_1600_SnP_h_
22
- #define _KeccakP_1600_SnP_h_
23
-
24
- #define KeccakP1600_implementation "64-bit reference implementation"
25
- #define KeccakP1600_stateSizeInBytes 200
26
- #define KeccakP1600_stateAlignment 8
27
-
28
- #ifdef KeccakReference
29
- void KeccakP1600_StaticInitialize( void );
30
- #else
31
- #define KeccakP1600_StaticInitialize()
32
- #endif
33
- void KeccakP1600_Initialize(void *state);
34
- void KeccakP1600_AddByte(void *state, unsigned char data, unsigned int offset);
35
- void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length);
36
- void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length);
37
- void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount);
38
- void KeccakP1600_Permute_Nrounds(void *state, unsigned int nrounds);
39
- void KeccakP1600_Permute_12rounds(void *state);
40
- void KeccakP1600_Permute_24rounds(void *state);
41
- void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned int length);
42
- void KeccakP1600_ExtractAndAddBytes(const void *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length);
43
-
44
- #endif
@@ -1,444 +0,0 @@
1
- /*
2
- The eXtended Keccak Code Package (XKCP)
3
- https://github.com/XKCP/XKCP
4
-
5
- The Keccak-p permutations, designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche.
6
-
7
- Implementation by the designers, hereby denoted as "the implementer".
8
-
9
- For more information, feedback or questions, please refer to the Keccak Team website:
10
- https://keccak.team/
11
-
12
- To the extent possible under law, the implementer has waived all copyright
13
- and related or neighboring rights to the source code in this file.
14
- http://creativecommons.org/publicdomain/zero/1.0/
15
-
16
- ---
17
-
18
- This file implements Keccak-p[1600] in a SnP-compatible way.
19
- Please refer to SnP-documentation.h for more details.
20
-
21
- This implementation comes with KeccakP-1600-SnP.h in the same folder.
22
- Please refer to LowLevel.build for the exact list of other files it must be combined with.
23
- */
24
-
25
- #if DEBUG
26
- #include <assert.h>
27
- #endif
28
- #include <stdint.h>
29
- #include <stdio.h>
30
- #include <stdlib.h>
31
- #include <string.h>
32
- #include "brg_endian.h"
33
- #ifdef KeccakReference
34
- #include "displayIntermediateValues.h"
35
- #endif
36
-
37
- typedef uint64_t tKeccakLane;
38
-
39
- #define maxNrRounds 24
40
- #define nrLanes 25
41
- #define index(x, y) (((x)%5)+5*((y)%5))
42
-
43
- #ifdef KeccakReference
44
-
45
- static tKeccakLane KeccakRoundConstants[maxNrRounds];
46
- static unsigned int KeccakRhoOffsets[nrLanes];
47
-
48
- /* ---------------------------------------------------------------- */
49
-
50
- void KeccakP1600_InitializeRoundConstants(void);
51
- void KeccakP1600_InitializeRhoOffsets(void);
52
- static int LFSR86540(uint8_t *LFSR);
53
-
54
- void KeccakP1600_StaticInitialize(void)
55
- {
56
- if (sizeof(tKeccakLane) != 8) {
57
- printf("tKeccakLane should be 64-bit wide\n");
58
- abort();
59
- }
60
- KeccakP1600_InitializeRoundConstants();
61
- KeccakP1600_InitializeRhoOffsets();
62
- }
63
-
64
- void KeccakP1600_InitializeRoundConstants(void)
65
- {
66
- uint8_t LFSRstate = 0x01;
67
- unsigned int i, j, bitPosition;
68
-
69
- for(i=0; i<maxNrRounds; i++) {
70
- KeccakRoundConstants[i] = 0;
71
- for(j=0; j<7; j++) {
72
- bitPosition = (1<<j)-1; /* 2^j-1 */
73
- if (LFSR86540(&LFSRstate))
74
- KeccakRoundConstants[i] ^= (tKeccakLane)1<<bitPosition;
75
- }
76
- }
77
- }
78
-
79
- void KeccakP1600_InitializeRhoOffsets(void)
80
- {
81
- unsigned int x, y, t, newX, newY;
82
-
83
- KeccakRhoOffsets[index(0, 0)] = 0;
84
- x = 1;
85
- y = 0;
86
- for(t=0; t<24; t++) {
87
- KeccakRhoOffsets[index(x, y)] = ((t+1)*(t+2)/2) % 64;
88
- newX = (0*x+1*y) % 5;
89
- newY = (2*x+3*y) % 5;
90
- x = newX;
91
- y = newY;
92
- }
93
- }
94
-
95
- static int LFSR86540(uint8_t *LFSR)
96
- {
97
- int result = ((*LFSR) & 0x01) != 0;
98
- if (((*LFSR) & 0x80) != 0)
99
- /* Primitive polynomial over GF(2): x^8+x^6+x^5+x^4+1 */
100
- (*LFSR) = ((*LFSR) << 1) ^ 0x71;
101
- else
102
- (*LFSR) <<= 1;
103
- return result;
104
- }
105
-
106
- #else
107
-
108
- static const tKeccakLane KeccakRoundConstants[maxNrRounds] =
109
- {
110
- 0x0000000000000001,
111
- 0x0000000000008082,
112
- 0x800000000000808a,
113
- 0x8000000080008000,
114
- 0x000000000000808b,
115
- 0x0000000080000001,
116
- 0x8000000080008081,
117
- 0x8000000000008009,
118
- 0x000000000000008a,
119
- 0x0000000000000088,
120
- 0x0000000080008009,
121
- 0x000000008000000a,
122
- 0x000000008000808b,
123
- 0x800000000000008b,
124
- 0x8000000000008089,
125
- 0x8000000000008003,
126
- 0x8000000000008002,
127
- 0x8000000000000080,
128
- 0x000000000000800a,
129
- 0x800000008000000a,
130
- 0x8000000080008081,
131
- 0x8000000000008080,
132
- 0x0000000080000001,
133
- 0x8000000080008008,
134
- };
135
-
136
- static const unsigned int KeccakRhoOffsets[nrLanes] =
137
- {
138
- 0, 1, 62, 28, 27, 36, 44, 6, 55, 20, 3, 10, 43, 25, 39, 41, 45, 15, 21, 8, 18, 2, 61, 56, 14
139
- };
140
-
141
- #endif
142
-
143
- /* ---------------------------------------------------------------- */
144
-
145
- void KeccakP1600_Initialize(void *state)
146
- {
147
- memset(state, 0, 1600/8);
148
- }
149
-
150
- /* ---------------------------------------------------------------- */
151
-
152
- void KeccakP1600_AddByte(void *state, unsigned char byte, unsigned int offset)
153
- {
154
- #if DEBUG
155
- assert(offset < 200);
156
- #endif
157
- ((unsigned char *)state)[offset] ^= byte;
158
- }
159
-
160
- /* ---------------------------------------------------------------- */
161
-
162
- void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
163
- {
164
- unsigned int i;
165
-
166
- #if DEBUG
167
- assert(offset < 200);
168
- assert(offset+length <= 200);
169
- #endif
170
- for(i=0; i<length; i++)
171
- ((unsigned char *)state)[offset+i] ^= data[i];
172
- }
173
-
174
- /* ---------------------------------------------------------------- */
175
-
176
- void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
177
- {
178
- #if DEBUG
179
- assert(offset < 200);
180
- assert(offset+length <= 200);
181
- #endif
182
- memcpy((unsigned char*)state+offset, data, length);
183
- }
184
-
185
- /* ---------------------------------------------------------------- */
186
-
187
- void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount)
188
- {
189
- #if DEBUG
190
- assert(byteCount <= 200);
191
- #endif
192
- memset(state, 0, byteCount);
193
- }
194
-
195
- /* ---------------------------------------------------------------- */
196
-
197
- #if (PLATFORM_BYTE_ORDER != IS_LITTLE_ENDIAN)
198
- static void fromBytesToWords(tKeccakLane *stateAsWords, const unsigned char *state);
199
- static void fromWordsToBytes(unsigned char *state, const tKeccakLane *stateAsWords);
200
- #endif
201
- void KeccakP1600OnWords(tKeccakLane *state, unsigned int nrRounds);
202
- void KeccakP1600Round(tKeccakLane *state, unsigned int indexRound);
203
- static void theta(tKeccakLane *A);
204
- static void rho(tKeccakLane *A);
205
- static void pi(tKeccakLane *A);
206
- static void chi(tKeccakLane *A);
207
- static void iota(tKeccakLane *A, unsigned int indexRound);
208
-
209
- void KeccakP1600_Permute_Nrounds(void *state, unsigned int nrounds)
210
- {
211
- #if (PLATFORM_BYTE_ORDER != IS_LITTLE_ENDIAN)
212
- tKeccakLane stateAsWords[1600/64];
213
- #endif
214
-
215
- #ifdef KeccakReference
216
- displayStateAsBytes(1, "Input of permutation", (const unsigned char *)state, 1600);
217
- #endif
218
- #if (PLATFORM_BYTE_ORDER == IS_LITTLE_ENDIAN)
219
- KeccakP1600OnWords((tKeccakLane*)state, nrounds);
220
- #else
221
- fromBytesToWords(stateAsWords, (const unsigned char *)state);
222
- KeccakP1600OnWords(stateAsWords, nrounds);
223
- fromWordsToBytes((unsigned char *)state, stateAsWords);
224
- #endif
225
- #ifdef KeccakReference
226
- displayStateAsBytes(1, "State after permutation", (const unsigned char *)state, 1600);
227
- #endif
228
- }
229
-
230
- void KeccakP1600_Permute_12rounds(void *state)
231
- {
232
- #if (PLATFORM_BYTE_ORDER != IS_LITTLE_ENDIAN)
233
- tKeccakLane stateAsWords[1600/64];
234
- #endif
235
-
236
- #ifdef KeccakReference
237
- displayStateAsBytes(1, "Input of permutation", (const unsigned char *)state, 1600);
238
- #endif
239
- #if (PLATFORM_BYTE_ORDER == IS_LITTLE_ENDIAN)
240
- KeccakP1600OnWords((tKeccakLane*)state, 12);
241
- #else
242
- fromBytesToWords(stateAsWords, (const unsigned char *)state);
243
- KeccakP1600OnWords(stateAsWords, 12);
244
- fromWordsToBytes((unsigned char *)state, stateAsWords);
245
- #endif
246
- #ifdef KeccakReference
247
- displayStateAsBytes(1, "State after permutation", (const unsigned char *)state, 1600);
248
- #endif
249
- }
250
-
251
- void KeccakP1600_Permute_24rounds(void *state)
252
- {
253
- #if (PLATFORM_BYTE_ORDER != IS_LITTLE_ENDIAN)
254
- tKeccakLane stateAsWords[1600/64];
255
- #endif
256
-
257
- #ifdef KeccakReference
258
- displayStateAsBytes(1, "Input of permutation", (const unsigned char *)state, 1600);
259
- #endif
260
- #if (PLATFORM_BYTE_ORDER == IS_LITTLE_ENDIAN)
261
- KeccakP1600OnWords((tKeccakLane*)state, 24);
262
- #else
263
- fromBytesToWords(stateAsWords, (const unsigned char *)state);
264
- KeccakP1600OnWords(stateAsWords, 24);
265
- fromWordsToBytes((unsigned char *)state, stateAsWords);
266
- #endif
267
- #ifdef KeccakReference
268
- displayStateAsBytes(1, "State after permutation", (const unsigned char *)state, 1600);
269
- #endif
270
- }
271
-
272
- #if (PLATFORM_BYTE_ORDER != IS_LITTLE_ENDIAN)
273
- static void fromBytesToWords(tKeccakLane *stateAsWords, const unsigned char *state)
274
- {
275
- unsigned int i, j;
276
-
277
- for(i=0; i<nrLanes; i++) {
278
- stateAsWords[i] = 0;
279
- for(j=0; j<(64/8); j++)
280
- stateAsWords[i] |= (tKeccakLane)(state[i*(64/8)+j]) << (8*j);
281
- }
282
- }
283
-
284
- static void fromWordsToBytes(unsigned char *state, const tKeccakLane *stateAsWords)
285
- {
286
- unsigned int i, j;
287
-
288
- for(i=0; i<nrLanes; i++)
289
- for(j=0; j<(64/8); j++)
290
- state[i*(64/8)+j] = (unsigned char)((stateAsWords[i] >> (8*j)) & 0xFF);
291
- }
292
- #endif
293
-
294
- void KeccakP1600OnWords(tKeccakLane *state, unsigned int nrRounds)
295
- {
296
- unsigned int i;
297
-
298
- #ifdef KeccakReference
299
- displayStateAsLanes(3, "Same, with lanes as 64-bit words", state, 1600);
300
- #endif
301
-
302
- for(i=(maxNrRounds-nrRounds); i<maxNrRounds; i++)
303
- KeccakP1600Round(state, i);
304
- }
305
-
306
- void KeccakP1600Round(tKeccakLane *state, unsigned int indexRound)
307
- {
308
- #ifdef KeccakReference
309
- displayRoundNumber(3, indexRound);
310
- #endif
311
-
312
- theta(state);
313
- #ifdef KeccakReference
314
- displayStateAsLanes(3, "After theta", state, 1600);
315
- #endif
316
-
317
- rho(state);
318
- #ifdef KeccakReference
319
- displayStateAsLanes(3, "After rho", state, 1600);
320
- #endif
321
-
322
- pi(state);
323
- #ifdef KeccakReference
324
- displayStateAsLanes(3, "After pi", state, 1600);
325
- #endif
326
-
327
- chi(state);
328
- #ifdef KeccakReference
329
- displayStateAsLanes(3, "After chi", state, 1600);
330
- #endif
331
-
332
- iota(state, indexRound);
333
- #ifdef KeccakReference
334
- displayStateAsLanes(3, "After iota", state, 1600);
335
- #endif
336
- }
337
-
338
- #define ROL64(a, offset) ((offset != 0) ? ((((tKeccakLane)a) << offset) ^ (((tKeccakLane)a) >> (64-offset))) : a)
339
-
340
- static void theta(tKeccakLane *A)
341
- {
342
- unsigned int x, y;
343
- tKeccakLane C[5], D[5];
344
-
345
- for(x=0; x<5; x++) {
346
- C[x] = 0;
347
- for(y=0; y<5; y++)
348
- C[x] ^= A[index(x, y)];
349
- }
350
- for(x=0; x<5; x++)
351
- D[x] = ROL64(C[(x+1)%5], 1) ^ C[(x+4)%5];
352
- for(x=0; x<5; x++)
353
- for(y=0; y<5; y++)
354
- A[index(x, y)] ^= D[x];
355
- }
356
-
357
- static void rho(tKeccakLane *A)
358
- {
359
- unsigned int x, y;
360
-
361
- for(x=0; x<5; x++) for(y=0; y<5; y++)
362
- A[index(x, y)] = ROL64(A[index(x, y)], KeccakRhoOffsets[index(x, y)]);
363
- }
364
-
365
- static void pi(tKeccakLane *A)
366
- {
367
- unsigned int x, y;
368
- tKeccakLane tempA[25];
369
-
370
- for(x=0; x<5; x++) for(y=0; y<5; y++)
371
- tempA[index(x, y)] = A[index(x, y)];
372
- for(x=0; x<5; x++) for(y=0; y<5; y++)
373
- A[index(0*x+1*y, 2*x+3*y)] = tempA[index(x, y)];
374
- }
375
-
376
- static void chi(tKeccakLane *A)
377
- {
378
- unsigned int x, y;
379
- tKeccakLane C[5];
380
-
381
- for(y=0; y<5; y++) {
382
- for(x=0; x<5; x++)
383
- C[x] = A[index(x, y)] ^ ((~A[index(x+1, y)]) & A[index(x+2, y)]);
384
- for(x=0; x<5; x++)
385
- A[index(x, y)] = C[x];
386
- }
387
- }
388
-
389
- static void iota(tKeccakLane *A, unsigned int indexRound)
390
- {
391
- A[index(0, 0)] ^= KeccakRoundConstants[indexRound];
392
- }
393
-
394
- /* ---------------------------------------------------------------- */
395
-
396
- void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned int length)
397
- {
398
- #if DEBUG
399
- assert(offset < 200);
400
- assert(offset+length <= 200);
401
- #endif
402
- memcpy(data, (unsigned char*)state+offset, length);
403
- }
404
-
405
- /* ---------------------------------------------------------------- */
406
-
407
- void KeccakP1600_ExtractAndAddBytes(const void *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length)
408
- {
409
- unsigned int i;
410
-
411
- #if DEBUG
412
- assert(offset < 200);
413
- assert(offset+length <= 200);
414
- #endif
415
- for(i=0; i<length; i++)
416
- output[i] = input[i] ^ ((unsigned char *)state)[offset+i];
417
- }
418
-
419
- /* ---------------------------------------------------------------- */
420
-
421
- void KeccakP1600_DisplayRoundConstants(FILE *f)
422
- {
423
- unsigned int i;
424
-
425
- for(i=0; i<maxNrRounds; i++) {
426
- fprintf(f, "RC[%02i][0][0] = ", i);
427
- fprintf(f, "%08X", (unsigned int)(KeccakRoundConstants[i] >> 32));
428
- fprintf(f, "%08X", (unsigned int)(KeccakRoundConstants[i] & 0xFFFFFFFFULL));
429
- fprintf(f, "\n");
430
- }
431
- fprintf(f, "\n");
432
- }
433
-
434
- void KeccakP1600_DisplayRhoOffsets(FILE *f)
435
- {
436
- unsigned int x, y;
437
-
438
- for(y=0; y<5; y++) for(x=0; x<5; x++) {
439
- fprintf(f, "RhoOffset[%i][%i] = ", x, y);
440
- fprintf(f, "%2i", KeccakRhoOffsets[index(x, y)]);
441
- fprintf(f, "\n");
442
- }
443
- fprintf(f, "\n");
444
- }
@@ -1,23 +0,0 @@
1
- /*
2
- The eXtended Keccak Code Package (XKCP)
3
- https://github.com/XKCP/XKCP
4
-
5
- The Keccak-p permutations, designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche.
6
-
7
- Implementation by the designers, hereby denoted as "the implementer".
8
-
9
- For more information, feedback or questions, please refer to the Keccak Team website:
10
- https://keccak.team/
11
-
12
- To the extent possible under law, the implementer has waived all copyright
13
- and related or neighboring rights to the source code in this file.
14
- http://creativecommons.org/publicdomain/zero/1.0/
15
- */
16
-
17
- #ifndef _KeccakP_1600_reference_h_
18
- #define _KeccakP_1600_reference_h_
19
-
20
- void KeccakP1600_DisplayRoundConstants(FILE *f);
21
- void KeccakP1600_DisplayRhoOffsets(FILE *f);
22
-
23
- #endif
@@ -1,45 +0,0 @@
1
- /*
2
- The Keccak-p permutations, designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche.
3
-
4
- Implementation by Gilles Van Assche, hereby denoted as "the implementer".
5
-
6
- For more information, feedback or questions, please refer to the Keccak Team website:
7
- https://keccak.team/
8
-
9
- To the extent possible under law, the implementer has waived all copyright
10
- and related or neighboring rights to the source code in this file.
11
- http://creativecommons.org/publicdomain/zero/1.0/
12
-
13
- ---
14
-
15
- Please refer to PlSnP-documentation.h for more details.
16
- */
17
-
18
- #ifndef _KeccakP_1600_times2_SnP_h_
19
- #define _KeccakP_1600_times2_SnP_h_
20
-
21
- #include "KeccakP-1600-SnP.h"
22
-
23
- #define KeccakP1600times2_implementation "fallback on serial implementation (" KeccakP1600_implementation ")"
24
- #define KeccakP1600times2_statesSizeInBytes (((KeccakP1600_stateSizeInBytes+(KeccakP1600_stateAlignment-1))/KeccakP1600_stateAlignment)*KeccakP1600_stateAlignment*2)
25
- #define KeccakP1600times2_statesAlignment KeccakP1600_stateAlignment
26
- #define KeccakP1600times2_isFallback
27
-
28
- void KeccakP1600times2_StaticInitialize( void );
29
- void KeccakP1600times2_InitializeAll(void *states);
30
- void KeccakP1600times2_AddByte(void *states, unsigned int instanceIndex, unsigned char data, unsigned int offset);
31
- void KeccakP1600times2_AddBytes(void *states, unsigned int instanceIndex, const unsigned char *data, unsigned int offset, unsigned int length);
32
- void KeccakP1600times2_AddLanesAll(void *states, const unsigned char *data, unsigned int laneCount, unsigned int laneOffset);
33
- void KeccakP1600times2_OverwriteBytes(void *states, unsigned int instanceIndex, const unsigned char *data, unsigned int offset, unsigned int length);
34
- void KeccakP1600times2_OverwriteLanesAll(void *states, const unsigned char *data, unsigned int laneCount, unsigned int laneOffset);
35
- void KeccakP1600times2_OverwriteWithZeroes(void *states, unsigned int instanceIndex, unsigned int byteCount);
36
- void KeccakP1600times2_PermuteAll_4rounds(void *states);
37
- void KeccakP1600times2_PermuteAll_6rounds(void *states);
38
- void KeccakP1600times2_PermuteAll_12rounds(void *states);
39
- void KeccakP1600times2_PermuteAll_24rounds(void *states);
40
- void KeccakP1600times2_ExtractBytes(const void *states, unsigned int instanceIndex, unsigned char *data, unsigned int offset, unsigned int length);
41
- void KeccakP1600times2_ExtractLanesAll(const void *states, unsigned char *data, unsigned int laneCount, unsigned int laneOffset);
42
- void KeccakP1600times2_ExtractAndAddBytes(const void *states, unsigned int instanceIndex, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length);
43
- void KeccakP1600times2_ExtractAndAddLanesAll(const void *states, const unsigned char *input, unsigned char *output, unsigned int laneCount, unsigned int laneOffset);
44
-
45
- #endif
@@ -1,37 +0,0 @@
1
- /*
2
- The Keccak-p permutations, designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche.
3
-
4
- Implementation by Gilles Van Assche, hereby denoted as "the implementer".
5
-
6
- For more information, feedback or questions, please refer to the Keccak Team website:
7
- https://keccak.team/
8
-
9
- To the extent possible under law, the implementer has waived all copyright
10
- and related or neighboring rights to the source code in this file.
11
- http://creativecommons.org/publicdomain/zero/1.0/
12
-
13
- ---
14
-
15
- This file implements Keccak-p[1600]×2 in a PlSnP-compatible way.
16
- Please refer to PlSnP-documentation.h for more details.
17
-
18
- This implementation comes with KeccakP-1600-times2-SnP.h in the same folder.
19
- Please refer to LowLevel.build for the exact list of other files it must be combined with.
20
- */
21
-
22
- #include "KeccakP-1600-SnP.h"
23
-
24
- #define prefix KeccakP1600times2
25
- #define PlSnP_baseParallelism 1
26
- #define PlSnP_targetParallelism 2
27
- #define SnP_laneLengthInBytes 8
28
- #define SnP KeccakP1600
29
- #define SnP_Permute KeccakP1600_Permute_24rounds
30
- #define SnP_Permute_12rounds KeccakP1600_Permute_12rounds
31
- #define SnP_Permute_Nrounds KeccakP1600_Permute_Nrounds
32
- #define PlSnP_PermuteAll KeccakP1600times2_PermuteAll_24rounds
33
- #define PlSnP_PermuteAll_12rounds KeccakP1600times2_PermuteAll_12rounds
34
- #define PlSnP_PermuteAll_6rounds KeccakP1600times2_PermuteAll_6rounds
35
- #define PlSnP_PermuteAll_4rounds KeccakP1600times2_PermuteAll_4rounds
36
-
37
- #include "PlSnP-Fallback.inc"
@@ -1,45 +0,0 @@
1
- /*
2
- The Keccak-p permutations, designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche.
3
-
4
- Implementation by Gilles Van Assche, hereby denoted as "the implementer".
5
-
6
- For more information, feedback or questions, please refer to the Keccak Team website:
7
- https://keccak.team/
8
-
9
- To the extent possible under law, the implementer has waived all copyright
10
- and related or neighboring rights to the source code in this file.
11
- http://creativecommons.org/publicdomain/zero/1.0/
12
-
13
- ---
14
-
15
- Please refer to PlSnP-documentation.h for more details.
16
- */
17
-
18
- #ifndef _KeccakP_1600_times4_SnP_h_
19
- #define _KeccakP_1600_times4_SnP_h_
20
-
21
- #include "KeccakP-1600-SnP.h"
22
-
23
- #define KeccakP1600times4_implementation "fallback on serial implementation (" KeccakP1600_implementation ")"
24
- #define KeccakP1600times4_statesSizeInBytes (((KeccakP1600_stateSizeInBytes+(KeccakP1600_stateAlignment-1))/KeccakP1600_stateAlignment)*KeccakP1600_stateAlignment*4)
25
- #define KeccakP1600times4_statesAlignment KeccakP1600_stateAlignment
26
- #define KeccakP1600times4_isFallback
27
-
28
- void KeccakP1600times4_StaticInitialize( void );
29
- void KeccakP1600times4_InitializeAll(void *states);
30
- void KeccakP1600times4_AddByte(void *states, unsigned int instanceIndex, unsigned char data, unsigned int offset);
31
- void KeccakP1600times4_AddBytes(void *states, unsigned int instanceIndex, const unsigned char *data, unsigned int offset, unsigned int length);
32
- void KeccakP1600times4_AddLanesAll(void *states, const unsigned char *data, unsigned int laneCount, unsigned int laneOffset);
33
- void KeccakP1600times4_OverwriteBytes(void *states, unsigned int instanceIndex, const unsigned char *data, unsigned int offset, unsigned int length);
34
- void KeccakP1600times4_OverwriteLanesAll(void *states, const unsigned char *data, unsigned int laneCount, unsigned int laneOffset);
35
- void KeccakP1600times4_OverwriteWithZeroes(void *states, unsigned int instanceIndex, unsigned int byteCount);
36
- void KeccakP1600times4_PermuteAll_4rounds(void *states);
37
- void KeccakP1600times4_PermuteAll_6rounds(void *states);
38
- void KeccakP1600times4_PermuteAll_12rounds(void *states);
39
- void KeccakP1600times4_PermuteAll_24rounds(void *states);
40
- void KeccakP1600times4_ExtractBytes(const void *states, unsigned int instanceIndex, unsigned char *data, unsigned int offset, unsigned int length);
41
- void KeccakP1600times4_ExtractLanesAll(const void *states, unsigned char *data, unsigned int laneCount, unsigned int laneOffset);
42
- void KeccakP1600times4_ExtractAndAddBytes(const void *states, unsigned int instanceIndex, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length);
43
- void KeccakP1600times4_ExtractAndAddLanesAll(const void *states, const unsigned char *input, unsigned char *output, unsigned int laneCount, unsigned int laneOffset);
44
-
45
- #endif
@@ -1,37 +0,0 @@
1
- /*
2
- The Keccak-p permutations, designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche.
3
-
4
- Implementation by Gilles Van Assche, hereby denoted as "the implementer".
5
-
6
- For more information, feedback or questions, please refer to the Keccak Team website:
7
- https://keccak.team/
8
-
9
- To the extent possible under law, the implementer has waived all copyright
10
- and related or neighboring rights to the source code in this file.
11
- http://creativecommons.org/publicdomain/zero/1.0/
12
-
13
- ---
14
-
15
- This file implements Keccak-p[1600]×4 in a PlSnP-compatible way.
16
- Please refer to PlSnP-documentation.h for more details.
17
-
18
- This implementation comes with KeccakP-1600-times4-SnP.h in the same folder.
19
- Please refer to LowLevel.build for the exact list of other files it must be combined with.
20
- */
21
-
22
- #include "KeccakP-1600-SnP.h"
23
-
24
- #define prefix KeccakP1600times4
25
- #define PlSnP_baseParallelism 1
26
- #define PlSnP_targetParallelism 4
27
- #define SnP_laneLengthInBytes 8
28
- #define SnP KeccakP1600
29
- #define SnP_Permute KeccakP1600_Permute_24rounds
30
- #define SnP_Permute_12rounds KeccakP1600_Permute_12rounds
31
- #define SnP_Permute_Nrounds KeccakP1600_Permute_Nrounds
32
- #define PlSnP_PermuteAll KeccakP1600times4_PermuteAll_24rounds
33
- #define PlSnP_PermuteAll_12rounds KeccakP1600times4_PermuteAll_12rounds
34
- #define PlSnP_PermuteAll_6rounds KeccakP1600times4_PermuteAll_6rounds
35
- #define PlSnP_PermuteAll_4rounds KeccakP1600times4_PermuteAll_4rounds
36
-
37
- #include "PlSnP-Fallback.inc"