digest-kangarootwelve 0.3.2 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1061) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/LICENSE.XKCP +9 -0
  4. data/README.md +85 -33
  5. data/Rakefile +58 -4
  6. data/digest-kangarootwelve.gemspec +22 -316
  7. data/ext/digest/kangarootwelve/XKCP/lib/common/align.h +33 -0
  8. data/ext/digest/kangarootwelve/XKCP/lib/common/brg_endian.h +143 -0
  9. data/ext/digest/kangarootwelve/XKCP/lib/high/KangarooTwelve/KangarooTwelve.c +301 -0
  10. data/ext/digest/kangarootwelve/XKCP/lib/high/KangarooTwelve/KangarooTwelve.h +97 -0
  11. data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.c +111 -0
  12. data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.h +76 -0
  13. data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.inc +314 -0
  14. data/ext/digest/kangarootwelve/XKCP/lib/high/common/Phases.h +25 -0
  15. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARM/KeccakP-1600-SnP.h +41 -0
  16. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARM/KeccakP-1600-inplace-32bi-armv7m-le-gcc.s +1175 -0
  17. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARM/KeccakP-1600-u2-32bi-armv6m-le-gcc.s +1339 -0
  18. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARMv7A-NEON/KeccakP-1600-SnP.h +42 -0
  19. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARMv7A-NEON/KeccakP-1600-armv7a-le-neon-gcc.s +831 -0
  20. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVR8/KeccakP-1600-SnP.h +42 -0
  21. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVR8/KeccakP-1600-avr8-fast.s +1121 -0
  22. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX2/KeccakP-1600-AVX2.s +1100 -0
  23. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX2/KeccakP-1600-SnP.h +52 -0
  24. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/C/KeccakP-1600-AVX512.c +623 -0
  25. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/C/KeccakP-1600-SnP.h +47 -0
  26. data/ext/digest/kangarootwelve/{keccak/skylakex → XKCP/lib/low/KeccakP-1600/AVX512/C/u12}/KeccakP-1600-AVX512-config.h +0 -0
  27. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/KeccakP-1600-AVX512.s +1031 -0
  28. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/KeccakP-1600-SnP.h +53 -0
  29. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/XOP/KeccakP-1600-SnP.h +44 -0
  30. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/XOP/KeccakP-1600-XOP.c +476 -0
  31. data/ext/digest/kangarootwelve/{keccak/bulldozer → XKCP/lib/low/KeccakP-1600/XOP/ua}/KeccakP-1600-XOP-config.h +0 -0
  32. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/common/KeccakP-1600-64.macros +748 -0
  33. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/common/KeccakP-1600-unrolling.macros +305 -0
  34. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/compact/KeccakP-1600-SnP.h +40 -0
  35. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/compact/KeccakP-1600-compact64.c +420 -0
  36. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-32bits-inplace/KeccakP-1600-SnP.h +43 -0
  37. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-32bits-inplace/KeccakP-1600-inplace32BI.c +1163 -0
  38. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-64bits/KeccakP-1600-SnP.h +54 -0
  39. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-64bits/KeccakP-1600-opt64.c +565 -0
  40. data/ext/digest/kangarootwelve/{keccak/generic64lc → XKCP/lib/low/KeccakP-1600/plain-64bits/lcua}/KeccakP-1600-opt64-config.h +0 -0
  41. data/ext/digest/kangarootwelve/{keccak/sandybridge → XKCP/lib/low/KeccakP-1600/plain-64bits/lcua-shld}/KeccakP-1600-opt64-config.h +0 -0
  42. data/ext/digest/kangarootwelve/{keccak/generic64 → XKCP/lib/low/KeccakP-1600/plain-64bits/ua}/KeccakP-1600-opt64-config.h +0 -0
  43. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-SnP.h +44 -0
  44. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference.h +23 -0
  45. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference32BI.c +625 -0
  46. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-SnP.h +44 -0
  47. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.c +440 -0
  48. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.h +23 -0
  49. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/ARMv7A-NEON/KeccakP-1600-inplace-pl2-armv7a-neon-le-gcc.s +1394 -0
  50. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/ARMv7A-NEON/KeccakP-1600-times2-SnP.h +42 -0
  51. data/ext/digest/kangarootwelve/{keccak/skylakex → XKCP/lib/low/KeccakP-1600-times2/AVX512/AVX512u12}/SIMD512-2-config.h +0 -0
  52. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/AVX512/KeccakP-1600-times2-SIMD512.c +850 -0
  53. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/AVX512/KeccakP-1600-times2-SnP.h +51 -0
  54. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/KeccakP-1600-times2-SIMD128.c +957 -0
  55. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/KeccakP-1600-times2-SnP.h +49 -0
  56. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/SSSE3-u2/SIMD128-config.h +8 -0
  57. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/SSSE3-ua/SIMD128-config.h +8 -0
  58. data/ext/digest/kangarootwelve/{keccak/bulldozer → XKCP/lib/low/KeccakP-1600-times2/SIMD128/XOP-ua}/SIMD128-config.h +0 -0
  59. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/fallback-on1/KeccakP-1600-times2-SnP.h +45 -0
  60. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/fallback-on1/KeccakP-1600-times2-on1.c +37 -0
  61. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX2/KeccakP-1600-times4-SIMD256.c +1321 -0
  62. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX2/KeccakP-1600-times4-SnP.h +55 -0
  63. data/ext/digest/kangarootwelve/{keccak/haswell → XKCP/lib/low/KeccakP-1600-times4/AVX2/u12}/SIMD256-config.h +0 -0
  64. data/ext/digest/kangarootwelve/{keccak/skylakex → XKCP/lib/low/KeccakP-1600-times4/AVX512/AVX512u12}/SIMD512-4-config.h +0 -0
  65. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX512/KeccakP-1600-times4-SIMD512.c +881 -0
  66. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX512/KeccakP-1600-times4-SnP.h +51 -0
  67. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on1/KeccakP-1600-times4-SnP.h +45 -0
  68. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on1/KeccakP-1600-times4-on1.c +37 -0
  69. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on2/KeccakP-1600-times4-SnP.h +45 -0
  70. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on2/KeccakP-1600-times4-on2.c +38 -0
  71. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/AVX512/KeccakP-1600-times8-SIMD512.c +1615 -0
  72. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/AVX512/KeccakP-1600-times8-SnP.h +57 -0
  73. data/ext/digest/kangarootwelve/{keccak/skylakex → XKCP/lib/low/KeccakP-1600-times8/AVX512/u12}/SIMD512-config.h +0 -0
  74. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on1/KeccakP-1600-times8-SnP.h +45 -0
  75. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on1/KeccakP-1600-times8-on1.c +37 -0
  76. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on2/KeccakP-1600-times8-SnP.h +45 -0
  77. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on2/KeccakP-1600-times8-on2.c +38 -0
  78. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on4/KeccakP-1600-times8-SnP.h +45 -0
  79. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on4/KeccakP-1600-times8-on4.c +38 -0
  80. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-SnP.h +41 -0
  81. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-armv6m-le-gcc.s +446 -0
  82. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-armv7m-le-gcc.s +427 -0
  83. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/AVR8/KeccakP-200-SnP.h +41 -0
  84. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/AVR8/KeccakP-200-avr8-fast.s +647 -0
  85. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/compact/KeccakP-200-SnP.h +39 -0
  86. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/compact/KeccakP-200-compact.c +190 -0
  87. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-SnP.h +43 -0
  88. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-reference.c +412 -0
  89. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-reference.h +23 -0
  90. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-SnP.h +41 -0
  91. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-armv6m-le-gcc.s +458 -0
  92. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-armv7m-le-gcc.s +458 -0
  93. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/AVR8/KeccakP-400-SnP.h +41 -0
  94. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/AVR8/KeccakP-400-avr8-fast.s +728 -0
  95. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-SnP.h +43 -0
  96. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-reference.c +414 -0
  97. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-reference.h +23 -0
  98. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-SnP.h +42 -0
  99. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv6m-le-gcc.s +534 -0
  100. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv7a-le-gcc.s +527 -0
  101. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv7m-le-gcc.s +523 -0
  102. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/AVR8/KeccakP-800-SnP.h +42 -0
  103. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/AVR8/KeccakP-800-avr8-fast.s +929 -0
  104. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/compact/KeccakP-800-SnP.h +40 -0
  105. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/compact/KeccakP-800-compact.c +244 -0
  106. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-SnP.h +46 -0
  107. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32-bis.macros +184 -0
  108. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32.c +454 -0
  109. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32.macros +459 -0
  110. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-unrolling-bis.macros +83 -0
  111. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-unrolling.macros +88 -0
  112. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/lcu2/KeccakP-800-opt32-config.h +7 -0
  113. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/lcua/KeccakP-800-opt32-config.h +7 -0
  114. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/u2/KeccakP-800-opt32-config.h +7 -0
  115. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/ua/KeccakP-800-opt32-config.h +7 -0
  116. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-SnP.h +44 -0
  117. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-reference.c +437 -0
  118. data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-reference.h +23 -0
  119. data/ext/digest/kangarootwelve/XKCP/lib/low/common/PlSnP-Fallback.inc +290 -0
  120. data/ext/digest/kangarootwelve/XKCP/lib/low/common/SnP-Relaned.h +141 -0
  121. data/ext/digest/kangarootwelve/XKCP/tests/UnitTests/displayIntermediateValues.c +177 -0
  122. data/ext/digest/kangarootwelve/XKCP/tests/UnitTests/displayIntermediateValues.h +30 -0
  123. data/ext/digest/kangarootwelve/ext.c +30 -22
  124. data/ext/digest/kangarootwelve/extconf.rb +8 -11
  125. data/ext/digest/kangarootwelve/targets/armv6/KangarooTwelve.c +1 -0
  126. data/ext/digest/kangarootwelve/targets/armv6/KangarooTwelve.h +1 -0
  127. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-SnP.h +1 -0
  128. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times2-SnP.h +1 -0
  129. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times2-on1.c +1 -0
  130. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times4-SnP.h +1 -0
  131. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times4-on1.c +1 -0
  132. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times8-SnP.h +1 -0
  133. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times8-on1.c +1 -0
  134. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-u2-32bi-armv6m-le-gcc.S +1 -0
  135. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-200-SnP.h +1 -0
  136. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-200-armv6m-le-gcc.S +1 -0
  137. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-400-SnP.h +1 -0
  138. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-400-armv6m-le-gcc.S +1 -0
  139. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-800-SnP.h +1 -0
  140. data/ext/digest/kangarootwelve/targets/armv6/KeccakP-800-u2-armv6m-le-gcc.S +1 -0
  141. data/ext/digest/kangarootwelve/targets/armv6/KeccakSponge.c +1 -0
  142. data/ext/digest/kangarootwelve/targets/armv6/KeccakSponge.h +1 -0
  143. data/ext/digest/kangarootwelve/targets/armv6/KeccakSponge.inc +1 -0
  144. data/ext/digest/kangarootwelve/targets/armv6/Phases.h +1 -0
  145. data/ext/digest/kangarootwelve/targets/armv6/PlSnP-Fallback.inc +1 -0
  146. data/ext/digest/kangarootwelve/targets/armv6/align.h +1 -0
  147. data/ext/digest/kangarootwelve/targets/armv6/brg_endian.h +1 -0
  148. data/ext/digest/kangarootwelve/targets/armv6/config.h +1 -0
  149. data/ext/digest/kangarootwelve/{keccak/armv6m/ext.link.c → targets/armv6/ext.c} +0 -0
  150. data/ext/digest/kangarootwelve/targets/armv6/utils.h +1 -0
  151. data/ext/digest/kangarootwelve/targets/armv6m/KangarooTwelve.c +1 -0
  152. data/ext/digest/kangarootwelve/targets/armv6m/KangarooTwelve.h +1 -0
  153. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-SnP.h +1 -0
  154. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times2-SnP.h +1 -0
  155. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times2-on1.c +1 -0
  156. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times4-SnP.h +1 -0
  157. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times4-on1.c +1 -0
  158. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times8-SnP.h +1 -0
  159. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times8-on1.c +1 -0
  160. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-u2-32bi-armv6m-le-gcc.S +1 -0
  161. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-200-SnP.h +1 -0
  162. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-200-armv6m-le-gcc.S +1 -0
  163. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-400-SnP.h +1 -0
  164. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-400-armv6m-le-gcc.S +1 -0
  165. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-800-SnP.h +1 -0
  166. data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-800-u2-armv6m-le-gcc.S +1 -0
  167. data/ext/digest/kangarootwelve/targets/armv6m/KeccakSponge.c +1 -0
  168. data/ext/digest/kangarootwelve/targets/armv6m/KeccakSponge.h +1 -0
  169. data/ext/digest/kangarootwelve/targets/armv6m/KeccakSponge.inc +1 -0
  170. data/ext/digest/kangarootwelve/targets/armv6m/Phases.h +1 -0
  171. data/ext/digest/kangarootwelve/targets/armv6m/PlSnP-Fallback.inc +1 -0
  172. data/ext/digest/kangarootwelve/targets/armv6m/align.h +1 -0
  173. data/ext/digest/kangarootwelve/targets/armv6m/brg_endian.h +1 -0
  174. data/ext/digest/kangarootwelve/targets/armv6m/config.h +1 -0
  175. data/ext/digest/kangarootwelve/{keccak/armv7a/ext.link.c → targets/armv6m/ext.c} +0 -0
  176. data/ext/digest/kangarootwelve/targets/armv6m/utils.h +1 -0
  177. data/ext/digest/kangarootwelve/targets/armv7a/KangarooTwelve.c +1 -0
  178. data/ext/digest/kangarootwelve/targets/armv7a/KangarooTwelve.h +1 -0
  179. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-SnP.h +1 -0
  180. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-armv7a-le-neon-gcc.S +1 -0
  181. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-inplace-pl2-armv7a-neon-le-gcc.S +1 -0
  182. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times2-SnP.h +1 -0
  183. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times4-SnP.h +1 -0
  184. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times4-on2.c +1 -0
  185. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times8-SnP.h +1 -0
  186. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times8-on2.c +1 -0
  187. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-SnP.h +1 -0
  188. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-reference.c +1 -0
  189. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-reference.h +1 -0
  190. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-SnP.h +1 -0
  191. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-reference.c +1 -0
  192. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-reference.h +1 -0
  193. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-800-SnP.h +1 -0
  194. data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-800-u2-armv7a-le-gcc.S +1 -0
  195. data/ext/digest/kangarootwelve/targets/armv7a/KeccakSponge.c +1 -0
  196. data/ext/digest/kangarootwelve/targets/armv7a/KeccakSponge.h +1 -0
  197. data/ext/digest/kangarootwelve/targets/armv7a/KeccakSponge.inc +1 -0
  198. data/ext/digest/kangarootwelve/targets/armv7a/Phases.h +1 -0
  199. data/ext/digest/kangarootwelve/targets/armv7a/PlSnP-Fallback.inc +1 -0
  200. data/ext/digest/kangarootwelve/targets/armv7a/align.h +1 -0
  201. data/ext/digest/kangarootwelve/targets/armv7a/brg_endian.h +1 -0
  202. data/ext/digest/kangarootwelve/targets/armv7a/config.h +1 -0
  203. data/ext/digest/kangarootwelve/{keccak/armv7m/ext.link.c → targets/armv7a/ext.c} +0 -0
  204. data/ext/digest/kangarootwelve/targets/armv7a/utils.h +1 -0
  205. data/ext/digest/kangarootwelve/targets/armv7m/KangarooTwelve.c +1 -0
  206. data/ext/digest/kangarootwelve/targets/armv7m/KangarooTwelve.h +1 -0
  207. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-SnP.h +1 -0
  208. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-inplace-32bi-armv7m-le-gcc.S +1 -0
  209. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times2-SnP.h +1 -0
  210. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times2-on1.c +1 -0
  211. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times4-SnP.h +1 -0
  212. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times4-on1.c +1 -0
  213. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times8-SnP.h +1 -0
  214. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times8-on1.c +1 -0
  215. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-200-SnP.h +1 -0
  216. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-200-armv7m-le-gcc.S +1 -0
  217. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-400-SnP.h +1 -0
  218. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-400-armv7m-le-gcc.S +1 -0
  219. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-800-SnP.h +1 -0
  220. data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-800-u2-armv7m-le-gcc.S +1 -0
  221. data/ext/digest/kangarootwelve/targets/armv7m/KeccakSponge.c +1 -0
  222. data/ext/digest/kangarootwelve/targets/armv7m/KeccakSponge.h +1 -0
  223. data/ext/digest/kangarootwelve/targets/armv7m/KeccakSponge.inc +1 -0
  224. data/ext/digest/kangarootwelve/targets/armv7m/Phases.h +1 -0
  225. data/ext/digest/kangarootwelve/targets/armv7m/PlSnP-Fallback.inc +1 -0
  226. data/ext/digest/kangarootwelve/targets/armv7m/align.h +1 -0
  227. data/ext/digest/kangarootwelve/targets/armv7m/brg_endian.h +1 -0
  228. data/ext/digest/kangarootwelve/targets/armv7m/config.h +1 -0
  229. data/ext/digest/kangarootwelve/{keccak/armv8a/ext.link.c → targets/armv7m/ext.c} +0 -0
  230. data/ext/digest/kangarootwelve/targets/armv7m/utils.h +1 -0
  231. data/ext/digest/kangarootwelve/targets/armv8a/KangarooTwelve.c +1 -0
  232. data/ext/digest/kangarootwelve/targets/armv8a/KangarooTwelve.h +1 -0
  233. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-64.macros +1 -0
  234. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-SnP.h +1 -0
  235. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-opt64-config.h +1 -0
  236. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-opt64.c +1 -0
  237. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times2-SnP.h +1 -0
  238. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times2-on1.c +1 -0
  239. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times4-SnP.h +1 -0
  240. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times4-on1.c +1 -0
  241. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times8-SnP.h +1 -0
  242. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times8-on1.c +1 -0
  243. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-unrolling.macros +1 -0
  244. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-SnP.h +1 -0
  245. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-reference.c +1 -0
  246. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-reference.h +1 -0
  247. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-SnP.h +1 -0
  248. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-reference.c +1 -0
  249. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-reference.h +1 -0
  250. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-SnP.h +1 -0
  251. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32-bis.macros +1 -0
  252. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32-config.h +1 -0
  253. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32.c +1 -0
  254. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32.macros +1 -0
  255. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-unrolling-bis.macros +1 -0
  256. data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-unrolling.macros +1 -0
  257. data/ext/digest/kangarootwelve/targets/armv8a/KeccakSponge.c +1 -0
  258. data/ext/digest/kangarootwelve/targets/armv8a/KeccakSponge.h +1 -0
  259. data/ext/digest/kangarootwelve/targets/armv8a/KeccakSponge.inc +1 -0
  260. data/ext/digest/kangarootwelve/targets/armv8a/Phases.h +1 -0
  261. data/ext/digest/kangarootwelve/targets/armv8a/PlSnP-Fallback.inc +1 -0
  262. data/ext/digest/kangarootwelve/targets/armv8a/SnP-Relaned.h +1 -0
  263. data/ext/digest/kangarootwelve/targets/armv8a/align.h +1 -0
  264. data/ext/digest/kangarootwelve/targets/armv8a/brg_endian.h +1 -0
  265. data/ext/digest/kangarootwelve/targets/armv8a/config.h +1 -0
  266. data/ext/digest/kangarootwelve/{keccak/asmx86-64/ext.link.c → targets/armv8a/ext.c} +0 -0
  267. data/ext/digest/kangarootwelve/targets/armv8a/utils.h +1 -0
  268. data/ext/digest/kangarootwelve/targets/avr8/KangarooTwelve.c +1 -0
  269. data/ext/digest/kangarootwelve/targets/avr8/KangarooTwelve.h +1 -0
  270. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-SnP.h +1 -0
  271. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-avr8-fast.S +1 -0
  272. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times2-SnP.h +1 -0
  273. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times2-on1.c +1 -0
  274. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times4-SnP.h +1 -0
  275. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times4-on1.c +1 -0
  276. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times8-SnP.h +1 -0
  277. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times8-on1.c +1 -0
  278. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-200-SnP.h +1 -0
  279. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-200-avr8-fast.S +1 -0
  280. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-400-SnP.h +1 -0
  281. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-400-avr8-fast.S +1 -0
  282. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-800-SnP.h +1 -0
  283. data/ext/digest/kangarootwelve/targets/avr8/KeccakP-800-avr8-fast.S +1 -0
  284. data/ext/digest/kangarootwelve/targets/avr8/KeccakSponge.c +1 -0
  285. data/ext/digest/kangarootwelve/targets/avr8/KeccakSponge.h +1 -0
  286. data/ext/digest/kangarootwelve/targets/avr8/KeccakSponge.inc +1 -0
  287. data/ext/digest/kangarootwelve/targets/avr8/Phases.h +1 -0
  288. data/ext/digest/kangarootwelve/targets/avr8/PlSnP-Fallback.inc +1 -0
  289. data/ext/digest/kangarootwelve/targets/avr8/align.h +1 -0
  290. data/ext/digest/kangarootwelve/targets/avr8/brg_endian.h +1 -0
  291. data/ext/digest/kangarootwelve/targets/avr8/config.h +1 -0
  292. data/ext/digest/kangarootwelve/{keccak/asmx86-64shld/ext.link.c → targets/avr8/ext.c} +0 -0
  293. data/ext/digest/kangarootwelve/targets/avr8/utils.h +1 -0
  294. data/ext/digest/kangarootwelve/targets/avx/KangarooTwelve.c +1 -0
  295. data/ext/digest/kangarootwelve/targets/avx/KangarooTwelve.h +1 -0
  296. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-64.macros +1 -0
  297. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-SnP.h +1 -0
  298. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-opt64-config.h +1 -0
  299. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-opt64.c +1 -0
  300. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times2-SIMD128.c +1 -0
  301. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times2-SnP.h +1 -0
  302. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times4-SnP.h +1 -0
  303. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times4-on2.c +1 -0
  304. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times8-SnP.h +1 -0
  305. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times8-on2.c +1 -0
  306. data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-unrolling.macros +1 -0
  307. data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-SnP.h +1 -0
  308. data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-reference.c +1 -0
  309. data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-reference.h +1 -0
  310. data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-SnP.h +1 -0
  311. data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-reference.c +1 -0
  312. data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-reference.h +1 -0
  313. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-SnP.h +1 -0
  314. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32-bis.macros +1 -0
  315. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32-config.h +1 -0
  316. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32.c +1 -0
  317. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32.macros +1 -0
  318. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-unrolling-bis.macros +1 -0
  319. data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-unrolling.macros +1 -0
  320. data/ext/digest/kangarootwelve/targets/avx/KeccakSponge.c +1 -0
  321. data/ext/digest/kangarootwelve/targets/avx/KeccakSponge.h +1 -0
  322. data/ext/digest/kangarootwelve/targets/avx/KeccakSponge.inc +1 -0
  323. data/ext/digest/kangarootwelve/targets/avx/Phases.h +1 -0
  324. data/ext/digest/kangarootwelve/targets/avx/PlSnP-Fallback.inc +1 -0
  325. data/ext/digest/kangarootwelve/targets/avx/SIMD128-config.h +1 -0
  326. data/ext/digest/kangarootwelve/targets/avx/SnP-Relaned.h +1 -0
  327. data/ext/digest/kangarootwelve/targets/avx/align.h +1 -0
  328. data/ext/digest/kangarootwelve/targets/avx/brg_endian.h +1 -0
  329. data/ext/digest/kangarootwelve/targets/avx/config.h +1 -0
  330. data/ext/digest/kangarootwelve/{keccak/avr8/ext.link.c → targets/avx/ext.c} +0 -0
  331. data/ext/digest/kangarootwelve/targets/avx/utils.h +1 -0
  332. data/ext/digest/kangarootwelve/targets/avx2/KangarooTwelve.c +1 -0
  333. data/ext/digest/kangarootwelve/targets/avx2/KangarooTwelve.h +1 -0
  334. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-AVX2.S +1 -0
  335. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-SnP.h +1 -0
  336. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times2-SIMD128.c +1 -0
  337. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times2-SnP.h +1 -0
  338. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times4-SIMD256.c +1 -0
  339. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times4-SnP.h +1 -0
  340. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times8-SnP.h +1 -0
  341. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times8-on4.c +1 -0
  342. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-unrolling.macros +1 -0
  343. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-SnP.h +1 -0
  344. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-reference.c +1 -0
  345. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-reference.h +1 -0
  346. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-SnP.h +1 -0
  347. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-reference.c +1 -0
  348. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-reference.h +1 -0
  349. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-SnP.h +1 -0
  350. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32-bis.macros +1 -0
  351. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32-config.h +1 -0
  352. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32.c +1 -0
  353. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32.macros +1 -0
  354. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-unrolling-bis.macros +1 -0
  355. data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-unrolling.macros +1 -0
  356. data/ext/digest/kangarootwelve/targets/avx2/KeccakSponge.c +1 -0
  357. data/ext/digest/kangarootwelve/targets/avx2/KeccakSponge.h +1 -0
  358. data/ext/digest/kangarootwelve/targets/avx2/KeccakSponge.inc +1 -0
  359. data/ext/digest/kangarootwelve/targets/avx2/Phases.h +1 -0
  360. data/ext/digest/kangarootwelve/targets/avx2/PlSnP-Fallback.inc +1 -0
  361. data/ext/digest/kangarootwelve/targets/avx2/SIMD128-config.h +1 -0
  362. data/ext/digest/kangarootwelve/targets/avx2/SIMD256-config.h +1 -0
  363. data/ext/digest/kangarootwelve/targets/avx2/align.h +1 -0
  364. data/ext/digest/kangarootwelve/targets/avx2/brg_endian.h +1 -0
  365. data/ext/digest/kangarootwelve/targets/avx2/config.h +1 -0
  366. data/ext/digest/kangarootwelve/{keccak/bulldozer/ext.link.c → targets/avx2/ext.c} +0 -0
  367. data/ext/digest/kangarootwelve/targets/avx2/utils.h +1 -0
  368. data/ext/digest/kangarootwelve/targets/avx2noasm/KangarooTwelve.c +1 -0
  369. data/ext/digest/kangarootwelve/targets/avx2noasm/KangarooTwelve.h +1 -0
  370. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-64.macros +1 -0
  371. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-SnP.h +1 -0
  372. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-opt64-config.h +1 -0
  373. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-opt64.c +1 -0
  374. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times2-SIMD128.c +1 -0
  375. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times2-SnP.h +1 -0
  376. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times4-SIMD256.c +1 -0
  377. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times4-SnP.h +1 -0
  378. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times8-SnP.h +1 -0
  379. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times8-on4.c +1 -0
  380. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-unrolling.macros +1 -0
  381. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-SnP.h +1 -0
  382. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-reference.c +1 -0
  383. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-reference.h +1 -0
  384. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-SnP.h +1 -0
  385. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-reference.c +1 -0
  386. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-reference.h +1 -0
  387. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-SnP.h +1 -0
  388. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32-bis.macros +1 -0
  389. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32-config.h +1 -0
  390. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32.c +1 -0
  391. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32.macros +1 -0
  392. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-unrolling-bis.macros +1 -0
  393. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-unrolling.macros +1 -0
  394. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakSponge.c +1 -0
  395. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakSponge.h +1 -0
  396. data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakSponge.inc +1 -0
  397. data/ext/digest/kangarootwelve/targets/avx2noasm/Phases.h +1 -0
  398. data/ext/digest/kangarootwelve/targets/avx2noasm/PlSnP-Fallback.inc +1 -0
  399. data/ext/digest/kangarootwelve/targets/avx2noasm/SIMD128-config.h +1 -0
  400. data/ext/digest/kangarootwelve/targets/avx2noasm/SIMD256-config.h +1 -0
  401. data/ext/digest/kangarootwelve/targets/avx2noasm/SnP-Relaned.h +1 -0
  402. data/ext/digest/kangarootwelve/targets/avx2noasm/align.h +1 -0
  403. data/ext/digest/kangarootwelve/targets/avx2noasm/brg_endian.h +1 -0
  404. data/ext/digest/kangarootwelve/targets/avx2noasm/config.h +1 -0
  405. data/ext/digest/kangarootwelve/{keccak/compact/ext.link.c → targets/avx2noasm/ext.c} +0 -0
  406. data/ext/digest/kangarootwelve/targets/avx2noasm/utils.h +1 -0
  407. data/ext/digest/kangarootwelve/targets/avx512/KangarooTwelve.c +1 -0
  408. data/ext/digest/kangarootwelve/targets/avx512/KangarooTwelve.h +1 -0
  409. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-AVX512.S +1 -0
  410. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-SnP.h +1 -0
  411. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times2-SIMD512.c +1 -0
  412. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times2-SnP.h +1 -0
  413. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times4-SIMD512.c +1 -0
  414. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times4-SnP.h +1 -0
  415. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times8-SIMD512.c +1 -0
  416. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times8-SnP.h +1 -0
  417. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-SnP.h +1 -0
  418. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-reference.c +1 -0
  419. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-reference.h +1 -0
  420. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-SnP.h +1 -0
  421. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-reference.c +1 -0
  422. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-reference.h +1 -0
  423. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-SnP.h +1 -0
  424. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32-bis.macros +1 -0
  425. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32-config.h +1 -0
  426. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32.c +1 -0
  427. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32.macros +1 -0
  428. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-unrolling-bis.macros +1 -0
  429. data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-unrolling.macros +1 -0
  430. data/ext/digest/kangarootwelve/targets/avx512/KeccakSponge.c +1 -0
  431. data/ext/digest/kangarootwelve/targets/avx512/KeccakSponge.h +1 -0
  432. data/ext/digest/kangarootwelve/targets/avx512/KeccakSponge.inc +1 -0
  433. data/ext/digest/kangarootwelve/targets/avx512/Phases.h +1 -0
  434. data/ext/digest/kangarootwelve/targets/avx512/SIMD512-2-config.h +1 -0
  435. data/ext/digest/kangarootwelve/targets/avx512/SIMD512-4-config.h +1 -0
  436. data/ext/digest/kangarootwelve/targets/avx512/SIMD512-config.h +1 -0
  437. data/ext/digest/kangarootwelve/targets/avx512/align.h +1 -0
  438. data/ext/digest/kangarootwelve/targets/avx512/brg_endian.h +1 -0
  439. data/ext/digest/kangarootwelve/targets/avx512/config.h +1 -0
  440. data/ext/digest/kangarootwelve/{keccak/generic32/ext.link.c → targets/avx512/ext.c} +0 -0
  441. data/ext/digest/kangarootwelve/targets/avx512/utils.h +1 -0
  442. data/ext/digest/kangarootwelve/targets/avx512noasm/KangarooTwelve.c +1 -0
  443. data/ext/digest/kangarootwelve/targets/avx512noasm/KangarooTwelve.h +1 -0
  444. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-AVX512-config.h +1 -0
  445. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-AVX512.c +1 -0
  446. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-SnP.h +1 -0
  447. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times2-SIMD512.c +1 -0
  448. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times2-SnP.h +1 -0
  449. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times4-SIMD512.c +1 -0
  450. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times4-SnP.h +1 -0
  451. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times8-SIMD512.c +1 -0
  452. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times8-SnP.h +1 -0
  453. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-SnP.h +1 -0
  454. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-reference.c +1 -0
  455. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-reference.h +1 -0
  456. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-SnP.h +1 -0
  457. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-reference.c +1 -0
  458. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-reference.h +1 -0
  459. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-SnP.h +1 -0
  460. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32-bis.macros +1 -0
  461. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32-config.h +1 -0
  462. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32.c +1 -0
  463. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32.macros +1 -0
  464. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-unrolling-bis.macros +1 -0
  465. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-unrolling.macros +1 -0
  466. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakSponge.c +1 -0
  467. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakSponge.h +1 -0
  468. data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakSponge.inc +1 -0
  469. data/ext/digest/kangarootwelve/targets/avx512noasm/Phases.h +1 -0
  470. data/ext/digest/kangarootwelve/targets/avx512noasm/SIMD512-2-config.h +1 -0
  471. data/ext/digest/kangarootwelve/targets/avx512noasm/SIMD512-4-config.h +1 -0
  472. data/ext/digest/kangarootwelve/targets/avx512noasm/SIMD512-config.h +1 -0
  473. data/ext/digest/kangarootwelve/targets/avx512noasm/align.h +1 -0
  474. data/ext/digest/kangarootwelve/targets/avx512noasm/brg_endian.h +1 -0
  475. data/ext/digest/kangarootwelve/targets/avx512noasm/config.h +1 -0
  476. data/ext/digest/kangarootwelve/{keccak/generic32lc/ext.link.c → targets/avx512noasm/ext.c} +0 -0
  477. data/ext/digest/kangarootwelve/targets/avx512noasm/utils.h +1 -0
  478. data/ext/digest/kangarootwelve/targets/compact/KangarooTwelve.c +1 -0
  479. data/ext/digest/kangarootwelve/targets/compact/KangarooTwelve.h +1 -0
  480. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-SnP.h +1 -0
  481. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-compact64.c +1 -0
  482. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times2-SnP.h +1 -0
  483. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times2-on1.c +1 -0
  484. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times4-SnP.h +1 -0
  485. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times4-on1.c +1 -0
  486. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times8-SnP.h +1 -0
  487. data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times8-on1.c +1 -0
  488. data/ext/digest/kangarootwelve/targets/compact/KeccakP-200-SnP.h +1 -0
  489. data/ext/digest/kangarootwelve/targets/compact/KeccakP-200-compact.c +1 -0
  490. data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-SnP.h +1 -0
  491. data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-reference.c +1 -0
  492. data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-reference.h +1 -0
  493. data/ext/digest/kangarootwelve/targets/compact/KeccakP-800-SnP.h +1 -0
  494. data/ext/digest/kangarootwelve/targets/compact/KeccakP-800-compact.c +1 -0
  495. data/ext/digest/kangarootwelve/targets/compact/KeccakSponge.c +1 -0
  496. data/ext/digest/kangarootwelve/targets/compact/KeccakSponge.h +1 -0
  497. data/ext/digest/kangarootwelve/targets/compact/KeccakSponge.inc +1 -0
  498. data/ext/digest/kangarootwelve/targets/compact/Phases.h +1 -0
  499. data/ext/digest/kangarootwelve/targets/compact/PlSnP-Fallback.inc +1 -0
  500. data/ext/digest/kangarootwelve/targets/compact/SnP-Relaned.h +1 -0
  501. data/ext/digest/kangarootwelve/targets/compact/align.h +1 -0
  502. data/ext/digest/kangarootwelve/targets/compact/brg_endian.h +1 -0
  503. data/ext/digest/kangarootwelve/targets/compact/config.h +1 -0
  504. data/ext/digest/kangarootwelve/{keccak/generic64/ext.link.c → targets/compact/ext.c} +0 -0
  505. data/ext/digest/kangarootwelve/targets/compact/utils.h +1 -0
  506. data/ext/digest/kangarootwelve/targets/config.h +9 -0
  507. data/ext/digest/kangarootwelve/targets/defs +2 -0
  508. data/ext/digest/kangarootwelve/targets/generic32/KangarooTwelve.c +1 -0
  509. data/ext/digest/kangarootwelve/targets/generic32/KangarooTwelve.h +1 -0
  510. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-SnP.h +1 -0
  511. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-inplace32BI.c +1 -0
  512. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times2-SnP.h +1 -0
  513. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times2-on1.c +1 -0
  514. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times4-SnP.h +1 -0
  515. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times4-on1.c +1 -0
  516. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times8-SnP.h +1 -0
  517. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times8-on1.c +1 -0
  518. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-SnP.h +1 -0
  519. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-reference.c +1 -0
  520. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-reference.h +1 -0
  521. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-SnP.h +1 -0
  522. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-reference.c +1 -0
  523. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-reference.h +1 -0
  524. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-SnP.h +1 -0
  525. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32-bis.macros +1 -0
  526. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32-config.h +1 -0
  527. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32.c +1 -0
  528. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32.macros +1 -0
  529. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-unrolling-bis.macros +1 -0
  530. data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-unrolling.macros +1 -0
  531. data/ext/digest/kangarootwelve/targets/generic32/KeccakSponge.c +1 -0
  532. data/ext/digest/kangarootwelve/targets/generic32/KeccakSponge.h +1 -0
  533. data/ext/digest/kangarootwelve/targets/generic32/KeccakSponge.inc +1 -0
  534. data/ext/digest/kangarootwelve/targets/generic32/Phases.h +1 -0
  535. data/ext/digest/kangarootwelve/targets/generic32/PlSnP-Fallback.inc +1 -0
  536. data/ext/digest/kangarootwelve/targets/generic32/SnP-Relaned.h +1 -0
  537. data/ext/digest/kangarootwelve/targets/generic32/align.h +1 -0
  538. data/ext/digest/kangarootwelve/targets/generic32/brg_endian.h +1 -0
  539. data/ext/digest/kangarootwelve/targets/generic32/config.h +1 -0
  540. data/ext/digest/kangarootwelve/{keccak/generic64lc/ext.link.c → targets/generic32/ext.c} +0 -0
  541. data/ext/digest/kangarootwelve/targets/generic32/utils.h +1 -0
  542. data/ext/digest/kangarootwelve/targets/generic32lc/KangarooTwelve.c +1 -0
  543. data/ext/digest/kangarootwelve/targets/generic32lc/KangarooTwelve.h +1 -0
  544. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-SnP.h +1 -0
  545. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-inplace32BI.c +1 -0
  546. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times2-SnP.h +1 -0
  547. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times2-on1.c +1 -0
  548. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times4-SnP.h +1 -0
  549. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times4-on1.c +1 -0
  550. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times8-SnP.h +1 -0
  551. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times8-on1.c +1 -0
  552. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-SnP.h +1 -0
  553. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-reference.c +1 -0
  554. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-reference.h +1 -0
  555. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-SnP.h +1 -0
  556. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-reference.c +1 -0
  557. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-reference.h +1 -0
  558. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-SnP.h +1 -0
  559. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32-bis.macros +1 -0
  560. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32-config.h +1 -0
  561. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32.c +1 -0
  562. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32.macros +1 -0
  563. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-unrolling-bis.macros +1 -0
  564. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-unrolling.macros +1 -0
  565. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakSponge.c +1 -0
  566. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakSponge.h +1 -0
  567. data/ext/digest/kangarootwelve/targets/generic32lc/KeccakSponge.inc +1 -0
  568. data/ext/digest/kangarootwelve/targets/generic32lc/Phases.h +1 -0
  569. data/ext/digest/kangarootwelve/targets/generic32lc/PlSnP-Fallback.inc +1 -0
  570. data/ext/digest/kangarootwelve/targets/generic32lc/SnP-Relaned.h +1 -0
  571. data/ext/digest/kangarootwelve/targets/generic32lc/align.h +1 -0
  572. data/ext/digest/kangarootwelve/targets/generic32lc/brg_endian.h +1 -0
  573. data/ext/digest/kangarootwelve/targets/generic32lc/config.h +1 -0
  574. data/ext/digest/kangarootwelve/{keccak/haswell/ext.link.c → targets/generic32lc/ext.c} +0 -0
  575. data/ext/digest/kangarootwelve/targets/generic32lc/utils.h +1 -0
  576. data/ext/digest/kangarootwelve/targets/generic64/KangarooTwelve.c +1 -0
  577. data/ext/digest/kangarootwelve/targets/generic64/KangarooTwelve.h +1 -0
  578. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-64.macros +1 -0
  579. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-SnP.h +1 -0
  580. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-opt64-config.h +1 -0
  581. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-opt64.c +1 -0
  582. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times2-SnP.h +1 -0
  583. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times2-on1.c +1 -0
  584. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times4-SnP.h +1 -0
  585. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times4-on1.c +1 -0
  586. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times8-SnP.h +1 -0
  587. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times8-on1.c +1 -0
  588. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-unrolling.macros +1 -0
  589. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-SnP.h +1 -0
  590. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-reference.c +1 -0
  591. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-reference.h +1 -0
  592. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-SnP.h +1 -0
  593. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-reference.c +1 -0
  594. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-reference.h +1 -0
  595. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-SnP.h +1 -0
  596. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32-bis.macros +1 -0
  597. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32-config.h +1 -0
  598. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32.c +1 -0
  599. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32.macros +1 -0
  600. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-unrolling-bis.macros +1 -0
  601. data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-unrolling.macros +1 -0
  602. data/ext/digest/kangarootwelve/targets/generic64/KeccakSponge.c +1 -0
  603. data/ext/digest/kangarootwelve/targets/generic64/KeccakSponge.h +1 -0
  604. data/ext/digest/kangarootwelve/targets/generic64/KeccakSponge.inc +1 -0
  605. data/ext/digest/kangarootwelve/targets/generic64/Phases.h +1 -0
  606. data/ext/digest/kangarootwelve/targets/generic64/PlSnP-Fallback.inc +1 -0
  607. data/ext/digest/kangarootwelve/targets/generic64/SnP-Relaned.h +1 -0
  608. data/ext/digest/kangarootwelve/targets/generic64/align.h +1 -0
  609. data/ext/digest/kangarootwelve/targets/generic64/brg_endian.h +1 -0
  610. data/ext/digest/kangarootwelve/targets/generic64/config.h +1 -0
  611. data/ext/digest/kangarootwelve/{keccak/nehalem/ext.link.c → targets/generic64/ext.c} +0 -0
  612. data/ext/digest/kangarootwelve/targets/generic64/utils.h +1 -0
  613. data/ext/digest/kangarootwelve/targets/generic64lc/KangarooTwelve.c +1 -0
  614. data/ext/digest/kangarootwelve/targets/generic64lc/KangarooTwelve.h +1 -0
  615. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-64.macros +1 -0
  616. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-SnP.h +1 -0
  617. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-opt64-config.h +1 -0
  618. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-opt64.c +1 -0
  619. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times2-SnP.h +1 -0
  620. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times2-on1.c +1 -0
  621. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times4-SnP.h +1 -0
  622. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times4-on1.c +1 -0
  623. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times8-SnP.h +1 -0
  624. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times8-on1.c +1 -0
  625. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-unrolling.macros +1 -0
  626. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-SnP.h +1 -0
  627. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-reference.c +1 -0
  628. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-reference.h +1 -0
  629. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-SnP.h +1 -0
  630. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-reference.c +1 -0
  631. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-reference.h +1 -0
  632. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-SnP.h +1 -0
  633. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32-bis.macros +1 -0
  634. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32-config.h +1 -0
  635. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32.c +1 -0
  636. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32.macros +1 -0
  637. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-unrolling-bis.macros +1 -0
  638. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-unrolling.macros +1 -0
  639. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakSponge.c +1 -0
  640. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakSponge.h +1 -0
  641. data/ext/digest/kangarootwelve/targets/generic64lc/KeccakSponge.inc +1 -0
  642. data/ext/digest/kangarootwelve/targets/generic64lc/Phases.h +1 -0
  643. data/ext/digest/kangarootwelve/targets/generic64lc/PlSnP-Fallback.inc +1 -0
  644. data/ext/digest/kangarootwelve/targets/generic64lc/SnP-Relaned.h +1 -0
  645. data/ext/digest/kangarootwelve/targets/generic64lc/align.h +1 -0
  646. data/ext/digest/kangarootwelve/targets/generic64lc/brg_endian.h +1 -0
  647. data/ext/digest/kangarootwelve/targets/generic64lc/config.h +1 -0
  648. data/ext/digest/kangarootwelve/{keccak/reference/ext.link.c → targets/generic64lc/ext.c} +0 -0
  649. data/ext/digest/kangarootwelve/targets/generic64lc/utils.h +1 -0
  650. data/ext/digest/kangarootwelve/targets/list +20 -0
  651. data/ext/digest/kangarootwelve/targets/reference/KangarooTwelve.c +1 -0
  652. data/ext/digest/kangarootwelve/targets/reference/KangarooTwelve.h +1 -0
  653. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-SnP.h +1 -0
  654. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-reference.c +1 -0
  655. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-reference.h +1 -0
  656. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times2-SnP.h +1 -0
  657. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times2-on1.c +1 -0
  658. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times4-SnP.h +1 -0
  659. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times4-on1.c +1 -0
  660. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times8-SnP.h +1 -0
  661. data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times8-on1.c +1 -0
  662. data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-SnP.h +1 -0
  663. data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-reference.c +1 -0
  664. data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-reference.h +1 -0
  665. data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-SnP.h +1 -0
  666. data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-reference.c +1 -0
  667. data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-reference.h +1 -0
  668. data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-SnP.h +1 -0
  669. data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-reference.c +1 -0
  670. data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-reference.h +1 -0
  671. data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.c +1 -0
  672. data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.h +1 -0
  673. data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.inc +1 -0
  674. data/ext/digest/kangarootwelve/targets/reference/Phases.h +1 -0
  675. data/ext/digest/kangarootwelve/targets/reference/PlSnP-Fallback.inc +1 -0
  676. data/ext/digest/kangarootwelve/targets/reference/align.h +1 -0
  677. data/ext/digest/kangarootwelve/targets/reference/brg_endian.h +1 -0
  678. data/ext/digest/kangarootwelve/targets/reference/config.h +1 -0
  679. data/ext/digest/kangarootwelve/targets/reference/displayIntermediateValues.c +1 -0
  680. data/ext/digest/kangarootwelve/targets/reference/displayIntermediateValues.h +1 -0
  681. data/ext/digest/kangarootwelve/{keccak/reference32bits/ext.link.c → targets/reference/ext.c} +0 -0
  682. data/ext/digest/kangarootwelve/targets/reference/utils.h +1 -0
  683. data/ext/digest/kangarootwelve/targets/reference32bits/KangarooTwelve.c +1 -0
  684. data/ext/digest/kangarootwelve/targets/reference32bits/KangarooTwelve.h +1 -0
  685. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-SnP.h +1 -0
  686. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-reference.h +1 -0
  687. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-reference32BI.c +1 -0
  688. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times2-SnP.h +1 -0
  689. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times2-on1.c +1 -0
  690. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times4-SnP.h +1 -0
  691. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times4-on1.c +1 -0
  692. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times8-SnP.h +1 -0
  693. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times8-on1.c +1 -0
  694. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-SnP.h +1 -0
  695. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-reference.c +1 -0
  696. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-reference.h +1 -0
  697. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-SnP.h +1 -0
  698. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-reference.c +1 -0
  699. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-reference.h +1 -0
  700. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-SnP.h +1 -0
  701. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-reference.c +1 -0
  702. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-reference.h +1 -0
  703. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.c +1 -0
  704. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.h +1 -0
  705. data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.inc +1 -0
  706. data/ext/digest/kangarootwelve/targets/reference32bits/Phases.h +1 -0
  707. data/ext/digest/kangarootwelve/targets/reference32bits/PlSnP-Fallback.inc +1 -0
  708. data/ext/digest/kangarootwelve/targets/reference32bits/align.h +1 -0
  709. data/ext/digest/kangarootwelve/targets/reference32bits/brg_endian.h +1 -0
  710. data/ext/digest/kangarootwelve/targets/reference32bits/config.h +1 -0
  711. data/ext/digest/kangarootwelve/targets/reference32bits/displayIntermediateValues.c +1 -0
  712. data/ext/digest/kangarootwelve/targets/reference32bits/displayIntermediateValues.h +1 -0
  713. data/ext/digest/kangarootwelve/{keccak/sandybridge/ext.link.c → targets/reference32bits/ext.c} +0 -0
  714. data/ext/digest/kangarootwelve/targets/reference32bits/utils.h +1 -0
  715. data/ext/digest/kangarootwelve/targets/ssse3/KangarooTwelve.c +1 -0
  716. data/ext/digest/kangarootwelve/targets/ssse3/KangarooTwelve.h +1 -0
  717. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-64.macros +1 -0
  718. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-SnP.h +1 -0
  719. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-opt64-config.h +1 -0
  720. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-opt64.c +1 -0
  721. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times2-SIMD128.c +1 -0
  722. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times2-SnP.h +1 -0
  723. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times4-SnP.h +1 -0
  724. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times4-on2.c +1 -0
  725. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times8-SnP.h +1 -0
  726. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times8-on2.c +1 -0
  727. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-unrolling.macros +1 -0
  728. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-SnP.h +1 -0
  729. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-reference.c +1 -0
  730. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-reference.h +1 -0
  731. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-SnP.h +1 -0
  732. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-reference.c +1 -0
  733. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-reference.h +1 -0
  734. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-SnP.h +1 -0
  735. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32-bis.macros +1 -0
  736. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32-config.h +1 -0
  737. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32.c +1 -0
  738. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32.macros +1 -0
  739. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-unrolling-bis.macros +1 -0
  740. data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-unrolling.macros +1 -0
  741. data/ext/digest/kangarootwelve/targets/ssse3/KeccakSponge.c +1 -0
  742. data/ext/digest/kangarootwelve/targets/ssse3/KeccakSponge.h +1 -0
  743. data/ext/digest/kangarootwelve/targets/ssse3/KeccakSponge.inc +1 -0
  744. data/ext/digest/kangarootwelve/targets/ssse3/Phases.h +1 -0
  745. data/ext/digest/kangarootwelve/targets/ssse3/PlSnP-Fallback.inc +1 -0
  746. data/ext/digest/kangarootwelve/targets/ssse3/SIMD128-config.h +1 -0
  747. data/ext/digest/kangarootwelve/targets/ssse3/SnP-Relaned.h +1 -0
  748. data/ext/digest/kangarootwelve/targets/ssse3/align.h +1 -0
  749. data/ext/digest/kangarootwelve/targets/ssse3/brg_endian.h +1 -0
  750. data/ext/digest/kangarootwelve/targets/ssse3/config.h +1 -0
  751. data/ext/digest/kangarootwelve/{keccak/skylakex/ext.link.c → targets/ssse3/ext.c} +0 -0
  752. data/ext/digest/kangarootwelve/targets/ssse3/utils.h +1 -0
  753. data/ext/digest/kangarootwelve/targets/xop/KangarooTwelve.c +1 -0
  754. data/ext/digest/kangarootwelve/targets/xop/KangarooTwelve.h +1 -0
  755. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-SnP.h +1 -0
  756. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-XOP-config.h +1 -0
  757. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-XOP.c +1 -0
  758. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times2-SIMD128.c +1 -0
  759. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times2-SnP.h +1 -0
  760. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times4-SnP.h +1 -0
  761. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times4-on2.c +1 -0
  762. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times8-SnP.h +1 -0
  763. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times8-on2.c +1 -0
  764. data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-unrolling.macros +1 -0
  765. data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-SnP.h +1 -0
  766. data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-reference.c +1 -0
  767. data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-reference.h +1 -0
  768. data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-SnP.h +1 -0
  769. data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-reference.c +1 -0
  770. data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-reference.h +1 -0
  771. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-SnP.h +1 -0
  772. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32-bis.macros +1 -0
  773. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32-config.h +1 -0
  774. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32.c +1 -0
  775. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32.macros +1 -0
  776. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-unrolling-bis.macros +1 -0
  777. data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-unrolling.macros +1 -0
  778. data/ext/digest/kangarootwelve/targets/xop/KeccakSponge.c +1 -0
  779. data/ext/digest/kangarootwelve/targets/xop/KeccakSponge.h +1 -0
  780. data/ext/digest/kangarootwelve/targets/xop/KeccakSponge.inc +1 -0
  781. data/ext/digest/kangarootwelve/targets/xop/Phases.h +1 -0
  782. data/ext/digest/kangarootwelve/targets/xop/PlSnP-Fallback.inc +1 -0
  783. data/ext/digest/kangarootwelve/targets/xop/SIMD128-config.h +1 -0
  784. data/ext/digest/kangarootwelve/targets/xop/SnP-Relaned.h +1 -0
  785. data/ext/digest/kangarootwelve/targets/xop/align.h +1 -0
  786. data/ext/digest/kangarootwelve/targets/xop/brg_endian.h +1 -0
  787. data/ext/digest/kangarootwelve/targets/xop/config.h +1 -0
  788. data/ext/digest/kangarootwelve/targets/xop/ext.c +1 -0
  789. data/ext/digest/kangarootwelve/targets/xop/utils.h +1 -0
  790. data/lib/digest/kangarootwelve/version.rb +1 -1
  791. data/rakelib/alt-install-task.rake +58 -0
  792. data/test/test.rb +5 -3
  793. metadata +814 -300
  794. data/ext/digest/kangarootwelve/keccak/armv6m/KangarooTwelve.link.c +0 -1
  795. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakDuplexWidth1600.link.c +0 -1
  796. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-SnP.h +0 -36
  797. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times2-SnP.h +0 -45
  798. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times2-on1.c +0 -37
  799. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times4-SnP.h +0 -45
  800. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times4-on1.c +0 -37
  801. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times8-SnP.h +0 -45
  802. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times8-on1.c +0 -37
  803. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-u2-32bi-armv6m-le-gcc.s +0 -1334
  804. data/ext/digest/kangarootwelve/keccak/armv6m/KeccakSpongeWidth1600.link.c +0 -1
  805. data/ext/digest/kangarootwelve/keccak/armv6m/PlSnP-Fallback.inc +0 -287
  806. data/ext/digest/kangarootwelve/keccak/armv7a/KangarooTwelve.link.c +0 -1
  807. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakDuplexWidth1600.link.c +0 -1
  808. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-SnP.h +0 -37
  809. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-armv7a-le-neon-gcc.s +0 -826
  810. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-inplace-pl2-armv7a-neon-le-gcc.s +0 -1245
  811. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times2-SnP.h +0 -38
  812. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times4-SnP.h +0 -45
  813. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times4-on2.c +0 -38
  814. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times8-SnP.h +0 -45
  815. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times8-on2.c +0 -38
  816. data/ext/digest/kangarootwelve/keccak/armv7a/KeccakSpongeWidth1600.link.c +0 -1
  817. data/ext/digest/kangarootwelve/keccak/armv7a/PlSnP-Fallback.inc +0 -287
  818. data/ext/digest/kangarootwelve/keccak/armv7m/KangarooTwelve.link.c +0 -1
  819. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakDuplexWidth1600.link.c +0 -1
  820. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-SnP.h +0 -36
  821. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-inplace-32bi-armv7m-le-gcc.s +0 -1170
  822. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times2-SnP.h +0 -45
  823. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times2-on1.c +0 -37
  824. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times4-SnP.h +0 -45
  825. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times4-on1.c +0 -37
  826. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times8-SnP.h +0 -45
  827. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times8-on1.c +0 -37
  828. data/ext/digest/kangarootwelve/keccak/armv7m/KeccakSpongeWidth1600.link.c +0 -1
  829. data/ext/digest/kangarootwelve/keccak/armv7m/PlSnP-Fallback.inc +0 -287
  830. data/ext/digest/kangarootwelve/keccak/armv8a/KangarooTwelve.link.c +0 -1
  831. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakDuplexWidth1600.link.c +0 -1
  832. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-SnP.h +0 -28
  833. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-armv8a-neon.s +0 -537
  834. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times2-SnP.h +0 -45
  835. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times2-on1.c +0 -37
  836. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times4-SnP.h +0 -45
  837. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times4-on1.c +0 -37
  838. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times8-SnP.h +0 -45
  839. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times8-on1.c +0 -37
  840. data/ext/digest/kangarootwelve/keccak/armv8a/KeccakSpongeWidth1600.link.c +0 -1
  841. data/ext/digest/kangarootwelve/keccak/armv8a/PlSnP-Fallback.inc +0 -287
  842. data/ext/digest/kangarootwelve/keccak/asmx86-64/KangarooTwelve.link.c +0 -1
  843. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakDuplexWidth1600.link.c +0 -1
  844. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-SnP.h +0 -37
  845. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times2-SnP.h +0 -45
  846. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times2-on1.c +0 -37
  847. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times4-SnP.h +0 -45
  848. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times4-on1.c +0 -37
  849. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times8-SnP.h +0 -45
  850. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times8-on1.c +0 -37
  851. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-x86-64-gas.s +0 -1190
  852. data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakSpongeWidth1600.link.c +0 -1
  853. data/ext/digest/kangarootwelve/keccak/asmx86-64/PlSnP-Fallback.inc +0 -287
  854. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KangarooTwelve.link.c +0 -1
  855. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakDuplexWidth1600.link.c +0 -1
  856. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-SnP.h +0 -37
  857. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times2-SnP.h +0 -45
  858. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times2-on1.c +0 -37
  859. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times4-SnP.h +0 -45
  860. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times4-on1.c +0 -37
  861. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times8-SnP.h +0 -45
  862. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times8-on1.c +0 -37
  863. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-x86-64-shld-gas.s +0 -1190
  864. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakSpongeWidth1600.link.c +0 -1
  865. data/ext/digest/kangarootwelve/keccak/asmx86-64shld/PlSnP-Fallback.inc +0 -287
  866. data/ext/digest/kangarootwelve/keccak/avr8/KangarooTwelve.link.c +0 -1
  867. data/ext/digest/kangarootwelve/keccak/avr8/KeccakDuplexWidth1600.link.c +0 -1
  868. data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-SnP.h +0 -37
  869. data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-avr8-fast.s +0 -1116
  870. data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times2-SnP.h +0 -45
  871. data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times2-on1.c +0 -37
  872. data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times4-SnP.h +0 -45
  873. data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times4-on1.c +0 -37
  874. data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times8-SnP.h +0 -45
  875. data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times8-on1.c +0 -37
  876. data/ext/digest/kangarootwelve/keccak/avr8/KeccakSpongeWidth1600.link.c +0 -1
  877. data/ext/digest/kangarootwelve/keccak/avr8/PlSnP-Fallback.inc +0 -287
  878. data/ext/digest/kangarootwelve/keccak/bulldozer/KangarooTwelve.link.c +0 -1
  879. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakDuplexWidth1600.link.c +0 -1
  880. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-SnP.h +0 -39
  881. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-XOP.c +0 -473
  882. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times2-SIMD128.c +0 -954
  883. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times2-SnP.h +0 -47
  884. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times4-SnP.h +0 -45
  885. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times4-on2.c +0 -38
  886. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times8-SnP.h +0 -45
  887. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times8-on2.c +0 -38
  888. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-unrolling.macros +0 -302
  889. data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakSpongeWidth1600.link.c +0 -1
  890. data/ext/digest/kangarootwelve/keccak/bulldozer/PlSnP-Fallback.inc +0 -287
  891. data/ext/digest/kangarootwelve/keccak/bulldozer/SnP-Relaned.h +0 -140
  892. data/ext/digest/kangarootwelve/keccak/common/KangarooTwelve.c +0 -271
  893. data/ext/digest/kangarootwelve/keccak/common/KangarooTwelve.h +0 -89
  894. data/ext/digest/kangarootwelve/keccak/common/KeccakDuplex-common.h +0 -37
  895. data/ext/digest/kangarootwelve/keccak/common/KeccakDuplex.inc +0 -192
  896. data/ext/digest/kangarootwelve/keccak/common/KeccakDuplexWidth1600.c +0 -34
  897. data/ext/digest/kangarootwelve/keccak/common/KeccakDuplexWidth1600.h +0 -25
  898. data/ext/digest/kangarootwelve/keccak/common/KeccakSponge-common.h +0 -35
  899. data/ext/digest/kangarootwelve/keccak/common/KeccakSponge.inc +0 -311
  900. data/ext/digest/kangarootwelve/keccak/common/KeccakSpongeWidth1600.c +0 -54
  901. data/ext/digest/kangarootwelve/keccak/common/KeccakSpongeWidth1600.h +0 -31
  902. data/ext/digest/kangarootwelve/keccak/common/Phases.h +0 -22
  903. data/ext/digest/kangarootwelve/keccak/common/align.h +0 -32
  904. data/ext/digest/kangarootwelve/keccak/common/brg_endian.h +0 -142
  905. data/ext/digest/kangarootwelve/keccak/compact/KangarooTwelve.link.c +0 -1
  906. data/ext/digest/kangarootwelve/keccak/compact/KeccakDuplexWidth1600.link.c +0 -1
  907. data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-SnP.h +0 -35
  908. data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-compact64.c +0 -416
  909. data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times2-SnP.h +0 -45
  910. data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times2-on1.c +0 -37
  911. data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times4-SnP.h +0 -45
  912. data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times4-on1.c +0 -37
  913. data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times8-SnP.h +0 -45
  914. data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times8-on1.c +0 -37
  915. data/ext/digest/kangarootwelve/keccak/compact/KeccakSpongeWidth1600.link.c +0 -1
  916. data/ext/digest/kangarootwelve/keccak/compact/PlSnP-Fallback.inc +0 -287
  917. data/ext/digest/kangarootwelve/keccak/compact/SnP-Relaned.h +0 -140
  918. data/ext/digest/kangarootwelve/keccak/generic32/KangarooTwelve.link.c +0 -1
  919. data/ext/digest/kangarootwelve/keccak/generic32/KeccakDuplexWidth1600.link.c +0 -1
  920. data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-SnP.h +0 -38
  921. data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-inplace32BI.c +0 -1162
  922. data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times2-SnP.h +0 -45
  923. data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times2-on1.c +0 -37
  924. data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times4-SnP.h +0 -45
  925. data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times4-on1.c +0 -37
  926. data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times8-SnP.h +0 -45
  927. data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times8-on1.c +0 -37
  928. data/ext/digest/kangarootwelve/keccak/generic32/KeccakSpongeWidth1600.link.c +0 -1
  929. data/ext/digest/kangarootwelve/keccak/generic32/PlSnP-Fallback.inc +0 -287
  930. data/ext/digest/kangarootwelve/keccak/generic32/SnP-Relaned.h +0 -140
  931. data/ext/digest/kangarootwelve/keccak/generic32lc/KangarooTwelve.link.c +0 -1
  932. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakDuplexWidth1600.link.c +0 -1
  933. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-SnP.h +0 -38
  934. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-inplace32BI.c +0 -1162
  935. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times2-SnP.h +0 -45
  936. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times2-on1.c +0 -37
  937. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times4-SnP.h +0 -45
  938. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times4-on1.c +0 -37
  939. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times8-SnP.h +0 -45
  940. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times8-on1.c +0 -37
  941. data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakSpongeWidth1600.link.c +0 -1
  942. data/ext/digest/kangarootwelve/keccak/generic32lc/PlSnP-Fallback.inc +0 -287
  943. data/ext/digest/kangarootwelve/keccak/generic32lc/SnP-Relaned.h +0 -140
  944. data/ext/digest/kangarootwelve/keccak/generic64/KangarooTwelve.link.c +0 -1
  945. data/ext/digest/kangarootwelve/keccak/generic64/KeccakDuplexWidth1600.link.c +0 -1
  946. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-64.macros +0 -2195
  947. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-SnP.h +0 -49
  948. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-opt64.c +0 -541
  949. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times2-SnP.h +0 -45
  950. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times2-on1.c +0 -37
  951. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times4-SnP.h +0 -45
  952. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times4-on1.c +0 -37
  953. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times8-SnP.h +0 -45
  954. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times8-on1.c +0 -37
  955. data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-unrolling.macros +0 -302
  956. data/ext/digest/kangarootwelve/keccak/generic64/KeccakSpongeWidth1600.link.c +0 -1
  957. data/ext/digest/kangarootwelve/keccak/generic64/PlSnP-Fallback.inc +0 -287
  958. data/ext/digest/kangarootwelve/keccak/generic64/SnP-Relaned.h +0 -140
  959. data/ext/digest/kangarootwelve/keccak/generic64lc/KangarooTwelve.link.c +0 -1
  960. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakDuplexWidth1600.link.c +0 -1
  961. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-64.macros +0 -2195
  962. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-SnP.h +0 -49
  963. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-opt64.c +0 -541
  964. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times2-SnP.h +0 -45
  965. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times2-on1.c +0 -37
  966. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times4-SnP.h +0 -45
  967. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times4-on1.c +0 -37
  968. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times8-SnP.h +0 -45
  969. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times8-on1.c +0 -37
  970. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-unrolling.macros +0 -302
  971. data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakSpongeWidth1600.link.c +0 -1
  972. data/ext/digest/kangarootwelve/keccak/generic64lc/PlSnP-Fallback.inc +0 -287
  973. data/ext/digest/kangarootwelve/keccak/generic64lc/SnP-Relaned.h +0 -140
  974. data/ext/digest/kangarootwelve/keccak/haswell/KangarooTwelve.link.c +0 -1
  975. data/ext/digest/kangarootwelve/keccak/haswell/KeccakDuplexWidth1600.link.c +0 -1
  976. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-AVX2.s +0 -993
  977. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-SnP.h +0 -41
  978. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times2-SIMD128.c +0 -954
  979. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times2-SnP.h +0 -47
  980. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times4-SIMD256.c +0 -1303
  981. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times4-SnP.h +0 -53
  982. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times8-SnP.h +0 -45
  983. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times8-on4.c +0 -38
  984. data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-unrolling.macros +0 -302
  985. data/ext/digest/kangarootwelve/keccak/haswell/KeccakSpongeWidth1600.link.c +0 -1
  986. data/ext/digest/kangarootwelve/keccak/haswell/PlSnP-Fallback.inc +0 -287
  987. data/ext/digest/kangarootwelve/keccak/haswell/SIMD128-config.h +0 -8
  988. data/ext/digest/kangarootwelve/keccak/nehalem/KangarooTwelve.link.c +0 -1
  989. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakDuplexWidth1600.link.c +0 -1
  990. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-64.macros +0 -2195
  991. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-SnP.h +0 -49
  992. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-opt64-config.h +0 -7
  993. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-opt64.c +0 -541
  994. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times2-SIMD128.c +0 -954
  995. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times2-SnP.h +0 -47
  996. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times4-SnP.h +0 -45
  997. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times4-on2.c +0 -38
  998. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times8-SnP.h +0 -45
  999. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times8-on2.c +0 -38
  1000. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-unrolling.macros +0 -302
  1001. data/ext/digest/kangarootwelve/keccak/nehalem/KeccakSpongeWidth1600.link.c +0 -1
  1002. data/ext/digest/kangarootwelve/keccak/nehalem/PlSnP-Fallback.inc +0 -287
  1003. data/ext/digest/kangarootwelve/keccak/nehalem/SIMD128-config.h +0 -8
  1004. data/ext/digest/kangarootwelve/keccak/nehalem/SnP-Relaned.h +0 -140
  1005. data/ext/digest/kangarootwelve/keccak/reference/KangarooTwelve.link.c +0 -1
  1006. data/ext/digest/kangarootwelve/keccak/reference/KeccakDuplexWidth1600.link.c +0 -1
  1007. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-SnP.h +0 -41
  1008. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-reference.c +0 -424
  1009. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-reference.h +0 -20
  1010. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times2-SnP.h +0 -45
  1011. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times2-on1.c +0 -37
  1012. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times4-SnP.h +0 -45
  1013. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times4-on1.c +0 -37
  1014. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times8-SnP.h +0 -45
  1015. data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times8-on1.c +0 -37
  1016. data/ext/digest/kangarootwelve/keccak/reference/KeccakSpongeWidth1600.link.c +0 -1
  1017. data/ext/digest/kangarootwelve/keccak/reference/PlSnP-Fallback.inc +0 -287
  1018. data/ext/digest/kangarootwelve/keccak/reference/displayIntermediateValues.c +0 -176
  1019. data/ext/digest/kangarootwelve/keccak/reference/displayIntermediateValues.h +0 -29
  1020. data/ext/digest/kangarootwelve/keccak/reference32bits/KangarooTwelve.link.c +0 -1
  1021. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakDuplexWidth1600.link.c +0 -1
  1022. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-SnP.h +0 -41
  1023. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-reference.h +0 -20
  1024. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-reference32BI.c +0 -612
  1025. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times2-SnP.h +0 -45
  1026. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times2-on1.c +0 -37
  1027. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times4-SnP.h +0 -45
  1028. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times4-on1.c +0 -37
  1029. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times8-SnP.h +0 -45
  1030. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times8-on1.c +0 -37
  1031. data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakSpongeWidth1600.link.c +0 -1
  1032. data/ext/digest/kangarootwelve/keccak/reference32bits/PlSnP-Fallback.inc +0 -287
  1033. data/ext/digest/kangarootwelve/keccak/reference32bits/displayIntermediateValues.c +0 -176
  1034. data/ext/digest/kangarootwelve/keccak/reference32bits/displayIntermediateValues.h +0 -29
  1035. data/ext/digest/kangarootwelve/keccak/sandybridge/KangarooTwelve.link.c +0 -1
  1036. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakDuplexWidth1600.link.c +0 -1
  1037. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-64.macros +0 -2195
  1038. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-SnP.h +0 -49
  1039. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-opt64.c +0 -541
  1040. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times2-SIMD128.c +0 -954
  1041. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times2-SnP.h +0 -47
  1042. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times4-SnP.h +0 -45
  1043. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times4-on2.c +0 -38
  1044. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times8-SnP.h +0 -45
  1045. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times8-on2.c +0 -38
  1046. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-unrolling.macros +0 -302
  1047. data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakSpongeWidth1600.link.c +0 -1
  1048. data/ext/digest/kangarootwelve/keccak/sandybridge/PlSnP-Fallback.inc +0 -287
  1049. data/ext/digest/kangarootwelve/keccak/sandybridge/SIMD128-config.h +0 -8
  1050. data/ext/digest/kangarootwelve/keccak/sandybridge/SnP-Relaned.h +0 -140
  1051. data/ext/digest/kangarootwelve/keccak/skylakex/KangarooTwelve.link.c +0 -1
  1052. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakDuplexWidth1600.link.c +0 -1
  1053. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-AVX512.c +0 -621
  1054. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-SnP.h +0 -42
  1055. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times2-SIMD512.c +0 -852
  1056. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times2-SnP.h +0 -49
  1057. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times4-SIMD512.c +0 -883
  1058. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times4-SnP.h +0 -49
  1059. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times8-SIMD512.c +0 -1473
  1060. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times8-SnP.h +0 -53
  1061. data/ext/digest/kangarootwelve/keccak/skylakex/KeccakSpongeWidth1600.link.c +0 -1
@@ -0,0 +1,1339 @@
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 Ronny Van Keer, 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
+ @ WARNING: This implementation assumes a little endian CPU with ARMv6M architecture (e.g., Cortex-M0) and the GCC compiler.
26
+
27
+
28
+ .thumb
29
+ .syntax unified
30
+ .text
31
+
32
+ @ Credit: Henry S. Warren, Hacker's Delight, Addison-Wesley, 2002
33
+ .macro toBitInterleaving in0,in1,out0,out1,t,tt,pMask
34
+
35
+ mov \out0, \in0
36
+ ldr \t, [\pMask, #0]
37
+ ands \out0, \out0, \t
38
+ lsrs \t, \out0, #1
39
+ orrs \out0, \out0, \t
40
+ ldr \t, [\pMask, #4]
41
+ ands \out0, \out0, \t
42
+ lsrs \t, \out0, #2
43
+ orrs \out0, \out0, \t
44
+ ldr \t, [\pMask, #8]
45
+ ands \out0, \out0, \t
46
+ lsrs \t, \out0, #4
47
+ orrs \out0, \out0, \t
48
+ ldr \t, [\pMask, #12]
49
+ ands \out0, \out0, \t
50
+ lsrs \t, \out0, #8
51
+ orrs \out0, \out0, \t
52
+
53
+ mov \out1, \in1
54
+ ldr \t, [\pMask, #0]
55
+ ands \out1, \out1, \t
56
+ lsrs \t, \out1, #1
57
+ orrs \out1, \out1, \t
58
+ ldr \t, [\pMask, #4]
59
+ ands \out1, \out1, \t
60
+ lsrs \t, \out1, #2
61
+ orrs \out1, \out1, \t
62
+ ldr \t, [\pMask, #8]
63
+ ands \out1, \out1, \t
64
+ lsrs \t, \out1, #4
65
+ orrs \out1, \out1, \t
66
+ ldr \t, [\pMask, #12]
67
+ ands \out1, \out1, \t
68
+ lsrs \t, \out1, #8
69
+ orrs \out1, \out1, \t
70
+
71
+ lsls \out0, \out0, #16
72
+ lsrs \out0, \out0, #16
73
+ lsls \out1, \out1, #16
74
+ orrs \out0, \out0, \out1
75
+
76
+ mov \out1, \in0
77
+ ldr \t, [\pMask, #16]
78
+ ands \out1, \out1, \t
79
+ lsls \t, \out1, #1
80
+ orrs \out1, \out1, \t
81
+ ldr \t, [\pMask, #20]
82
+ ands \out1, \out1, \t
83
+ lsls \t, \out1, #2
84
+ orrs \out1, \out1, \t
85
+ ldr \t, [\pMask, #24]
86
+ ands \out1, \out1, \t
87
+ lsls \t, \out1, #4
88
+ orrs \out1, \out1, \t
89
+ ldr \t, [\pMask, #28]
90
+ ands \out1, \out1, \t
91
+ lsls \t, \out1, #8
92
+ orrs \out1, \out1, \t
93
+
94
+ mov \tt, \in1
95
+ ldr \t, [\pMask, #16]
96
+ ands \tt, \tt, \t
97
+ lsls \t, \tt, #1
98
+ orrs \tt, \tt, \t
99
+ ldr \t, [\pMask, #20]
100
+ ands \tt, \tt, \t
101
+ lsls \t, \tt, #2
102
+ orrs \tt, \tt, \t
103
+ ldr \t, [\pMask, #24]
104
+ ands \tt, \tt, \t
105
+ lsls \t, \tt, #4
106
+ orrs \tt, \tt, \t
107
+ ldr \t, [\pMask, #28]
108
+ ands \tt, \tt, \t
109
+ lsls \t, \tt, #8
110
+ orrs \tt, \tt, \t
111
+
112
+ lsrs \out1,\out1, #16
113
+ lsrs \tt, \tt, #16
114
+ lsls \tt, \tt, #16
115
+ orrs \out1,\out1,\tt
116
+ .endm
117
+
118
+ @ Credit: Henry S. Warren, Hacker's Delight, Addison-Wesley, 2002
119
+ .macro fromBitInterleavingStep x, t, tt, pMask, maskofs, shift
120
+
121
+ @ t = (x ^ (x >> shift)) & mask@ x = x ^ t ^ (t << shift)@
122
+ lsrs \t, \x, #\shift
123
+ eors \t, \t, \x
124
+ ldr \tt, [\pMask, #\maskofs]
125
+ ands \t, \t, \tt
126
+ eors \x, \x, \t
127
+ lsls \t, \t, #\shift
128
+ eors \x, \x, \t
129
+ .endm
130
+
131
+ .macro fromBitInterleaving x0, x1, t, tt, pMask
132
+ movs \t, \x0 @ t = x0
133
+ lsls \x0, \x0, #16 @ x0 = (x0 & 0x0000FFFF) | (x1 << 16)@
134
+ lsrs \x0, \x0, #16
135
+ lsls \tt, \x1, #16
136
+ orrs \x0, \x0, \tt
137
+ lsrs \x1, \x1, #16 @ x1 = (t >> 16) | (x1 & 0xFFFF0000)@
138
+ lsls \x1, \x1, #16
139
+ lsrs \t, \t, #16
140
+ orrs \x1, \x1, \t
141
+ fromBitInterleavingStep \x0, \t, \tt, \pMask, 0, 8
142
+ fromBitInterleavingStep \x0, \t, \tt, \pMask, 4, 4
143
+ fromBitInterleavingStep \x0, \t, \tt, \pMask, 8, 2
144
+ fromBitInterleavingStep \x0, \t, \tt, \pMask, 12, 1
145
+ fromBitInterleavingStep \x1, \t, \tt, \pMask, 0, 8
146
+ fromBitInterleavingStep \x1, \t, \tt, \pMask, 4, 4
147
+ fromBitInterleavingStep \x1, \t, \tt, \pMask, 8, 2
148
+ fromBitInterleavingStep \x1, \t, \tt, \pMask, 12, 1
149
+ .endm
150
+
151
+ @ --- offsets in state
152
+ .equ _ba0 , 0*4
153
+ .equ _ba1 , 1*4
154
+ .equ _be0 , 2*4
155
+ .equ _be1 , 3*4
156
+ .equ _bi0 , 4*4
157
+ .equ _bi1 , 5*4
158
+ .equ _bo0 , 6*4
159
+ .equ _bo1 , 7*4
160
+ .equ _bu0 , 8*4
161
+ .equ _bu1 , 9*4
162
+ .equ _ga0 , 10*4
163
+ .equ _ga1 , 11*4
164
+ .equ _ge0 , 12*4
165
+ .equ _ge1 , 13*4
166
+ .equ _gi0 , 14*4
167
+ .equ _gi1 , 15*4
168
+ .equ _go0 , 16*4
169
+ .equ _go1 , 17*4
170
+ .equ _gu0 , 18*4
171
+ .equ _gu1 , 19*4
172
+ .equ _ka0 , 20*4
173
+ .equ _ka1 , 21*4
174
+ .equ _ke0 , 22*4
175
+ .equ _ke1 , 23*4
176
+ .equ _ki0 , 24*4
177
+ .equ _ki1 , 25*4
178
+ .equ _ko0 , 26*4
179
+ .equ _ko1 , 27*4
180
+ .equ _ku0 , 28*4
181
+ .equ _ku1 , 29*4
182
+ .equ _ma0 , 30*4
183
+ .equ _ma1 , 31*4
184
+ .equ _me0 , 32*4
185
+ .equ _me1 , 33*4
186
+ .equ _mi0 , 34*4
187
+ .equ _mi1 , 35*4
188
+ .equ _mo0 , 36*4
189
+ .equ _mo1 , 37*4
190
+ .equ _mu0 , 38*4
191
+ .equ _mu1 , 39*4
192
+ .equ _sa0 , 40*4
193
+ .equ _sa1 , 41*4
194
+ .equ _se0 , 42*4
195
+ .equ _se1 , 43*4
196
+ .equ _si0 , 44*4
197
+ .equ _si1 , 45*4
198
+ .equ _so0 , 46*4
199
+ .equ _so1 , 47*4
200
+ .equ _su0 , 48*4
201
+ .equ _su1 , 49*4
202
+
203
+ @ --- offsets on stack
204
+ .equ mEs , 0 @ Secondary state
205
+ .equ mD , 25*2*4
206
+ .equ mDo0 , mD+0*4
207
+ .equ mDo1 , mD+1*4
208
+ .equ mDu0 , mD+2*4
209
+ .equ mDu1 , mD+3*4
210
+ .equ mRC , mD+4*4
211
+ .equ mRFU , mD+5*4
212
+ .equ mSize , mD+6*4
213
+
214
+ @ --- macros
215
+
216
+ .macro load reg, stkIn, offset
217
+ .if \stkIn == 1
218
+ ldr \reg, [sp, #\offset]
219
+ .else
220
+ .if \offset >= _ma0
221
+ ldr \reg, [r7, #\offset-_ma0]
222
+ .else
223
+ ldr \reg, [r0, #\offset]
224
+ .endif
225
+ .endif
226
+ .endm
227
+
228
+ .macro store reg, stkIn, offset
229
+ .if \stkIn == 0
230
+ str \reg, [sp, #\offset]
231
+ .else
232
+ .if \offset >= _ma0
233
+ str \reg, [r7, #\offset-_ma0]
234
+ .else
235
+ str \reg, [r0, #\offset]
236
+ .endif
237
+ .endif
238
+ .endm
239
+
240
+ .macro xor5 stkIn, result,b,g,k,m,s
241
+ load \result, \stkIn, \b
242
+ load r6, \stkIn, \g
243
+ eors \result, \result, r6
244
+ load r6, \stkIn, \k
245
+ eors \result, \result, r6
246
+ load r6, \stkIn, \m
247
+ eors \result, \result, r6
248
+ load r6, \stkIn, \s
249
+ eors \result, \result, r6
250
+ .endm
251
+
252
+ .macro te0m oD, rCp0, rCn1
253
+ rors \rCn1, \rCn1, r4
254
+ eors \rCn1, \rCn1, \rCp0
255
+ str \rCn1, [sp, #\oD]
256
+ .endm
257
+
258
+ .macro te1m oD, rCp1, rCn0
259
+ eors \rCn0, \rCn0, \rCp1
260
+ str \rCn0, [sp, #\oD]
261
+ .endm
262
+
263
+ .macro te0r rD, rCp0, rCn1
264
+ rors \rCn1, \rCn1, r4
265
+ eors \rCn1, \rCn1, \rCp0
266
+ mov \rD, \rCn1
267
+ .endm
268
+
269
+ .macro te1r rD, rCp1, rCn0
270
+ eors \rCn0, \rCn0, \rCp1
271
+ mov \rD, \rCn0
272
+ .endm
273
+
274
+ .macro trp1 stkIn, b, ofS, orD, fD, rot
275
+ load \b, \stkIn, \ofS
276
+ .if \fD != 0
277
+ mov r6, \orD
278
+ .else
279
+ ldr r6, [sp, #\orD]
280
+ .endif
281
+ eors \b, \b, r6
282
+ .if \rot != 0
283
+ movs r6, #32-\rot
284
+ rors \b, \b, r6
285
+ .endif
286
+ .endm
287
+
288
+ .macro trp5 stkIn, oS0, orD0, fD0, oR0, oS1, orD1, fD1, oR1, oS2, orD2, fD2, oR2, oS3, orD3, fD3, oR3, oS4, orD4, fD4, oR4
289
+ trp1 \stkIn, r1, \oS0, \orD0, \fD0, \oR0
290
+ trp1 \stkIn, r2, \oS1, \orD1, \fD1, \oR1
291
+ trp1 \stkIn, r3, \oS2, \orD2, \fD2, \oR2
292
+ trp1 \stkIn, r4, \oS3, \orD3, \fD3, \oR3
293
+ trp1 \stkIn, r5, \oS4, \orD4, \fD4, \oR4
294
+ .endm
295
+
296
+ .macro chio1 stkIn, oOut, ax0, ax1, ax2, iota, useax2
297
+ .if \useax2 != 0
298
+ bics \ax2, \ax2, \ax1 @ A[x+2] = A[x+2] & ~A[x+1]
299
+ eors \ax2, \ax2, \ax0 @ A[x+2] = A[x+2] ^ A[x]
300
+ .if \iota != 0xFF
301
+ ldr r1, [sp, #mRC]
302
+ ldr r4, [r1, #\iota]
303
+ eors \ax2, \ax2, r4
304
+ .endif
305
+ store \ax2, \stkIn, \oOut
306
+ .else
307
+ mov r6, \ax2 @ T1 = A[x+2]
308
+ bics r6, r6, \ax1 @ T1 = T1 & ~A[x+1]
309
+ eors r6, r6, \ax0 @ T1 = T1 ^ A[x]
310
+ store r6, \stkIn, \oOut
311
+ .endif
312
+ .endm
313
+
314
+ .macro chio5 stkIn, oOut, iota
315
+ chio1 \stkIn, \oOut+8*4, r5, r1, r2, 0xFF, 0
316
+ chio1 \stkIn, \oOut+6*4, r4, r5, r1, 0xFF, 0
317
+ chio1 \stkIn, \oOut+4*4, r3, r4, r5, 0xFF, 1
318
+ chio1 \stkIn, \oOut+2*4, r2, r3, r4, 0xFF, 1
319
+ chio1 \stkIn, \oOut+0*4, r1, r2, r3, \iota, 1
320
+ .endm
321
+
322
+ .macro Kround stkIn, iota
323
+
324
+ @ prepare Theta
325
+ movs r4, #31
326
+
327
+ xor5 \stkIn, r1, _be1, _ge1, _ke1, _me1, _se1
328
+ xor5 \stkIn, r2, _bu0, _gu0, _ku0, _mu0, _su0
329
+ mov r6, r1
330
+ te0r r8, r2, r6
331
+
332
+ xor5 \stkIn, r3, _bi1, _gi1, _ki1, _mi1, _si1
333
+ te1m mDo1, r3, r2
334
+
335
+ xor5 \stkIn, r2, _ba0, _ga0, _ka0, _ma0, _sa0
336
+ te0r r10, r2, r3
337
+
338
+ xor5 \stkIn, r3, _bo1, _go1, _ko1, _mo1, _so1
339
+ te1m mDu1, r3, r2
340
+
341
+ xor5 \stkIn, r2, _be0, _ge0, _ke0, _me0, _se0
342
+ te0r r12, r2, r3
343
+
344
+ xor5 \stkIn, r3, _bu1, _gu1, _ku1, _mu1, _su1
345
+ te1r r9, r3, r2
346
+
347
+ xor5 \stkIn, r2, _bi0, _gi0, _ki0, _mi0, _si0
348
+ te0m mDo0, r2, r3
349
+
350
+ xor5 \stkIn, r3, _ba1, _ga1, _ka1, _ma1, _sa1
351
+ te1r r11, r3, r2
352
+
353
+ xor5 \stkIn, r2, _bo0, _go0, _ko0, _mo0, _so0
354
+ te0m mDu0, r2, r3
355
+ te1r lr, r1, r2
356
+
357
+ trp5 \stkIn, _bi0, r12, 1, 31, _go1, mDo1, 0, 28, _ku1, mDu1, 0, 20, _ma1, r9, 1, 21, _se0, r10, 1, 1
358
+ chio5 \stkIn, _sa0, 0xFF
359
+ trp5 \stkIn, _bi1, lr, 1, 31, _go0, mDo0, 0, 27, _ku0, mDu0, 0, 19, _ma0, r8, 1, 20, _se1, r11, 1, 1
360
+ chio5 \stkIn, _sa1, 0xFF
361
+
362
+ trp5 \stkIn, _bu1, mDu1, 0, 14, _ga0, r8, 1, 18, _ke0, r10, 1, 5, _mi1, lr, 1, 8, _so0, mDo0, 0, 28
363
+ chio5 \stkIn, _ma0, 0xFF
364
+ trp5 \stkIn, _bu0, mDu0, 0, 13, _ga1, r9, 1, 18, _ke1, r11, 1, 5, _mi0, r12, 1, 7, _so1, mDo1, 0, 28
365
+ chio5 \stkIn, _ma1, 0xFF
366
+
367
+ trp5 \stkIn, _be1, r11, 1, 1, _gi0, r12, 1, 3, _ko1, mDo1, 0, 13, _mu0, mDu0, 0, 4, _sa0, r8, 1, 9
368
+ chio5 \stkIn, _ka0, 0xFF
369
+ trp5 \stkIn, _be0, r10, 1, 0, _gi1, lr, 1, 3, _ko0, mDo0, 0, 12, _mu1, mDu1, 0, 4, _sa1, r9, 1, 9
370
+ chio5 \stkIn, _ka1, 0xFF
371
+
372
+ trp5 \stkIn, _bo0, mDo0, 0, 14, _gu0, mDu0, 0, 10, _ka1, r9, 1, 2, _me1, r11, 1, 23, _si1, lr, 1, 31
373
+ chio5 \stkIn, _ga0, 0xFF
374
+ trp5 \stkIn, _bo1, mDo1, 0, 14, _gu1, mDu1, 0, 10, _ka0, r8, 1, 1, _me0, r10, 1, 22, _si0, r12, 1, 30
375
+ chio5 \stkIn, _ga1, 0xFF
376
+
377
+ trp5 \stkIn, _ba0, r8, 1, 0, _ge0, r10, 1, 22, _ki1, lr, 1, 22, _mo1, mDo1, 0, 11, _su0, mDu0, 0, 7
378
+ chio5 \stkIn, _ba0, \iota+0
379
+ trp5 \stkIn, _ba1, r9, 1, 0, _ge1, r11, 1, 22, _ki0, r12, 1, 21, _mo0, mDo0, 0, 10, _su1, mDu1, 0, 7
380
+ chio5 \stkIn, _ba1, \iota+4
381
+ .endm
382
+
383
+ @----------------------------------------------------------------------------
384
+ @
385
+ @ void KeccakP1600_StaticInitialize( void )
386
+ @
387
+ .align 8
388
+ .global KeccakP1600_StaticInitialize
389
+ .type KeccakP1600_StaticInitialize, %function;
390
+ KeccakP1600_StaticInitialize:
391
+ bx lr
392
+
393
+
394
+ @----------------------------------------------------------------------------
395
+ @
396
+ @ void KeccakP1600_Initialize(void *state)
397
+ @
398
+ .align 8
399
+ .global KeccakP1600_Initialize
400
+ .type KeccakP1600_Initialize, %function;
401
+ KeccakP1600_Initialize:
402
+ push {r4 - r5}
403
+ movs r1, #0
404
+ movs r2, #0
405
+ movs r3, #0
406
+ movs r4, #0
407
+ movs r5, #0
408
+ stmia r0!, { r1 - r5 }
409
+ stmia r0!, { r1 - r5 }
410
+ stmia r0!, { r1 - r5 }
411
+ stmia r0!, { r1 - r5 }
412
+ stmia r0!, { r1 - r5 }
413
+ stmia r0!, { r1 - r5 }
414
+ stmia r0!, { r1 - r5 }
415
+ stmia r0!, { r1 - r5 }
416
+ stmia r0!, { r1 - r5 }
417
+ stmia r0!, { r1 - r5 }
418
+ pop {r4 - r5}
419
+ bx lr
420
+
421
+
422
+ @ ----------------------------------------------------------------------------
423
+ @
424
+ @ void KeccakP1600_AddByte(void *state, unsigned char byte, unsigned int offset)
425
+ @
426
+ .align 8
427
+ .global KeccakP1600_AddByte
428
+ .type KeccakP1600_AddByte, %function;
429
+ KeccakP1600_AddByte:
430
+ push {r4 - r7}
431
+ mov r4, r8
432
+ mov r5, r9
433
+ push {r4 - r5}
434
+ lsrs r4, r2, #3 @ offset &= ~7
435
+ lsls r4, r4, #3
436
+ adds r0, r0, r4 @ add whole lane offset to state pointer
437
+ lsls r2, r2, #29 @ offset &= 7 (part not lane aligned)
438
+ lsrs r2, r2, #29
439
+ adr r7, KeccakP1600_AddBytes_ToBitInterleavingConstants
440
+ movs r4, #0
441
+ movs r5, #0
442
+ push { r4 - r5 }
443
+ add r2, r2, sp
444
+ strb r1, [r2]
445
+ pop { r4 - r5 }
446
+ mov r8, r4
447
+ mov r9, r5
448
+ toBitInterleaving r8, r9, r4, r5, r6, r2, r7
449
+ ldr r6, [r0]
450
+ eors r4, r4, r6
451
+ ldr r6, [r0, #4]
452
+ eors r5, r5, r6
453
+ stmia r0!, { r4, r5 }
454
+ pop {r4 - r5}
455
+ mov r8, r4
456
+ mov r9, r5
457
+ pop {r4 - r7}
458
+ bx lr
459
+
460
+
461
+ @----------------------------------------------------------------------------
462
+ @
463
+ @ void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
464
+ @
465
+ .align 8
466
+ .global KeccakP1600_AddBytes
467
+ .type KeccakP1600_AddBytes, %function;
468
+ KeccakP1600_AddBytes:
469
+ cmp r3, #0 @ .if length != 0
470
+ beq KeccakP1600_AddBytes_Exit1
471
+ push {r4 - r6, lr} @ then
472
+ mov r4, r8
473
+ mov r5, r9
474
+ mov r6, r10
475
+ push {r4 - r7}
476
+ lsrs r4, r2, #3 @ offset &= ~7
477
+ lsls r4, r4, #3
478
+ adds r0, r0, r4 @ add whole lane offset to state pointer
479
+ lsls r2, r2, #29 @ offset &= 7 (part not lane aligned)
480
+ lsrs r2, r2, #29
481
+ beq KeccakP1600_AddBytes_CheckLanes @ .if offset != 0
482
+ movs r4, r3 @ then, do remaining bytes in first lane
483
+ movs r5, #8
484
+ subs r5, r2 @ max size in lane = 8 - offset
485
+ cmp r4, r5
486
+ ble KeccakP1600_AddBytes_BytesAlign
487
+ movs r4, r5
488
+ KeccakP1600_AddBytes_BytesAlign:
489
+ subs r3, r3, r4 @ size left
490
+ mov r10, r3
491
+ movs r3, r4
492
+ adr r7, KeccakP1600_AddBytes_ToBitInterleavingConstants
493
+ bl __KeccakP1600_AddBytesInLane
494
+ mov r3, r10
495
+ KeccakP1600_AddBytes_CheckLanes:
496
+ lsrs r2, r3, #3 @ .if length >= 8
497
+ beq KeccakP1600_AddBytes_Bytes
498
+ mov r10, r3
499
+ adr r3, KeccakP1600_AddBytes_ToBitInterleavingConstants
500
+ bl __KeccakP1600_AddLanes
501
+ mov r3, r10
502
+ lsls r3, r3, #29
503
+ lsrs r3, r3, #29
504
+ KeccakP1600_AddBytes_Bytes:
505
+ cmp r3, #0
506
+ beq KeccakP1600_AddBytes_Exit
507
+ movs r2, #0
508
+ adr r7, KeccakP1600_AddBytes_ToBitInterleavingConstants
509
+ bl __KeccakP1600_AddBytesInLane
510
+ KeccakP1600_AddBytes_Exit:
511
+ pop {r4 - r7}
512
+ mov r8, r4
513
+ mov r9, r5
514
+ mov r10, r6
515
+ pop {r4 - r6, pc}
516
+ KeccakP1600_AddBytes_Exit1:
517
+ bx lr
518
+ nop
519
+ KeccakP1600_AddBytes_ToBitInterleavingConstants:
520
+ .long 0x55555555
521
+ .long 0x33333333
522
+ .long 0x0F0F0F0F
523
+ .long 0x00FF00FF
524
+ .long 0xAAAAAAAA
525
+ .long 0xCCCCCCCC
526
+ .long 0xF0F0F0F0
527
+ .long 0xFF00FF00
528
+
529
+
530
+ @----------------------------------------------------------------------------
531
+ @
532
+ @ __KeccakP1600_AddLanes
533
+ @
534
+ @ Input:
535
+ @ r0 state pointer
536
+ @ r1 data pointer
537
+ @ r2 laneCount
538
+ @ r3 to bit interleaving constants pointer
539
+ @
540
+ @ Output:
541
+ @ r0 state pointer next lane
542
+ @ r1 data pointer next byte to input
543
+ @
544
+ @ Changed: r2-r9
545
+ @
546
+ .align 8
547
+ __KeccakP1600_AddLanes:
548
+ lsls r4, r1, #30
549
+ bne __KeccakP1600_AddLanes_LoopUnaligned
550
+ __KeccakP1600_AddLanes_LoopAligned:
551
+ ldmia r1!, {r6,r7}
552
+ mov r8, r6
553
+ mov r9, r7
554
+ toBitInterleaving r8, r9, r6, r7, r5, r4, r3
555
+ ldr r5, [r0]
556
+ eors r6, r6, r5
557
+ ldr r5, [r0, #4]
558
+ eors r7, r7, r5
559
+ stmia r0!, {r6,r7}
560
+ subs r2, r2, #1
561
+ bne __KeccakP1600_AddLanes_LoopAligned
562
+ bx lr
563
+ __KeccakP1600_AddLanes_LoopUnaligned:
564
+ ldrb r6, [r1, #0]
565
+ ldrb r4, [r1, #1]
566
+ lsls r4, r4, #8
567
+ orrs r6, r6, r4
568
+ ldrb r4, [r1, #2]
569
+ lsls r4, r4, #16
570
+ orrs r6, r6, r4
571
+ ldrb r4, [r1, #3]
572
+ lsls r4, r4, #24
573
+ orrs r6, r6, r4
574
+ ldrb r7, [r1, #4]
575
+ ldrb r4, [r1, #5]
576
+ lsls r4, r4, #8
577
+ orrs r7, r7, r4
578
+ ldrb r4, [r1, #6]
579
+ lsls r4, r4, #16
580
+ orrs r7, r7, r4
581
+ ldrb r4, [r1, #7]
582
+ lsls r4, r4, #24
583
+ orrs r7, r7, r4
584
+ adds r1, r1, #8
585
+ mov r8, r6
586
+ mov r9, r7
587
+ toBitInterleaving r8, r9, r6, r7, r5, r4, r3
588
+ ldr r5, [r0]
589
+ eors r6, r6, r5
590
+ ldr r5, [r0, #4]
591
+ eors r7, r7, r5
592
+ stmia r0!, {r6, r7}
593
+ subs r2, r2, #1
594
+ bne __KeccakP1600_AddLanes_LoopUnaligned
595
+ bx lr
596
+
597
+
598
+ @----------------------------------------------------------------------------
599
+ @
600
+ @ __KeccakP1600_AddBytesInLane
601
+ @
602
+ @ Input:
603
+ @ r0 state pointer
604
+ @ r1 data pointer
605
+ @ r2 offset in lane
606
+ @ r3 length
607
+ @ r7 to bit interleaving constants pointer
608
+ @
609
+ @ Output:
610
+ @ r0 state pointer next lane
611
+ @ r1 data pointer next byte to input
612
+ @
613
+ @ Changed: r2-r9
614
+ @
615
+ .align 8
616
+ __KeccakP1600_AddBytesInLane:
617
+ movs r4, #0
618
+ movs r5, #0
619
+ push { r4 - r5 }
620
+ add r2, r2, sp
621
+ __KeccakP1600_AddBytesInLane_Loop:
622
+ ldrb r5, [r1]
623
+ strb r5, [r2]
624
+ adds r1, r1, #1
625
+ adds r2, r2, #1
626
+ subs r3, r3, #1
627
+ bne __KeccakP1600_AddBytesInLane_Loop
628
+ pop { r4 - r5 }
629
+ mov r8, r4
630
+ mov r9, r5
631
+ toBitInterleaving r8, r9, r4, r5, r6, r2, r7
632
+ ldr r6, [r0]
633
+ eors r4, r4, r6
634
+ ldr r6, [r0, #4]
635
+ eors r5, r5, r6
636
+ stmia r0!, { r4, r5 }
637
+ bx lr
638
+
639
+
640
+ @----------------------------------------------------------------------------
641
+ @
642
+ @ void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
643
+ @
644
+ .align 8
645
+ .global KeccakP1600_OverwriteBytes
646
+ .type KeccakP1600_OverwriteBytes, %function;
647
+ KeccakP1600_OverwriteBytes:
648
+ cmp r3, #0 @ .if length != 0
649
+ beq KeccakP1600_OverwriteBytes_Exit1
650
+ push {r4 - r6, lr} @ then
651
+ mov r4, r8
652
+ mov r5, r9
653
+ mov r6, r10
654
+ push {r4 - r7}
655
+ lsrs r4, r2, #3 @ offset &= ~7
656
+ lsls r4, r4, #3
657
+ adds r0, r0, r4 @ add whole lane offset to state pointer
658
+ lsls r2, r2, #29 @ offset &= 7 (part not lane aligned)
659
+ lsrs r2, r2, #29
660
+ beq KeccakP1600_OverwriteBytes_CheckLanes @ .if offset != 0
661
+ movs r4, r3 @ then, do remaining bytes in first lane
662
+ movs r5, #8
663
+ subs r5, r2 @ max size in lane = 8 - offset
664
+ cmp r4, r5
665
+ ble KeccakP1600_OverwriteBytes_BytesAlign
666
+ movs r4, r5
667
+ KeccakP1600_OverwriteBytes_BytesAlign:
668
+ subs r3, r3, r4 @ size left
669
+ mov r10, r3
670
+ movs r3, r4
671
+ adr r7, KeccakP1600_OverwriteBytes_ToBitInterleavingConstants
672
+ bl __KeccakP1600_OverwriteBytesInLane
673
+ mov r3, r10
674
+ KeccakP1600_OverwriteBytes_CheckLanes:
675
+ lsrs r2, r3, #3 @ .if length >= 8
676
+ beq KeccakP1600_OverwriteBytes_Bytes
677
+ mov r10, r3
678
+ adr r3, KeccakP1600_OverwriteBytes_ToBitInterleavingConstants
679
+ bl __KeccakP1600_OverwriteLanes
680
+ mov r3, r10
681
+ lsls r3, r3, #29
682
+ lsrs r3, r3, #29
683
+ KeccakP1600_OverwriteBytes_Bytes:
684
+ cmp r3, #0
685
+ beq KeccakP1600_OverwriteBytes_Exit
686
+ movs r2, #0
687
+ adr r7, KeccakP1600_OverwriteBytes_ToBitInterleavingConstants
688
+ bl __KeccakP1600_OverwriteBytesInLane
689
+ KeccakP1600_OverwriteBytes_Exit:
690
+ pop {r4 - r7}
691
+ mov r8, r4
692
+ mov r9, r5
693
+ mov r10, r6
694
+ pop {r4 - r6, pc}
695
+ KeccakP1600_OverwriteBytes_Exit1:
696
+ bx lr
697
+ nop
698
+ KeccakP1600_OverwriteBytes_ToBitInterleavingConstants:
699
+ .long 0x55555555
700
+ .long 0x33333333
701
+ .long 0x0F0F0F0F
702
+ .long 0x00FF00FF
703
+ .long 0xAAAAAAAA
704
+ .long 0xCCCCCCCC
705
+ .long 0xF0F0F0F0
706
+ .long 0xFF00FF00
707
+
708
+
709
+ @----------------------------------------------------------------------------
710
+ @
711
+ @ __KeccakP1600_OverwriteLanes
712
+ @
713
+ @ Input:
714
+ @ r0 state pointer
715
+ @ r1 data pointer
716
+ @ r2 laneCount
717
+ @ r3 to bit interleaving constants pointer
718
+ @
719
+ @ Output:
720
+ @ r0 state pointer next lane
721
+ @ r1 data pointer next byte to input
722
+ @
723
+ @ Changed: r2-r9
724
+ @
725
+ .align 8
726
+ __KeccakP1600_OverwriteLanes:
727
+ lsls r4, r1, #30
728
+ bne __KeccakP1600_OverwriteLanes_LoopUnaligned
729
+ __KeccakP1600_OverwriteLanes_LoopAligned:
730
+ ldmia r1!, {r6,r7}
731
+ mov r8, r6
732
+ mov r9, r7
733
+ toBitInterleaving r8, r9, r6, r7, r5, r4, r3
734
+ stmia r0!, {r6,r7}
735
+ subs r2, r2, #1
736
+ bne __KeccakP1600_OverwriteLanes_LoopAligned
737
+ bx lr
738
+ __KeccakP1600_OverwriteLanes_LoopUnaligned:
739
+ ldrb r6, [r1, #0]
740
+ ldrb r4, [r1, #1]
741
+ lsls r4, r4, #8
742
+ orrs r6, r6, r4
743
+ ldrb r4, [r1, #2]
744
+ lsls r4, r4, #16
745
+ orrs r6, r6, r4
746
+ ldrb r4, [r1, #3]
747
+ lsls r4, r4, #24
748
+ orrs r6, r6, r4
749
+ ldrb r7, [r1, #4]
750
+ ldrb r4, [r1, #5]
751
+ lsls r4, r4, #8
752
+ orrs r7, r7, r4
753
+ ldrb r4, [r1, #6]
754
+ lsls r4, r4, #16
755
+ orrs r7, r7, r4
756
+ ldrb r4, [r1, #7]
757
+ lsls r4, r4, #24
758
+ orrs r7, r7, r4
759
+ adds r1, r1, #8
760
+ mov r8, r6
761
+ mov r9, r7
762
+ toBitInterleaving r8, r9, r6, r7, r5, r4, r3
763
+ stmia r0!, {r6, r7}
764
+ subs r2, r2, #1
765
+ bne __KeccakP1600_OverwriteLanes_LoopUnaligned
766
+ bx lr
767
+
768
+
769
+ @----------------------------------------------------------------------------
770
+ @
771
+ @ __KeccakP1600_OverwriteBytesInLane
772
+ @
773
+ @ Input:
774
+ @ r0 state pointer
775
+ @ r1 data pointer
776
+ @ r2 offset in lane
777
+ @ r3 length
778
+ @ r7 to bit interleaving constants pointer
779
+ @
780
+ @ Output:
781
+ @ r0 state pointer next lane
782
+ @ r1 data pointer next byte to input
783
+ @
784
+ @ Changed: r2-r9
785
+ @
786
+ .align 8
787
+ __KeccakP1600_OverwriteBytesInLane:
788
+ movs r4, #0
789
+ movs r5, #0
790
+ push { r4 - r5 }
791
+ lsls r6, r2, #2
792
+ add r2, r2, sp
793
+ movs r4, #0x0F @r4 mask to wipe nibbles(bit interleaved bytes) in state
794
+ lsls r4, r4, r6
795
+ movs r6, r4
796
+ __KeccakP1600_OverwriteBytesInLane_Loop:
797
+ orrs r6, r6, r4
798
+ lsls r4, r4, #4
799
+ ldrb r5, [r1]
800
+ strb r5, [r2]
801
+ adds r1, r1, #1
802
+ adds r2, r2, #1
803
+ subs r3, r3, #1
804
+ bne __KeccakP1600_OverwriteBytesInLane_Loop
805
+ pop { r4 - r5 }
806
+ mov r8, r4
807
+ mov r9, r5
808
+ toBitInterleaving r8, r9, r4, r5, r3, r2, r7
809
+ ldr r3, [r0]
810
+ bics r3, r3, r6
811
+ eors r4, r4, r3
812
+ ldr r3, [r0, #4]
813
+ bics r3, r3, r6
814
+ eors r5, r5, r3
815
+ stmia r0!, { r4, r5 }
816
+ bx lr
817
+
818
+
819
+ @----------------------------------------------------------------------------
820
+ @
821
+ @ void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount)
822
+ @
823
+ .align 8
824
+ .global KeccakP1600_OverwriteWithZeroes
825
+ .type KeccakP1600_OverwriteWithZeroes, %function;
826
+ KeccakP1600_OverwriteWithZeroes:
827
+ push {r4 - r5}
828
+ lsrs r2, r1, #3
829
+ beq KeccakP1600_OverwriteWithZeroes_Bytes
830
+ movs r4, #0
831
+ movs r5, #0
832
+ KeccakP1600_OverwriteWithZeroes_LoopLanes:
833
+ stm r0!, { r4, r5 }
834
+ subs r2, r2, #1
835
+ bne KeccakP1600_OverwriteWithZeroes_LoopLanes
836
+ KeccakP1600_OverwriteWithZeroes_Bytes:
837
+ lsls r1, r1, #32-3
838
+ beq KeccakP1600_OverwriteWithZeroes_Exit
839
+ lsrs r1, r1, #32-3
840
+ movs r3, #0x0F @r2 already zero, r3 = mask to wipe nibbles(bit interleaved bytes) in state
841
+ KeccakP1600_OverwriteWithZeroes_LoopBytes:
842
+ orrs r2, r2, r3
843
+ lsls r3, r3, #4
844
+ subs r1, r1, #1
845
+ bne KeccakP1600_OverwriteWithZeroes_LoopBytes
846
+ ldr r4, [r0]
847
+ ldr r5, [r0, #4]
848
+ bics r4, r4, r2
849
+ bics r5, r5, r2
850
+ stm r0!, { r4, r5 }
851
+ KeccakP1600_OverwriteWithZeroes_Exit:
852
+ pop {r4 - r5}
853
+ bx lr
854
+
855
+
856
+ @----------------------------------------------------------------------------
857
+ @
858
+ @ void KeccakP1600_ExtractBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
859
+ @
860
+ .align 8
861
+ .global KeccakP1600_ExtractBytes
862
+ .type KeccakP1600_ExtractBytes, %function;
863
+ KeccakP1600_ExtractBytes:
864
+ cmp r3, #0 @ .if length != 0
865
+ beq KeccakP1600_ExtractBytes_Exit1
866
+ push {r4 - r6, lr} @ then
867
+ mov r4, r8
868
+ push {r4, r7}
869
+ lsrs r4, r2, #3 @ offset &= ~7
870
+ lsls r4, r4, #3
871
+ adds r0, r0, r4 @ add whole lane offset to state pointer
872
+ lsls r2, r2, #29 @ offset &= 7 (part not lane aligned)
873
+ lsrs r2, r2, #29
874
+ beq KeccakP1600_ExtractBytes_CheckLanes @ .if offset != 0
875
+ movs r4, r3 @ then, do remaining bytes in first lane
876
+ movs r5, #8
877
+ subs r5, r2 @ max size in lane = 8 - offset
878
+ cmp r4, r5
879
+ ble KeccakP1600_ExtractBytes_BytesAlign
880
+ movs r4, r5
881
+ KeccakP1600_ExtractBytes_BytesAlign:
882
+ subs r3, r3, r4 @ size left
883
+ mov r8, r3
884
+ movs r3, r4
885
+ adr r7, KeccakP1600_ExtractBytes_FromBitInterleavingConstants
886
+ bl __KeccakP1600_ExtractBytesInLane
887
+ mov r3, r8
888
+ KeccakP1600_ExtractBytes_CheckLanes:
889
+ lsrs r2, r3, #3 @ .if length >= 8
890
+ beq KeccakP1600_ExtractBytes_Bytes
891
+ mov r8, r3
892
+ adr r3, KeccakP1600_ExtractBytes_FromBitInterleavingConstants
893
+ bl __KeccakP1600_ExtractLanes
894
+ mov r3, r8
895
+ lsls r3, r3, #29
896
+ lsrs r3, r3, #29
897
+ KeccakP1600_ExtractBytes_Bytes:
898
+ cmp r3, #0
899
+ beq KeccakP1600_ExtractBytes_Exit
900
+ movs r2, #0
901
+ adr r7, KeccakP1600_ExtractBytes_FromBitInterleavingConstants
902
+ bl __KeccakP1600_ExtractBytesInLane
903
+ KeccakP1600_ExtractBytes_Exit:
904
+ pop {r4,r7}
905
+ mov r8, r4
906
+ pop {r4 - r6, pc}
907
+ KeccakP1600_ExtractBytes_Exit1:
908
+ bx lr
909
+ nop
910
+ KeccakP1600_ExtractBytes_FromBitInterleavingConstants:
911
+ .long 0x0000FF00
912
+ .long 0x00F000F0
913
+ .long 0x0C0C0C0C
914
+ .long 0x22222222
915
+
916
+
917
+ @----------------------------------------------------------------------------
918
+ @
919
+ @ __KeccakP1600_ExtractLanes
920
+ @
921
+ @ Input:
922
+ @ r0 state pointer
923
+ @ r1 data pointer
924
+ @ r2 laneCount
925
+ @ r3 from bit interleaving constants pointer
926
+ @
927
+ @ Output:
928
+ @ r0 state pointer next lane
929
+ @ r1 data pointer next byte to output
930
+ @
931
+ @ Changed: r2-r7
932
+ @
933
+ .align 8
934
+ __KeccakP1600_ExtractLanes:
935
+ lsls r4, r1, #30
936
+ bne __KeccakP1600_ExtractLanes_LoopUnaligned
937
+ __KeccakP1600_ExtractLanes_LoopAligned:
938
+ ldmia r0!, {r6,r7}
939
+ fromBitInterleaving r6, r7, r5, r4, r3
940
+ stmia r1!, {r6,r7}
941
+ subs r2, r2, #1
942
+ bne __KeccakP1600_ExtractLanes_LoopAligned
943
+ bx lr
944
+ __KeccakP1600_ExtractLanes_LoopUnaligned:
945
+ ldmia r0!, {r6,r7}
946
+ fromBitInterleaving r6, r7, r5, r4, r3
947
+ strb r6, [r1, #0]
948
+ lsrs r6, r6, #8
949
+ strb r6, [r1, #1]
950
+ lsrs r6, r6, #8
951
+ strb r6, [r1, #2]
952
+ lsrs r6, r6, #8
953
+ strb r6, [r1, #3]
954
+ strb r7, [r1, #4]
955
+ lsrs r7, r7, #8
956
+ strb r7, [r1, #5]
957
+ lsrs r7, r7, #8
958
+ strb r7, [r1, #6]
959
+ lsrs r7, r7, #8
960
+ strb r7, [r1, #7]
961
+ adds r1, r1, #8
962
+ subs r2, r2, #1
963
+ bne __KeccakP1600_ExtractLanes_LoopUnaligned
964
+ bx lr
965
+
966
+
967
+ @----------------------------------------------------------------------------
968
+ @
969
+ @ __KeccakP1600_ExtractBytesInLane
970
+ @
971
+ @ Input:
972
+ @ r0 state pointer
973
+ @ r1 data pointer
974
+ @ r2 offset in lane
975
+ @ r3 length
976
+ @ r7 from bit interleaving constants pointer
977
+ @
978
+ @ Output:
979
+ @ r0 state pointer next lane
980
+ @ r1 data pointer next byte to output
981
+ @
982
+ @ Changed: r2-r7
983
+ @
984
+ .align 8
985
+ __KeccakP1600_ExtractBytesInLane:
986
+ ldmia r0!, {r4,r5}
987
+ push {r0, r3}
988
+ fromBitInterleaving r4, r5, r0, r3, r7
989
+ pop {r0, r3}
990
+ push {r4, r5}
991
+ mov r4, sp
992
+ adds r4, r4, r2
993
+ __KeccakP1600_ExtractBytesInLane_Loop:
994
+ ldrb r2, [r4]
995
+ adds r4, r4, #1
996
+ strb r2, [r1]
997
+ adds r1, r1, #1
998
+ subs r3, r3, #1
999
+ bne __KeccakP1600_ExtractBytesInLane_Loop
1000
+ add sp, #8
1001
+ bx lr
1002
+
1003
+
1004
+ @----------------------------------------------------------------------------
1005
+ @
1006
+ @ void KeccakP1600_ExtractAndAddBytes(void *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length)
1007
+ @
1008
+ .align 8
1009
+ .global KeccakP1600_ExtractAndAddBytes
1010
+ .type KeccakP1600_ExtractAndAddBytes, %function;
1011
+ KeccakP1600_ExtractAndAddBytes:
1012
+ push {r3 - r7, lr}
1013
+ mov r4, r8
1014
+ mov r5, r9
1015
+ push {r4 - r5}
1016
+ mov r9, r2
1017
+ mov r2, r3
1018
+ ldr r3, [sp, #8*4]
1019
+ cmp r3, #0 @ .if length != 0
1020
+ beq KeccakP1600_ExtractAndAddBytes_Exit
1021
+ lsrs r4, r2, #3 @ offset &= ~7
1022
+ lsls r4, r4, #3
1023
+ adds r0, r0, r4 @ add whole lane offset to state pointer
1024
+ lsls r2, r2, #29 @ offset &= 7 (part not lane aligned)
1025
+ lsrs r2, r2, #29
1026
+ beq KeccakP1600_ExtractAndAddBytes_CheckLanes @ .if offset != 0
1027
+ movs r4, r3 @ then, do remaining bytes in first lane
1028
+ movs r5, #8
1029
+ subs r5, r2 @ max size in lane = 8 - offset
1030
+ cmp r4, r5
1031
+ ble KeccakP1600_ExtractAndAddBytes_BytesAlign
1032
+ movs r4, r5
1033
+ KeccakP1600_ExtractAndAddBytes_BytesAlign:
1034
+ subs r3, r3, r4 @ size left
1035
+ mov r8, r3
1036
+ movs r3, r4
1037
+ adr r7, KeccakP1600_ExtractAndAddBytes_FromBitInterleavingConstants
1038
+ bl __KeccakP1600_ExtractAndAddBytesInLane
1039
+ mov r3, r8
1040
+ KeccakP1600_ExtractAndAddBytes_CheckLanes:
1041
+ lsrs r2, r3, #3 @ .if length >= 8
1042
+ beq KeccakP1600_ExtractAndAddBytes_Bytes
1043
+ mov r8, r3
1044
+ adr r3, KeccakP1600_ExtractAndAddBytes_FromBitInterleavingConstants
1045
+ bl __KeccakP1600_ExtractAndAddLanes
1046
+ mov r3, r8
1047
+ lsls r3, r3, #29
1048
+ lsrs r3, r3, #29
1049
+ KeccakP1600_ExtractAndAddBytes_Bytes:
1050
+ cmp r3, #0
1051
+ beq KeccakP1600_ExtractAndAddBytes_Exit
1052
+ movs r2, #0
1053
+ adr r7, KeccakP1600_ExtractAndAddBytes_FromBitInterleavingConstants
1054
+ bl __KeccakP1600_ExtractAndAddBytesInLane
1055
+ KeccakP1600_ExtractAndAddBytes_Exit:
1056
+ pop {r4 - r5}
1057
+ mov r8, r4
1058
+ mov r9, r5
1059
+ pop {r3 - r7, pc}
1060
+ .align 8
1061
+ KeccakP1600_ExtractAndAddBytes_FromBitInterleavingConstants:
1062
+ .long 0x0000FF00
1063
+ .long 0x00F000F0
1064
+ .long 0x0C0C0C0C
1065
+ .long 0x22222222
1066
+
1067
+
1068
+ @----------------------------------------------------------------------------
1069
+ @
1070
+ @ __KeccakP1600_ExtractAndAddLanes
1071
+ @
1072
+ @ Input:
1073
+ @ r0 state pointer
1074
+ @ r1 in pointer
1075
+ @ r2 laneCount
1076
+ @ r3 from bit interleaving constants pointer
1077
+ @ r9 out pointer
1078
+ @
1079
+ @ Output:
1080
+ @ r0 state pointer next lane
1081
+ @ r1 in pointer (next lane)
1082
+ @ r9 out pointer (next lane)
1083
+ @
1084
+ @ Changed: r2-r7
1085
+ @
1086
+ .align 8
1087
+ __KeccakP1600_ExtractAndAddLanes:
1088
+ lsls r4, r1, #30
1089
+ bne __KeccakP1600_ExtractAndAddLanes_LoopUnaligned
1090
+ mov r4, r9
1091
+ lsls r4, r4, #30
1092
+ bne __KeccakP1600_ExtractAndAddLanes_LoopUnaligned
1093
+ __KeccakP1600_ExtractAndAddLanes_LoopAligned:
1094
+ ldmia r0!, {r6,r7}
1095
+ fromBitInterleaving r6, r7, r5, r4, r3
1096
+ mov r4, r9
1097
+ ldm r1!, {r5}
1098
+ eors r6, r6, r5
1099
+ ldm r1!, {r5}
1100
+ eors r7, r7, r5
1101
+ stmia r4!, {r6,r7}
1102
+ mov r9, r4
1103
+ subs r2, r2, #1
1104
+ bne __KeccakP1600_ExtractAndAddLanes_LoopAligned
1105
+ bx lr
1106
+ __KeccakP1600_ExtractAndAddLanes_LoopUnaligned:
1107
+ ldmia r0!, {r6,r7}
1108
+ fromBitInterleaving r6, r7, r5, r4, r3
1109
+ mov r4, r9
1110
+ ldrb r5, [r1, #0]
1111
+ eors r5, r5, r6
1112
+ strb r5, [r4, #0]
1113
+ lsrs r6, r6, #8
1114
+ ldrb r5, [r1, #1]
1115
+ eors r5, r5, r6
1116
+ strb r5, [r4, #1]
1117
+ lsrs r6, r6, #8
1118
+ ldrb r5, [r1, #2]
1119
+ eors r5, r5, r6
1120
+ strb r5, [r4, #2]
1121
+ lsrs r6, r6, #8
1122
+ ldrb r5, [r1, #3]
1123
+ eors r5, r5, r6
1124
+ strb r5, [r4, #3]
1125
+ ldrb r5, [r1, #4]
1126
+ eors r5, r5, r7
1127
+ strb r5, [r4, #4]
1128
+ lsrs r7, r7, #8
1129
+ ldrb r5, [r1, #5]
1130
+ eors r5, r5, r7
1131
+ strb r5, [r4, #5]
1132
+ lsrs r7, r7, #8
1133
+ ldrb r5, [r1, #6]
1134
+ eors r5, r5, r7
1135
+ strb r5, [r4, #6]
1136
+ lsrs r7, r7, #8
1137
+ ldrb r5, [r1, #7]
1138
+ eors r5, r5, r7
1139
+ strb r5, [r4, #7]
1140
+ adds r1, r1, #8
1141
+ adds r4, r4, #8
1142
+ mov r9, r4
1143
+ subs r2, r2, #1
1144
+ bne __KeccakP1600_ExtractAndAddLanes_LoopUnaligned
1145
+ bx lr
1146
+
1147
+
1148
+ @----------------------------------------------------------------------------
1149
+ @
1150
+ @ __KeccakP1600_ExtractAndAddBytesInLane
1151
+ @
1152
+ @ Input:
1153
+ @ r0 state pointer
1154
+ @ r1 data pointer
1155
+ @ r2 offset in lane
1156
+ @ r3 length
1157
+ @ r7 from bit interleaving constants pointer
1158
+ @ r9 out pointer
1159
+ @
1160
+ @ Output:
1161
+ @ r0 state pointer next lane
1162
+ @ r1 in pointer (next byte)
1163
+ @ r9 out pointer (next byte)
1164
+ @
1165
+ @ Changed: r2-r7
1166
+ @
1167
+ .align 8
1168
+ __KeccakP1600_ExtractAndAddBytesInLane:
1169
+ ldmia r0!, {r4,r5}
1170
+ push {r0, r3}
1171
+ fromBitInterleaving r4, r5, r0, r3, r7
1172
+ pop {r0, r3}
1173
+ push {r4, r5}
1174
+ mov r4, sp
1175
+ adds r4, r4, r2
1176
+ mov r6, r9
1177
+ __KeccakP1600_ExtractAndAddBytesInLane_Loop:
1178
+ ldrb r2, [r4]
1179
+ adds r4, r4, #1
1180
+ ldrb r5, [r1]
1181
+ eors r2, r2, r5
1182
+ strb r2, [r6]
1183
+ adds r1, r1, #1
1184
+ adds r6, r6, #1
1185
+ subs r3, r3, #1
1186
+ bne __KeccakP1600_ExtractAndAddBytesInLane_Loop
1187
+ add sp, #8
1188
+ mov r9, r6
1189
+ bx lr
1190
+
1191
+
1192
+ @ ----------------------------------------------------------------------------
1193
+ @
1194
+ @ void KeccakP1600_Permute_Nrounds(void *state, unsigned int nrounds)
1195
+ @
1196
+ .align 8
1197
+ .global KeccakP1600_Permute_Nrounds
1198
+ .type KeccakP1600_Permute_Nrounds, %function;
1199
+ KeccakP1600_Permute_Nrounds:
1200
+ movs r2, r1
1201
+ lsls r3, r2, #3
1202
+ adr r1, KeccakP1600_Permute_RoundConstants0
1203
+ subs r1, r1, r3
1204
+ lsls r2, r2, #31
1205
+ bne KeccakP1600_Permute_NroundsOdd
1206
+ b KeccakP1600_Permute
1207
+ KeccakP1600_Permute_NroundsOdd:
1208
+ push { r4 - r6, lr }
1209
+ mov r2, r8
1210
+ mov r3, r9
1211
+ mov r4, r10
1212
+ mov r5, r11
1213
+ mov r6, r12
1214
+ push { r2 - r7 }
1215
+ sub sp, #mSize
1216
+ subs r1, r1, #8
1217
+ str r1, [sp, #mRC]
1218
+ mov r7, sp
1219
+ ldm r0!, {r1-r5}
1220
+ stm r7!, {r1-r5}
1221
+ ldm r0!, {r1-r5}
1222
+ stm r7!, {r1-r5}
1223
+ ldm r0!, {r1-r5}
1224
+ stm r7!, {r1-r5}
1225
+ ldm r0!, {r1-r5}
1226
+ stm r7!, {r1-r5}
1227
+ ldm r0!, {r1-r5}
1228
+ stm r7!, {r1-r5}
1229
+ ldm r0!, {r1-r5}
1230
+ stm r7!, {r1-r5}
1231
+ ldm r0!, {r1-r5}
1232
+ stm r7!, {r1-r5}
1233
+ ldm r0!, {r1-r5}
1234
+ stm r7!, {r1-r5}
1235
+ ldm r0!, {r1-r5}
1236
+ stm r7!, {r1-r5}
1237
+ ldm r0!, {r1-r5}
1238
+ stm r7!, {r1-r5}
1239
+ subs r0, r0, #25*2*4
1240
+ movs r7, #_ma0
1241
+ adds r7, r7, r0
1242
+ b KeccakP1600_Permute_RoundOdd
1243
+
1244
+
1245
+ @ ----------------------------------------------------------------------------
1246
+ @
1247
+ @ void KeccakP1600_Permute_12rounds( void *state )
1248
+ @
1249
+ .align 8
1250
+ .global KeccakP1600_Permute_12rounds
1251
+ .type KeccakP1600_Permute_12rounds, %function;
1252
+ KeccakP1600_Permute_12rounds:
1253
+ adr r1, KeccakP1600_Permute_RoundConstants12
1254
+ b KeccakP1600_Permute
1255
+
1256
+
1257
+ @ ----------------------------------------------------------------------------
1258
+ @
1259
+ @ void KeccakP1600_Permute_24rounds( void *state )
1260
+ @
1261
+ .align 8
1262
+ .global KeccakP1600_Permute_24rounds
1263
+ .type KeccakP1600_Permute_24rounds, %function;
1264
+ KeccakP1600_Permute_24rounds:
1265
+ adr r1, KeccakP1600_Permute_RoundConstants24
1266
+ b KeccakP1600_Permute
1267
+
1268
+
1269
+ .align 8
1270
+ KeccakP1600_Permute_RoundConstants24:
1271
+ @ 0 1
1272
+ .long 0x00000001, 0x00000000
1273
+ .long 0x00000000, 0x00000089
1274
+ .long 0x00000000, 0x8000008b
1275
+ .long 0x00000000, 0x80008080
1276
+ .long 0x00000001, 0x0000008b
1277
+ .long 0x00000001, 0x00008000
1278
+ .long 0x00000001, 0x80008088
1279
+ .long 0x00000001, 0x80000082
1280
+ .long 0x00000000, 0x0000000b
1281
+ .long 0x00000000, 0x0000000a
1282
+ .long 0x00000001, 0x00008082
1283
+ .long 0x00000000, 0x00008003
1284
+ KeccakP1600_Permute_RoundConstants12:
1285
+ .long 0x00000001, 0x0000808b
1286
+ .long 0x00000001, 0x8000000b
1287
+ .long 0x00000001, 0x8000008a
1288
+ .long 0x00000001, 0x80000081
1289
+ .long 0x00000000, 0x80000081
1290
+ .long 0x00000000, 0x80000008
1291
+ .long 0x00000000, 0x00000083
1292
+ .long 0x00000000, 0x80008003
1293
+ .long 0x00000001, 0x80008088
1294
+ .long 0x00000000, 0x80000088
1295
+ .long 0x00000001, 0x00008000
1296
+ .long 0x00000000, 0x80008082
1297
+ KeccakP1600_Permute_RoundConstants0:
1298
+ .long 0x000000FF @terminator
1299
+
1300
+ @----------------------------------------------------------------------------
1301
+ @
1302
+ @ void KeccakP1600_Permute( void *state, void * rc )
1303
+ @
1304
+ .align 8
1305
+ KeccakP1600_Permute:
1306
+ push { r4 - r6, lr }
1307
+ mov r2, r8
1308
+ mov r3, r9
1309
+ mov r4, r10
1310
+ mov r5, r11
1311
+ mov r6, r12
1312
+ push { r2 - r7 }
1313
+ sub sp, #mSize
1314
+ movs r7, #_ma0
1315
+ adds r7, r7, r0
1316
+ KeccakP1600_Permute_RoundLoop:
1317
+ str r1, [sp, #mRC]
1318
+ Kround 0, 0
1319
+ KeccakP1600_Permute_RoundOdd:
1320
+ Kround 1, 8
1321
+ adds r1, r1, #2*8 @ Update pointer RC
1322
+ ldr r6, [r1] @ Check terminator
1323
+ cmp r6, #0xFF
1324
+ beq KeccakP1600_Permute_Done
1325
+ ldr r6, =KeccakP1600_Permute_RoundLoop+1
1326
+ bx r6
1327
+ .align 8
1328
+ .ltorg
1329
+ KeccakP1600_Permute_Done:
1330
+ add sp, #mSize
1331
+ pop { r1 - r5, r7 }
1332
+ mov r8, r1
1333
+ mov r9, r2
1334
+ mov r10, r3
1335
+ mov r11, r4
1336
+ mov r12, r5
1337
+ pop { r4 - r6, pc }
1338
+
1339
+