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.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/LICENSE.XKCP +9 -0
- data/README.md +85 -33
- data/Rakefile +58 -4
- data/digest-kangarootwelve.gemspec +22 -316
- data/ext/digest/kangarootwelve/XKCP/lib/common/align.h +33 -0
- data/ext/digest/kangarootwelve/XKCP/lib/common/brg_endian.h +143 -0
- data/ext/digest/kangarootwelve/XKCP/lib/high/KangarooTwelve/KangarooTwelve.c +301 -0
- data/ext/digest/kangarootwelve/XKCP/lib/high/KangarooTwelve/KangarooTwelve.h +97 -0
- data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.c +111 -0
- data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.h +76 -0
- data/ext/digest/kangarootwelve/XKCP/lib/high/Keccak/KeccakSponge.inc +314 -0
- data/ext/digest/kangarootwelve/XKCP/lib/high/common/Phases.h +25 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARM/KeccakP-1600-SnP.h +41 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARM/KeccakP-1600-inplace-32bi-armv7m-le-gcc.s +1175 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARM/KeccakP-1600-u2-32bi-armv6m-le-gcc.s +1339 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARMv7A-NEON/KeccakP-1600-SnP.h +42 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ARMv7A-NEON/KeccakP-1600-armv7a-le-neon-gcc.s +831 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVR8/KeccakP-1600-SnP.h +42 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVR8/KeccakP-1600-avr8-fast.s +1121 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX2/KeccakP-1600-AVX2.s +1100 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX2/KeccakP-1600-SnP.h +52 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/C/KeccakP-1600-AVX512.c +623 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/C/KeccakP-1600-SnP.h +47 -0
- data/ext/digest/kangarootwelve/{keccak/skylakex → XKCP/lib/low/KeccakP-1600/AVX512/C/u12}/KeccakP-1600-AVX512-config.h +0 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/KeccakP-1600-AVX512.s +1031 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/AVX512/KeccakP-1600-SnP.h +53 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/XOP/KeccakP-1600-SnP.h +44 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/XOP/KeccakP-1600-XOP.c +476 -0
- data/ext/digest/kangarootwelve/{keccak/bulldozer → XKCP/lib/low/KeccakP-1600/XOP/ua}/KeccakP-1600-XOP-config.h +0 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/common/KeccakP-1600-64.macros +748 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/common/KeccakP-1600-unrolling.macros +305 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/compact/KeccakP-1600-SnP.h +40 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/compact/KeccakP-1600-compact64.c +420 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-32bits-inplace/KeccakP-1600-SnP.h +43 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-32bits-inplace/KeccakP-1600-inplace32BI.c +1163 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-64bits/KeccakP-1600-SnP.h +54 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/plain-64bits/KeccakP-1600-opt64.c +565 -0
- data/ext/digest/kangarootwelve/{keccak/generic64lc → XKCP/lib/low/KeccakP-1600/plain-64bits/lcua}/KeccakP-1600-opt64-config.h +0 -0
- data/ext/digest/kangarootwelve/{keccak/sandybridge → XKCP/lib/low/KeccakP-1600/plain-64bits/lcua-shld}/KeccakP-1600-opt64-config.h +0 -0
- data/ext/digest/kangarootwelve/{keccak/generic64 → XKCP/lib/low/KeccakP-1600/plain-64bits/ua}/KeccakP-1600-opt64-config.h +0 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-SnP.h +44 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference.h +23 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference32BI.c +625 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-SnP.h +44 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.c +440 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.h +23 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/ARMv7A-NEON/KeccakP-1600-inplace-pl2-armv7a-neon-le-gcc.s +1394 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/ARMv7A-NEON/KeccakP-1600-times2-SnP.h +42 -0
- data/ext/digest/kangarootwelve/{keccak/skylakex → XKCP/lib/low/KeccakP-1600-times2/AVX512/AVX512u12}/SIMD512-2-config.h +0 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/AVX512/KeccakP-1600-times2-SIMD512.c +850 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/AVX512/KeccakP-1600-times2-SnP.h +51 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/KeccakP-1600-times2-SIMD128.c +957 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/KeccakP-1600-times2-SnP.h +49 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/SSSE3-u2/SIMD128-config.h +8 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/SIMD128/SSSE3-ua/SIMD128-config.h +8 -0
- data/ext/digest/kangarootwelve/{keccak/bulldozer → XKCP/lib/low/KeccakP-1600-times2/SIMD128/XOP-ua}/SIMD128-config.h +0 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/fallback-on1/KeccakP-1600-times2-SnP.h +45 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times2/fallback-on1/KeccakP-1600-times2-on1.c +37 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX2/KeccakP-1600-times4-SIMD256.c +1321 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX2/KeccakP-1600-times4-SnP.h +55 -0
- data/ext/digest/kangarootwelve/{keccak/haswell → XKCP/lib/low/KeccakP-1600-times4/AVX2/u12}/SIMD256-config.h +0 -0
- data/ext/digest/kangarootwelve/{keccak/skylakex → XKCP/lib/low/KeccakP-1600-times4/AVX512/AVX512u12}/SIMD512-4-config.h +0 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX512/KeccakP-1600-times4-SIMD512.c +881 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/AVX512/KeccakP-1600-times4-SnP.h +51 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on1/KeccakP-1600-times4-SnP.h +45 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on1/KeccakP-1600-times4-on1.c +37 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on2/KeccakP-1600-times4-SnP.h +45 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times4/fallback-on2/KeccakP-1600-times4-on2.c +38 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/AVX512/KeccakP-1600-times8-SIMD512.c +1615 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/AVX512/KeccakP-1600-times8-SnP.h +57 -0
- data/ext/digest/kangarootwelve/{keccak/skylakex → XKCP/lib/low/KeccakP-1600-times8/AVX512/u12}/SIMD512-config.h +0 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on1/KeccakP-1600-times8-SnP.h +45 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on1/KeccakP-1600-times8-on1.c +37 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on2/KeccakP-1600-times8-SnP.h +45 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on2/KeccakP-1600-times8-on2.c +38 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on4/KeccakP-1600-times8-SnP.h +45 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-1600-times8/fallback-on4/KeccakP-1600-times8-on4.c +38 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-SnP.h +41 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-armv6m-le-gcc.s +446 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ARM/KeccakP-200-armv7m-le-gcc.s +427 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/AVR8/KeccakP-200-SnP.h +41 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/AVR8/KeccakP-200-avr8-fast.s +647 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/compact/KeccakP-200-SnP.h +39 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/compact/KeccakP-200-compact.c +190 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-SnP.h +43 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-reference.c +412 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-200/ref/KeccakP-200-reference.h +23 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-SnP.h +41 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-armv6m-le-gcc.s +458 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ARM/KeccakP-400-armv7m-le-gcc.s +458 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/AVR8/KeccakP-400-SnP.h +41 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/AVR8/KeccakP-400-avr8-fast.s +728 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-SnP.h +43 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-reference.c +414 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-400/ref/KeccakP-400-reference.h +23 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-SnP.h +42 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv6m-le-gcc.s +534 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv7a-le-gcc.s +527 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ARM/KeccakP-800-u2-armv7m-le-gcc.s +523 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/AVR8/KeccakP-800-SnP.h +42 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/AVR8/KeccakP-800-avr8-fast.s +929 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/compact/KeccakP-800-SnP.h +40 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/compact/KeccakP-800-compact.c +244 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-SnP.h +46 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32-bis.macros +184 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32.c +454 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-opt32.macros +459 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-unrolling-bis.macros +83 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/KeccakP-800-unrolling.macros +88 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/lcu2/KeccakP-800-opt32-config.h +7 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/lcua/KeccakP-800-opt32-config.h +7 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/u2/KeccakP-800-opt32-config.h +7 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/plain/ua/KeccakP-800-opt32-config.h +7 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-SnP.h +44 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-reference.c +437 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/KeccakP-800/ref/KeccakP-800-reference.h +23 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/common/PlSnP-Fallback.inc +290 -0
- data/ext/digest/kangarootwelve/XKCP/lib/low/common/SnP-Relaned.h +141 -0
- data/ext/digest/kangarootwelve/XKCP/tests/UnitTests/displayIntermediateValues.c +177 -0
- data/ext/digest/kangarootwelve/XKCP/tests/UnitTests/displayIntermediateValues.h +30 -0
- data/ext/digest/kangarootwelve/ext.c +30 -22
- data/ext/digest/kangarootwelve/extconf.rb +8 -11
- data/ext/digest/kangarootwelve/targets/armv6/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-1600-u2-32bi-armv6m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-200-armv6m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-400-armv6m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakP-800-u2-armv6m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/armv6m/ext.link.c → targets/armv6/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/armv6/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-1600-u2-32bi-armv6m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-200-armv6m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-400-armv6m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakP-800-u2-armv6m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv6m/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/armv7a/ext.link.c → targets/armv6m/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/armv6m/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-armv7a-le-neon-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-inplace-pl2-armv7a-neon-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times4-on2.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-1600-times8-on2.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakP-800-u2-armv7a-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7a/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/armv7m/ext.link.c → targets/armv7a/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/armv7a/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-inplace-32bi-armv7m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-200-armv7m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-400-armv7m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakP-800-u2-armv7m-le-gcc.S +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv7m/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/armv8a/ext.link.c → targets/armv7m/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/armv7m/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-64.macros +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-opt64-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-opt64.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-1600-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/armv8a/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/asmx86-64/ext.link.c → targets/armv8a/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/armv8a/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-avr8-fast.S +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-200-avr8-fast.S +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-400-avr8-fast.S +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakP-800-avr8-fast.S +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/avr8/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/asmx86-64shld/ext.link.c → targets/avr8/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/avr8/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-64.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-opt64-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-opt64.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times2-SIMD128.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times4-on2.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-times8-on2.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-1600-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avx/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avx/SIMD128-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/avr8/ext.link.c → targets/avx/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/avx/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-AVX2.S +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times2-SIMD128.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times4-SIMD256.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-times8-on4.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-1600-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/SIMD128-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/SIMD256-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/bulldozer/ext.link.c → targets/avx2/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/avx2/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-64.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-opt64-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-opt64.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times2-SIMD128.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times4-SIMD256.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-times8-on4.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-1600-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/SIMD128-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/SIMD256-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/compact/ext.link.c → targets/avx2noasm/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/avx2noasm/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-AVX512.S +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times2-SIMD512.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times4-SIMD512.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times8-SIMD512.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/SIMD512-2-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/SIMD512-4-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/SIMD512-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/generic32/ext.link.c → targets/avx512/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/avx512/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-AVX512-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-AVX512.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times2-SIMD512.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times4-SIMD512.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times8-SIMD512.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/SIMD512-2-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/SIMD512-4-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/SIMD512-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/generic32lc/ext.link.c → targets/avx512noasm/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/avx512noasm/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-compact64.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-200-compact.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakP-800-compact.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/compact/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/compact/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/compact/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/generic64/ext.link.c → targets/compact/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/compact/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/config.h +9 -0
- data/ext/digest/kangarootwelve/targets/defs +2 -0
- data/ext/digest/kangarootwelve/targets/generic32/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-inplace32BI.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/generic64lc/ext.link.c → targets/generic32/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/generic32/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-inplace32BI.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/haswell/ext.link.c → targets/generic32lc/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/generic32lc/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-64.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-opt64-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-opt64.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-1600-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/nehalem/ext.link.c → targets/generic64/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/generic64/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-64.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-opt64-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-opt64.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-1600-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/reference/ext.link.c → targets/generic64lc/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/generic64lc/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/list +20 -0
- data/ext/digest/kangarootwelve/targets/reference/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakP-800-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/reference/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/reference/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/config.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference/displayIntermediateValues.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference/displayIntermediateValues.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/reference32bits/ext.link.c → targets/reference/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/reference/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-reference32BI.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times2-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times4-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-1600-times8-on1.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakP-800-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/config.h +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/displayIntermediateValues.c +1 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/displayIntermediateValues.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/sandybridge/ext.link.c → targets/reference32bits/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/reference32bits/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-64.macros +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-opt64-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-opt64.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times2-SIMD128.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times4-on2.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-times8-on2.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-1600-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/SIMD128-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/ssse3/config.h +1 -0
- data/ext/digest/kangarootwelve/{keccak/skylakex/ext.link.c → targets/ssse3/ext.c} +0 -0
- data/ext/digest/kangarootwelve/targets/ssse3/utils.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KangarooTwelve.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KangarooTwelve.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-XOP-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-XOP.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times2-SIMD128.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times2-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times4-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times4-on2.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times8-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-times8-on2.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-1600-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-200-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-reference.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-400-reference.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-SnP.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-opt32.macros +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-unrolling-bis.macros +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakP-800-unrolling.macros +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakSponge.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakSponge.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/KeccakSponge.inc +1 -0
- data/ext/digest/kangarootwelve/targets/xop/Phases.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/PlSnP-Fallback.inc +1 -0
- data/ext/digest/kangarootwelve/targets/xop/SIMD128-config.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/SnP-Relaned.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/align.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/brg_endian.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/config.h +1 -0
- data/ext/digest/kangarootwelve/targets/xop/ext.c +1 -0
- data/ext/digest/kangarootwelve/targets/xop/utils.h +1 -0
- data/lib/digest/kangarootwelve/version.rb +1 -1
- data/rakelib/alt-install-task.rake +58 -0
- data/test/test.rb +5 -3
- metadata +814 -300
- data/ext/digest/kangarootwelve/keccak/armv6m/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-SnP.h +0 -36
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakP-1600-u2-32bi-armv6m-le-gcc.s +0 -1334
- data/ext/digest/kangarootwelve/keccak/armv6m/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv6m/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/armv7a/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-SnP.h +0 -37
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-armv7a-le-neon-gcc.s +0 -826
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-inplace-pl2-armv7a-neon-le-gcc.s +0 -1245
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times2-SnP.h +0 -38
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times4-on2.c +0 -38
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakP-1600-times8-on2.c +0 -38
- data/ext/digest/kangarootwelve/keccak/armv7a/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv7a/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/armv7m/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-SnP.h +0 -36
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-inplace-32bi-armv7m-le-gcc.s +0 -1170
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv7m/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv7m/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/armv8a/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-SnP.h +0 -28
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-armv8a-neon.s +0 -537
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/armv8a/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/armv8a/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-SnP.h +0 -37
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakP-1600-x86-64-gas.s +0 -1190
- data/ext/digest/kangarootwelve/keccak/asmx86-64/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/asmx86-64/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-SnP.h +0 -37
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakP-1600-x86-64-shld-gas.s +0 -1190
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/asmx86-64shld/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/avr8/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-SnP.h +0 -37
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-avr8-fast.s +0 -1116
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/avr8/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/avr8/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/bulldozer/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-SnP.h +0 -39
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-XOP.c +0 -473
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times2-SIMD128.c +0 -954
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times2-SnP.h +0 -47
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times4-on2.c +0 -38
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-times8-on2.c +0 -38
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakP-1600-unrolling.macros +0 -302
- data/ext/digest/kangarootwelve/keccak/bulldozer/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/bulldozer/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/bulldozer/SnP-Relaned.h +0 -140
- data/ext/digest/kangarootwelve/keccak/common/KangarooTwelve.c +0 -271
- data/ext/digest/kangarootwelve/keccak/common/KangarooTwelve.h +0 -89
- data/ext/digest/kangarootwelve/keccak/common/KeccakDuplex-common.h +0 -37
- data/ext/digest/kangarootwelve/keccak/common/KeccakDuplex.inc +0 -192
- data/ext/digest/kangarootwelve/keccak/common/KeccakDuplexWidth1600.c +0 -34
- data/ext/digest/kangarootwelve/keccak/common/KeccakDuplexWidth1600.h +0 -25
- data/ext/digest/kangarootwelve/keccak/common/KeccakSponge-common.h +0 -35
- data/ext/digest/kangarootwelve/keccak/common/KeccakSponge.inc +0 -311
- data/ext/digest/kangarootwelve/keccak/common/KeccakSpongeWidth1600.c +0 -54
- data/ext/digest/kangarootwelve/keccak/common/KeccakSpongeWidth1600.h +0 -31
- data/ext/digest/kangarootwelve/keccak/common/Phases.h +0 -22
- data/ext/digest/kangarootwelve/keccak/common/align.h +0 -32
- data/ext/digest/kangarootwelve/keccak/common/brg_endian.h +0 -142
- data/ext/digest/kangarootwelve/keccak/compact/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/compact/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-SnP.h +0 -35
- data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-compact64.c +0 -416
- data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/compact/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/compact/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/compact/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/compact/SnP-Relaned.h +0 -140
- data/ext/digest/kangarootwelve/keccak/generic32/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-SnP.h +0 -38
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-inplace32BI.c +0 -1162
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic32/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic32/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/generic32/SnP-Relaned.h +0 -140
- data/ext/digest/kangarootwelve/keccak/generic32lc/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-SnP.h +0 -38
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-inplace32BI.c +0 -1162
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic32lc/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic32lc/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/generic32lc/SnP-Relaned.h +0 -140
- data/ext/digest/kangarootwelve/keccak/generic64/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-64.macros +0 -2195
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-SnP.h +0 -49
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-opt64.c +0 -541
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakP-1600-unrolling.macros +0 -302
- data/ext/digest/kangarootwelve/keccak/generic64/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic64/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/generic64/SnP-Relaned.h +0 -140
- data/ext/digest/kangarootwelve/keccak/generic64lc/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-64.macros +0 -2195
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-SnP.h +0 -49
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-opt64.c +0 -541
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakP-1600-unrolling.macros +0 -302
- data/ext/digest/kangarootwelve/keccak/generic64lc/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/generic64lc/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/generic64lc/SnP-Relaned.h +0 -140
- data/ext/digest/kangarootwelve/keccak/haswell/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-AVX2.s +0 -993
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-SnP.h +0 -41
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times2-SIMD128.c +0 -954
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times2-SnP.h +0 -47
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times4-SIMD256.c +0 -1303
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times4-SnP.h +0 -53
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-times8-on4.c +0 -38
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakP-1600-unrolling.macros +0 -302
- data/ext/digest/kangarootwelve/keccak/haswell/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/haswell/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/haswell/SIMD128-config.h +0 -8
- data/ext/digest/kangarootwelve/keccak/nehalem/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-64.macros +0 -2195
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-SnP.h +0 -49
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-opt64-config.h +0 -7
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-opt64.c +0 -541
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times2-SIMD128.c +0 -954
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times2-SnP.h +0 -47
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times4-on2.c +0 -38
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-times8-on2.c +0 -38
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakP-1600-unrolling.macros +0 -302
- data/ext/digest/kangarootwelve/keccak/nehalem/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/nehalem/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/nehalem/SIMD128-config.h +0 -8
- data/ext/digest/kangarootwelve/keccak/nehalem/SnP-Relaned.h +0 -140
- data/ext/digest/kangarootwelve/keccak/reference/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/reference/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-SnP.h +0 -41
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-reference.c +0 -424
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-reference.h +0 -20
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/reference/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/reference/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/reference/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/reference/displayIntermediateValues.c +0 -176
- data/ext/digest/kangarootwelve/keccak/reference/displayIntermediateValues.h +0 -29
- data/ext/digest/kangarootwelve/keccak/reference32bits/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-SnP.h +0 -41
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-reference.h +0 -20
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-reference32BI.c +0 -612
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times2-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times2-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times4-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakP-1600-times8-on1.c +0 -37
- data/ext/digest/kangarootwelve/keccak/reference32bits/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/reference32bits/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/reference32bits/displayIntermediateValues.c +0 -176
- data/ext/digest/kangarootwelve/keccak/reference32bits/displayIntermediateValues.h +0 -29
- data/ext/digest/kangarootwelve/keccak/sandybridge/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-64.macros +0 -2195
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-SnP.h +0 -49
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-opt64.c +0 -541
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times2-SIMD128.c +0 -954
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times2-SnP.h +0 -47
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times4-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times4-on2.c +0 -38
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times8-SnP.h +0 -45
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-times8-on2.c +0 -38
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakP-1600-unrolling.macros +0 -302
- data/ext/digest/kangarootwelve/keccak/sandybridge/KeccakSpongeWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/sandybridge/PlSnP-Fallback.inc +0 -287
- data/ext/digest/kangarootwelve/keccak/sandybridge/SIMD128-config.h +0 -8
- data/ext/digest/kangarootwelve/keccak/sandybridge/SnP-Relaned.h +0 -140
- data/ext/digest/kangarootwelve/keccak/skylakex/KangarooTwelve.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakDuplexWidth1600.link.c +0 -1
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-AVX512.c +0 -621
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-SnP.h +0 -42
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times2-SIMD512.c +0 -852
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times2-SnP.h +0 -49
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times4-SIMD512.c +0 -883
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times4-SnP.h +0 -49
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times8-SIMD512.c +0 -1473
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakP-1600-times8-SnP.h +0 -53
- data/ext/digest/kangarootwelve/keccak/skylakex/KeccakSpongeWidth1600.link.c +0 -1
@@ -1,852 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Implementation by Ronny Van Keer, hereby denoted as "the implementer".
|
3
|
-
|
4
|
-
For more information, feedback or questions, please refer to our website:
|
5
|
-
https://keccak.team/
|
6
|
-
|
7
|
-
To the extent possible under law, the implementer has waived all copyright
|
8
|
-
and related or neighboring rights to the source code in this file.
|
9
|
-
http://creativecommons.org/publicdomain/zero/1.0/
|
10
|
-
|
11
|
-
---
|
12
|
-
|
13
|
-
This file implements Keccak-p[1600]×2 in a PlSnP-compatible way.
|
14
|
-
Please refer to PlSnP-documentation.h for more details.
|
15
|
-
|
16
|
-
This implementation comes with KeccakP-1600-times2-SnP.h in the same folder.
|
17
|
-
Please refer to LowLevel.build for the exact list of other files it must be combined with.
|
18
|
-
*/
|
19
|
-
|
20
|
-
#include <stdio.h>
|
21
|
-
#include <stdlib.h>
|
22
|
-
#include <string.h>
|
23
|
-
#include <stdint.h>
|
24
|
-
#include <smmintrin.h>
|
25
|
-
#include <wmmintrin.h>
|
26
|
-
#include <immintrin.h>
|
27
|
-
#include <emmintrin.h>
|
28
|
-
#include "align.h"
|
29
|
-
#include "KeccakP-1600-times2-SnP.h"
|
30
|
-
#include "SIMD512-2-config.h"
|
31
|
-
|
32
|
-
#include "brg_endian.h"
|
33
|
-
#if (PLATFORM_BYTE_ORDER != IS_LITTLE_ENDIAN)
|
34
|
-
#error Expecting a little-endian platform
|
35
|
-
#endif
|
36
|
-
|
37
|
-
/* Comment the define hereunder when compiling for a CPU with AVX-512 SIMD */
|
38
|
-
/*
|
39
|
-
* Warning: This code has only been tested on Haswell (AVX2) with SIMULATE_AVX512 defined,
|
40
|
-
* errors will occur if we did a bad interpretation of the AVX-512 intrinsics'
|
41
|
-
* API or functionality.
|
42
|
-
*/
|
43
|
-
/* #define SIMULATE_AVX512 */
|
44
|
-
|
45
|
-
typedef uint8_t UINT8;
|
46
|
-
typedef uint32_t UINT32;
|
47
|
-
typedef uint64_t UINT64;
|
48
|
-
|
49
|
-
#if defined(SIMULATE_AVX512)
|
50
|
-
|
51
|
-
typedef struct
|
52
|
-
{
|
53
|
-
UINT64 x[8];
|
54
|
-
} __m512i;
|
55
|
-
|
56
|
-
static __m512i _mm512_xor_si512( __m512i a, __m512i b)
|
57
|
-
{
|
58
|
-
__m512i r;
|
59
|
-
unsigned int i;
|
60
|
-
|
61
|
-
for ( i = 0; i < 8; ++i )
|
62
|
-
r.x[i] = a.x[i] ^ b.x[i];
|
63
|
-
return(r);
|
64
|
-
}
|
65
|
-
|
66
|
-
static __m128i _mm_ternarylogic_epi64(__m128i a, __m128i b, __m128i c, int imm)
|
67
|
-
{
|
68
|
-
|
69
|
-
if (imm == 0x96)
|
70
|
-
return _mm_xor_si128( _mm_xor_si128( a, b ), c );
|
71
|
-
if (imm == 0xD2)
|
72
|
-
return _mm_xor_si128( a, _mm_andnot_si128(b, c) );
|
73
|
-
printf( "_mm_ternarylogic_epi64( a, b, c, %02X) not implemented!\n", imm );
|
74
|
-
exit(1);
|
75
|
-
}
|
76
|
-
|
77
|
-
static __m128i _mm_rol_epi64(__m128i a, int offset)
|
78
|
-
{
|
79
|
-
return _mm_or_si128(_mm_slli_epi64(a, offset), _mm_srli_epi64(a, 64-offset));
|
80
|
-
}
|
81
|
-
|
82
|
-
static __m512i _mm512_i32gather_epi64(__m256i idx, const void *p, int scale)
|
83
|
-
{
|
84
|
-
__m512i r;
|
85
|
-
unsigned int i;
|
86
|
-
UINT32 offset[8];
|
87
|
-
|
88
|
-
_mm256_store_si256( (__m256i*)offset, idx );
|
89
|
-
for ( i = 0; i < 8; ++i )
|
90
|
-
r.x[i] = *(const UINT64*)((const char*)p + offset[i] * scale);
|
91
|
-
return(r);
|
92
|
-
}
|
93
|
-
|
94
|
-
static void _mm_i32scatter_epi64( void *p, __m128i idx, __m128i value, int scale)
|
95
|
-
{
|
96
|
-
unsigned int i;
|
97
|
-
UINT64 v[2];
|
98
|
-
UINT32 offset[4];
|
99
|
-
|
100
|
-
_mm_store_ps( (float*)offset, (__m128)idx );
|
101
|
-
_mm_store_pd( (double*)v, (__m128d)value );
|
102
|
-
for ( i = 0; i < 2; ++i )
|
103
|
-
*(UINT64*)((char*)p + offset[i] * scale) = v[i];
|
104
|
-
}
|
105
|
-
|
106
|
-
static void _mm512_i32scatter_epi64( void *p, __m256i idx, __m512i value, int scale)
|
107
|
-
{
|
108
|
-
unsigned int i;
|
109
|
-
UINT32 offset[8];
|
110
|
-
|
111
|
-
_mm256_store_si256( (__m256i*)offset, idx );
|
112
|
-
for ( i = 0; i < 8; ++i )
|
113
|
-
*(UINT64*)((char*)p + offset[i] * scale) = value.x[i];
|
114
|
-
}
|
115
|
-
|
116
|
-
#endif
|
117
|
-
|
118
|
-
typedef __m128i V128;
|
119
|
-
typedef __m256i V256;
|
120
|
-
typedef __m512i V512;
|
121
|
-
|
122
|
-
#if defined(KeccakP1600times2_useAVX512)
|
123
|
-
|
124
|
-
#define XOR(a,b) _mm_xor_si128(a,b)
|
125
|
-
#define XOR3(a,b,c) _mm_ternarylogic_epi64(a,b,c,0x96)
|
126
|
-
#define XOR5(a,b,c,d,e) XOR3(XOR3(a,b,c),d,e)
|
127
|
-
#define XOR512(a,b) _mm512_xor_si512(a,b)
|
128
|
-
#define ROL(a,offset) _mm_rol_epi64(a,offset)
|
129
|
-
#define Chi(a,b,c) _mm_ternarylogic_epi64(a,b,c,0xD2)
|
130
|
-
|
131
|
-
#define CONST128_64(a) _mm_set1_epi64((__m64)(a))
|
132
|
-
#define LOAD4_32(a,b,c,d) _mm_set_epi32((UINT64)(a), (UINT32)(b), (UINT32)(c), (UINT32)(d))
|
133
|
-
#define LOAD8_32(a,b,c,d,e,f,g,h) _mm256_set_epi32((UINT64)(a), (UINT32)(b), (UINT32)(c), (UINT32)(d), (UINT32)(e), (UINT32)(f), (UINT32)(g), (UINT32)(h))
|
134
|
-
#define LOAD_GATHER2_64(idx,p) _mm_i32gather_epi64( (const void*)(p), idx, 8)
|
135
|
-
#define LOAD_GATHER8_64(idx,p) _mm512_i32gather_epi64( idx, (const void*)(p), 8)
|
136
|
-
#define STORE_SCATTER2_64(p,idx, v) _mm_i32scatter_epi64( (void*)(p), idx, v, 8)
|
137
|
-
#define STORE_SCATTER8_64(p,idx, v) _mm512_i32scatter_epi64( (void*)(p), idx, v, 8)
|
138
|
-
|
139
|
-
#endif
|
140
|
-
|
141
|
-
#define laneIndex(instanceIndex, lanePosition) ((lanePosition)*2 + instanceIndex)
|
142
|
-
#define SnP_laneLengthInBytes 8
|
143
|
-
|
144
|
-
void KeccakP1600times2_InitializeAll(void *states)
|
145
|
-
{
|
146
|
-
memset(states, 0, KeccakP1600times2_statesSizeInBytes);
|
147
|
-
}
|
148
|
-
|
149
|
-
void KeccakP1600times2_AddBytes(void *states, unsigned int instanceIndex, const unsigned char *data, unsigned int offset, unsigned int length)
|
150
|
-
{
|
151
|
-
unsigned int sizeLeft = length;
|
152
|
-
unsigned int lanePosition = offset/SnP_laneLengthInBytes;
|
153
|
-
unsigned int offsetInLane = offset%SnP_laneLengthInBytes;
|
154
|
-
const unsigned char *curData = data;
|
155
|
-
UINT64 *statesAsLanes = states;
|
156
|
-
|
157
|
-
if ((sizeLeft > 0) && (offsetInLane != 0)) {
|
158
|
-
unsigned int bytesInLane = SnP_laneLengthInBytes - offsetInLane;
|
159
|
-
UINT64 lane = 0;
|
160
|
-
if (bytesInLane > sizeLeft)
|
161
|
-
bytesInLane = sizeLeft;
|
162
|
-
memcpy((unsigned char*)&lane + offsetInLane, curData, bytesInLane);
|
163
|
-
statesAsLanes[laneIndex(instanceIndex, lanePosition)] ^= lane;
|
164
|
-
sizeLeft -= bytesInLane;
|
165
|
-
lanePosition++;
|
166
|
-
curData += bytesInLane;
|
167
|
-
}
|
168
|
-
|
169
|
-
while(sizeLeft >= SnP_laneLengthInBytes) {
|
170
|
-
UINT64 lane = *((const UINT64*)curData);
|
171
|
-
statesAsLanes[laneIndex(instanceIndex, lanePosition)] ^= lane;
|
172
|
-
sizeLeft -= SnP_laneLengthInBytes;
|
173
|
-
lanePosition++;
|
174
|
-
curData += SnP_laneLengthInBytes;
|
175
|
-
}
|
176
|
-
|
177
|
-
if (sizeLeft > 0) {
|
178
|
-
UINT64 lane = 0;
|
179
|
-
memcpy(&lane, curData, sizeLeft);
|
180
|
-
statesAsLanes[laneIndex(instanceIndex, lanePosition)] ^= lane;
|
181
|
-
}
|
182
|
-
}
|
183
|
-
|
184
|
-
void KeccakP1600times2_AddLanesAll(void *states, const unsigned char *data, unsigned int laneCount, unsigned int laneOffset)
|
185
|
-
{
|
186
|
-
V128 *stateAsLanes128 = states;
|
187
|
-
V512 *stateAsLanes512 = states;
|
188
|
-
const UINT64 *dataAsLanes = (const UINT64 *)data;
|
189
|
-
unsigned int i;
|
190
|
-
V128 index128 = LOAD4_32(0, 0, 1*laneOffset, 0*laneOffset);
|
191
|
-
V256 index512 = LOAD8_32(1*laneOffset+3, 0*laneOffset+3, 1*laneOffset+2, 0*laneOffset+2, 1*laneOffset+1, 0*laneOffset+1, 1*laneOffset, 0*laneOffset);
|
192
|
-
|
193
|
-
#define Add_In1( argIndex ) stateAsLanes128[argIndex] = XOR(stateAsLanes128[argIndex], LOAD_GATHER2_64(index128, dataAsLanes+argIndex))
|
194
|
-
#define Add_In4( argIndex ) stateAsLanes512[argIndex/4] = XOR512(stateAsLanes512[argIndex/4], LOAD_GATHER8_64(index512, dataAsLanes+argIndex))
|
195
|
-
if ( laneCount >= 16 ) {
|
196
|
-
Add_In4( 0 );
|
197
|
-
Add_In4( 4 );
|
198
|
-
Add_In4( 8 );
|
199
|
-
Add_In4( 12 );
|
200
|
-
if ( laneCount >= 20 ) {
|
201
|
-
Add_In4( 16 );
|
202
|
-
for(i=20; i<laneCount; i++)
|
203
|
-
Add_In1( i );
|
204
|
-
}
|
205
|
-
else {
|
206
|
-
for(i=16; i<laneCount; i++)
|
207
|
-
Add_In1( i );
|
208
|
-
}
|
209
|
-
}
|
210
|
-
else {
|
211
|
-
for(i=0; i<laneCount; i++)
|
212
|
-
Add_In1( i );
|
213
|
-
}
|
214
|
-
#undef Add_In1
|
215
|
-
#undef Add_In4
|
216
|
-
}
|
217
|
-
|
218
|
-
void KeccakP1600times2_OverwriteBytes(void *states, unsigned int instanceIndex, const unsigned char *data, unsigned int offset, unsigned int length)
|
219
|
-
{
|
220
|
-
unsigned int sizeLeft = length;
|
221
|
-
unsigned int lanePosition = offset/SnP_laneLengthInBytes;
|
222
|
-
unsigned int offsetInLane = offset%SnP_laneLengthInBytes;
|
223
|
-
const unsigned char *curData = data;
|
224
|
-
UINT64 *statesAsLanes = states;
|
225
|
-
|
226
|
-
if ((sizeLeft > 0) && (offsetInLane != 0)) {
|
227
|
-
unsigned int bytesInLane = SnP_laneLengthInBytes - offsetInLane;
|
228
|
-
if (bytesInLane > sizeLeft)
|
229
|
-
bytesInLane = sizeLeft;
|
230
|
-
memcpy( ((unsigned char *)&statesAsLanes[laneIndex(instanceIndex, lanePosition)]) + offsetInLane, curData, bytesInLane);
|
231
|
-
sizeLeft -= bytesInLane;
|
232
|
-
lanePosition++;
|
233
|
-
curData += bytesInLane;
|
234
|
-
}
|
235
|
-
|
236
|
-
while(sizeLeft >= SnP_laneLengthInBytes) {
|
237
|
-
UINT64 lane = *((const UINT64*)curData);
|
238
|
-
statesAsLanes[laneIndex(instanceIndex, lanePosition)] = lane;
|
239
|
-
sizeLeft -= SnP_laneLengthInBytes;
|
240
|
-
lanePosition++;
|
241
|
-
curData += SnP_laneLengthInBytes;
|
242
|
-
}
|
243
|
-
|
244
|
-
if (sizeLeft > 0) {
|
245
|
-
memcpy(&statesAsLanes[laneIndex(instanceIndex, lanePosition)], curData, sizeLeft);
|
246
|
-
}
|
247
|
-
}
|
248
|
-
|
249
|
-
void KeccakP1600times2_OverwriteLanesAll(void *states, const unsigned char *data, unsigned int laneCount, unsigned int laneOffset)
|
250
|
-
{
|
251
|
-
V128 *stateAsLanes128 = states;
|
252
|
-
V512 *stateAsLanes512 = states;
|
253
|
-
const UINT64 *dataAsLanes = (const UINT64 *)data;
|
254
|
-
unsigned int i;
|
255
|
-
V128 index128 = LOAD4_32(0, 0, 1*laneOffset, 0*laneOffset);
|
256
|
-
V256 index512 = LOAD8_32(1*laneOffset+3, 0*laneOffset+3, 1*laneOffset+2, 0*laneOffset+2, 1*laneOffset+1, 0*laneOffset+1, 1*laneOffset, 0*laneOffset);
|
257
|
-
|
258
|
-
#define OverWr1( argIndex ) stateAsLanes128[argIndex] = LOAD_GATHER2_64(index128, dataAsLanes+argIndex)
|
259
|
-
#define OverWr4( argIndex ) stateAsLanes512[argIndex/4] = LOAD_GATHER8_64(index512, dataAsLanes+argIndex)
|
260
|
-
if ( laneCount >= 16 ) {
|
261
|
-
OverWr4( 0 );
|
262
|
-
OverWr4( 4 );
|
263
|
-
OverWr4( 8 );
|
264
|
-
OverWr4( 12 );
|
265
|
-
if ( laneCount >= 20 ) {
|
266
|
-
OverWr4( 16 );
|
267
|
-
for(i=20; i<laneCount; i++)
|
268
|
-
OverWr1( i );
|
269
|
-
}
|
270
|
-
else {
|
271
|
-
for(i=16; i<laneCount; i++)
|
272
|
-
OverWr1( i );
|
273
|
-
}
|
274
|
-
}
|
275
|
-
else {
|
276
|
-
for(i=0; i<laneCount; i++)
|
277
|
-
OverWr1( i );
|
278
|
-
}
|
279
|
-
#undef OverWr1
|
280
|
-
#undef OverWr4
|
281
|
-
}
|
282
|
-
|
283
|
-
void KeccakP1600times2_OverwriteWithZeroes(void *states, unsigned int instanceIndex, unsigned int byteCount)
|
284
|
-
{
|
285
|
-
unsigned int sizeLeft = byteCount;
|
286
|
-
unsigned int lanePosition = 0;
|
287
|
-
UINT64 *statesAsLanes = states;
|
288
|
-
|
289
|
-
while(sizeLeft >= SnP_laneLengthInBytes) {
|
290
|
-
statesAsLanes[laneIndex(instanceIndex, lanePosition)] = 0;
|
291
|
-
sizeLeft -= SnP_laneLengthInBytes;
|
292
|
-
lanePosition++;
|
293
|
-
}
|
294
|
-
|
295
|
-
if (sizeLeft > 0) {
|
296
|
-
memset(&statesAsLanes[laneIndex(instanceIndex, lanePosition)], 0, sizeLeft);
|
297
|
-
}
|
298
|
-
}
|
299
|
-
|
300
|
-
void KeccakP1600times2_ExtractBytes(const void *states, unsigned int instanceIndex, unsigned char *data, unsigned int offset, unsigned int length)
|
301
|
-
{
|
302
|
-
unsigned int sizeLeft = length;
|
303
|
-
unsigned int lanePosition = offset/SnP_laneLengthInBytes;
|
304
|
-
unsigned int offsetInLane = offset%SnP_laneLengthInBytes;
|
305
|
-
unsigned char *curData = data;
|
306
|
-
const UINT64 *statesAsLanes = states;
|
307
|
-
|
308
|
-
if ((sizeLeft > 0) && (offsetInLane != 0)) {
|
309
|
-
unsigned int bytesInLane = SnP_laneLengthInBytes - offsetInLane;
|
310
|
-
if (bytesInLane > sizeLeft)
|
311
|
-
bytesInLane = sizeLeft;
|
312
|
-
memcpy( curData, ((unsigned char *)&statesAsLanes[laneIndex(instanceIndex, lanePosition)]) + offsetInLane, bytesInLane);
|
313
|
-
sizeLeft -= bytesInLane;
|
314
|
-
lanePosition++;
|
315
|
-
curData += bytesInLane;
|
316
|
-
}
|
317
|
-
|
318
|
-
while(sizeLeft >= SnP_laneLengthInBytes) {
|
319
|
-
*(UINT64*)curData = statesAsLanes[laneIndex(instanceIndex, lanePosition)];
|
320
|
-
sizeLeft -= SnP_laneLengthInBytes;
|
321
|
-
lanePosition++;
|
322
|
-
curData += SnP_laneLengthInBytes;
|
323
|
-
}
|
324
|
-
|
325
|
-
if (sizeLeft > 0) {
|
326
|
-
memcpy( curData, &statesAsLanes[laneIndex(instanceIndex, lanePosition)], sizeLeft);
|
327
|
-
}
|
328
|
-
}
|
329
|
-
|
330
|
-
void KeccakP1600times2_ExtractLanesAll(const void *states, unsigned char *data, unsigned int laneCount, unsigned int laneOffset)
|
331
|
-
{
|
332
|
-
const V128 *stateAsLanes128 = states;
|
333
|
-
const V512 *stateAsLanes512 = states;
|
334
|
-
UINT64 *dataAsLanes = (UINT64 *)data;
|
335
|
-
unsigned int i;
|
336
|
-
V128 index128 = LOAD4_32(0, 0, 1*laneOffset, 0*laneOffset);
|
337
|
-
V256 index512 = LOAD8_32(1*laneOffset+3, 0*laneOffset+3, 1*laneOffset+2, 0*laneOffset+2, 1*laneOffset+1, 0*laneOffset+1, 1*laneOffset, 0*laneOffset);
|
338
|
-
|
339
|
-
#define Extr1( argIndex ) STORE_SCATTER2_64(dataAsLanes+argIndex, index128, stateAsLanes128[argIndex])
|
340
|
-
#define Extr4( argIndex ) STORE_SCATTER8_64(dataAsLanes+argIndex, index512, stateAsLanes512[argIndex/4])
|
341
|
-
if ( laneCount >= 16 ) {
|
342
|
-
Extr4( 0 );
|
343
|
-
Extr4( 4 );
|
344
|
-
Extr4( 8 );
|
345
|
-
Extr4( 12 );
|
346
|
-
if ( laneCount >= 20 ) {
|
347
|
-
Extr4( 16 );
|
348
|
-
for(i=20; i<laneCount; i++)
|
349
|
-
Extr1( i );
|
350
|
-
}
|
351
|
-
else {
|
352
|
-
for(i=16; i<laneCount; i++)
|
353
|
-
Extr1( i );
|
354
|
-
}
|
355
|
-
}
|
356
|
-
else {
|
357
|
-
for(i=0; i<laneCount; i++)
|
358
|
-
Extr1( i );
|
359
|
-
}
|
360
|
-
#undef Extr1
|
361
|
-
#undef Extr4
|
362
|
-
}
|
363
|
-
|
364
|
-
void KeccakP1600times2_ExtractAndAddBytes(const void *states, unsigned int instanceIndex, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length)
|
365
|
-
{
|
366
|
-
unsigned int sizeLeft = length;
|
367
|
-
unsigned int lanePosition = offset/SnP_laneLengthInBytes;
|
368
|
-
unsigned int offsetInLane = offset%SnP_laneLengthInBytes;
|
369
|
-
const unsigned char *curInput = input;
|
370
|
-
unsigned char *curOutput = output;
|
371
|
-
const UINT64 *statesAsLanes = states;
|
372
|
-
|
373
|
-
if ((sizeLeft > 0) && (offsetInLane != 0)) {
|
374
|
-
unsigned int bytesInLane = SnP_laneLengthInBytes - offsetInLane;
|
375
|
-
UINT64 lane = statesAsLanes[laneIndex(instanceIndex, lanePosition)] >> (8 * offsetInLane);
|
376
|
-
if (bytesInLane > sizeLeft)
|
377
|
-
bytesInLane = sizeLeft;
|
378
|
-
sizeLeft -= bytesInLane;
|
379
|
-
do {
|
380
|
-
*(curOutput++) = *(curInput++) ^ (unsigned char)lane;
|
381
|
-
lane >>= 8;
|
382
|
-
} while ( --bytesInLane != 0);
|
383
|
-
lanePosition++;
|
384
|
-
}
|
385
|
-
|
386
|
-
while(sizeLeft >= SnP_laneLengthInBytes) {
|
387
|
-
*((UINT64*)curOutput) = *((UINT64*)curInput) ^ statesAsLanes[laneIndex(instanceIndex, lanePosition)];
|
388
|
-
sizeLeft -= SnP_laneLengthInBytes;
|
389
|
-
lanePosition++;
|
390
|
-
curInput += SnP_laneLengthInBytes;
|
391
|
-
curOutput += SnP_laneLengthInBytes;
|
392
|
-
}
|
393
|
-
|
394
|
-
if (sizeLeft != 0) {
|
395
|
-
UINT64 lane = statesAsLanes[laneIndex(instanceIndex, lanePosition)];
|
396
|
-
do {
|
397
|
-
*(curOutput++) = *(curInput++) ^ (unsigned char)lane;
|
398
|
-
lane >>= 8;
|
399
|
-
} while ( --sizeLeft != 0);
|
400
|
-
}
|
401
|
-
}
|
402
|
-
|
403
|
-
void KeccakP1600times2_ExtractAndAddLanesAll(const void *states, const unsigned char *input, unsigned char *output, unsigned int laneCount, unsigned int laneOffset)
|
404
|
-
{
|
405
|
-
const V128 *stateAsLanes128 = states;
|
406
|
-
const V512 *stateAsLanes512 = states;
|
407
|
-
const UINT64 *inAsLanes = (const UINT64 *)input;
|
408
|
-
UINT64 *outAsLanes = (UINT64 *)output;
|
409
|
-
unsigned int i;
|
410
|
-
V128 index128 = LOAD4_32(0, 0, 1*laneOffset, 0*laneOffset);
|
411
|
-
V256 index512 = LOAD8_32(1*laneOffset+3, 0*laneOffset+3, 1*laneOffset+2, 0*laneOffset+2, 1*laneOffset+1, 0*laneOffset+1, 1*laneOffset, 0*laneOffset);
|
412
|
-
|
413
|
-
#define ExtrAdd1( argIndex ) STORE_SCATTER2_64(outAsLanes+argIndex, index128, XOR(stateAsLanes128[argIndex], LOAD_GATHER2_64(index128, inAsLanes+argIndex)))
|
414
|
-
#define ExtrAdd4( argIndex ) STORE_SCATTER8_64(outAsLanes+argIndex, index512, XOR512(stateAsLanes512[argIndex/4], LOAD_GATHER8_64(index512, inAsLanes+argIndex)))
|
415
|
-
if ( laneCount >= 16 ) {
|
416
|
-
ExtrAdd4( 0 );
|
417
|
-
ExtrAdd4( 4 );
|
418
|
-
ExtrAdd4( 8 );
|
419
|
-
ExtrAdd4( 12 );
|
420
|
-
if ( laneCount >= 20 ) {
|
421
|
-
ExtrAdd4( 16 );
|
422
|
-
for(i=20; i<laneCount; i++)
|
423
|
-
ExtrAdd1( i );
|
424
|
-
}
|
425
|
-
else {
|
426
|
-
for(i=16; i<laneCount; i++)
|
427
|
-
ExtrAdd1( i );
|
428
|
-
}
|
429
|
-
}
|
430
|
-
else {
|
431
|
-
for(i=0; i<laneCount; i++)
|
432
|
-
ExtrAdd1( i );
|
433
|
-
}
|
434
|
-
#undef ExtrAdd1
|
435
|
-
#undef ExtrAdd4
|
436
|
-
|
437
|
-
}
|
438
|
-
|
439
|
-
static ALIGN(KeccakP1600times2_statesAlignment) const UINT64 KeccakP1600RoundConstants[24] = {
|
440
|
-
0x0000000000000001ULL,
|
441
|
-
0x0000000000008082ULL,
|
442
|
-
0x800000000000808aULL,
|
443
|
-
0x8000000080008000ULL,
|
444
|
-
0x000000000000808bULL,
|
445
|
-
0x0000000080000001ULL,
|
446
|
-
0x8000000080008081ULL,
|
447
|
-
0x8000000000008009ULL,
|
448
|
-
0x000000000000008aULL,
|
449
|
-
0x0000000000000088ULL,
|
450
|
-
0x0000000080008009ULL,
|
451
|
-
0x000000008000000aULL,
|
452
|
-
0x000000008000808bULL,
|
453
|
-
0x800000000000008bULL,
|
454
|
-
0x8000000000008089ULL,
|
455
|
-
0x8000000000008003ULL,
|
456
|
-
0x8000000000008002ULL,
|
457
|
-
0x8000000000000080ULL,
|
458
|
-
0x000000000000800aULL,
|
459
|
-
0x800000008000000aULL,
|
460
|
-
0x8000000080008081ULL,
|
461
|
-
0x8000000000008080ULL,
|
462
|
-
0x0000000080000001ULL,
|
463
|
-
0x8000000080008008ULL};
|
464
|
-
|
465
|
-
#define KeccakP_DeclareVars \
|
466
|
-
V128 _Ba, _Be, _Bi, _Bo, _Bu; \
|
467
|
-
V128 _Da, _De, _Di, _Do, _Du; \
|
468
|
-
V128 _ba, _be, _bi, _bo, _bu; \
|
469
|
-
V128 _ga, _ge, _gi, _go, _gu; \
|
470
|
-
V128 _ka, _ke, _ki, _ko, _ku; \
|
471
|
-
V128 _ma, _me, _mi, _mo, _mu; \
|
472
|
-
V128 _sa, _se, _si, _so, _su
|
473
|
-
|
474
|
-
#define KeccakP_ThetaRhoPiChi( _L1, _L2, _L3, _L4, _L5, _Bb1, _Bb2, _Bb3, _Bb4, _Bb5, _Rr1, _Rr2, _Rr3, _Rr4, _Rr5 ) \
|
475
|
-
_Bb1 = XOR(_L1, _Da); \
|
476
|
-
_Bb2 = XOR(_L2, _De); \
|
477
|
-
_Bb3 = XOR(_L3, _Di); \
|
478
|
-
_Bb4 = XOR(_L4, _Do); \
|
479
|
-
_Bb5 = XOR(_L5, _Du); \
|
480
|
-
if (_Rr1 != 0) _Bb1 = ROL(_Bb1, _Rr1); \
|
481
|
-
_Bb2 = ROL(_Bb2, _Rr2); \
|
482
|
-
_Bb3 = ROL(_Bb3, _Rr3); \
|
483
|
-
_Bb4 = ROL(_Bb4, _Rr4); \
|
484
|
-
_Bb5 = ROL(_Bb5, _Rr5); \
|
485
|
-
_L1 = Chi( _Ba, _Be, _Bi); \
|
486
|
-
_L2 = Chi( _Be, _Bi, _Bo); \
|
487
|
-
_L3 = Chi( _Bi, _Bo, _Bu); \
|
488
|
-
_L4 = Chi( _Bo, _Bu, _Ba); \
|
489
|
-
_L5 = Chi( _Bu, _Ba, _Be);
|
490
|
-
|
491
|
-
#define KeccakP_ThetaRhoPiChiIota0( _L1, _L2, _L3, _L4, _L5, _rc ) \
|
492
|
-
_Ba = XOR5( _ba, _ga, _ka, _ma, _sa ); /* Theta effect */ \
|
493
|
-
_Be = XOR5( _be, _ge, _ke, _me, _se ); \
|
494
|
-
_Bi = XOR5( _bi, _gi, _ki, _mi, _si ); \
|
495
|
-
_Bo = XOR5( _bo, _go, _ko, _mo, _so ); \
|
496
|
-
_Bu = XOR5( _bu, _gu, _ku, _mu, _su ); \
|
497
|
-
_Da = ROL( _Be, 1 ); \
|
498
|
-
_De = ROL( _Bi, 1 ); \
|
499
|
-
_Di = ROL( _Bo, 1 ); \
|
500
|
-
_Do = ROL( _Bu, 1 ); \
|
501
|
-
_Du = ROL( _Ba, 1 ); \
|
502
|
-
_Da = XOR( _Da, _Bu ); \
|
503
|
-
_De = XOR( _De, _Ba ); \
|
504
|
-
_Di = XOR( _Di, _Be ); \
|
505
|
-
_Do = XOR( _Do, _Bi ); \
|
506
|
-
_Du = XOR( _Du, _Bo ); \
|
507
|
-
KeccakP_ThetaRhoPiChi( _L1, _L2, _L3, _L4, _L5, _Ba, _Be, _Bi, _Bo, _Bu, 0, 44, 43, 21, 14 ); \
|
508
|
-
_L1 = XOR(_L1, _rc) /* Iota */
|
509
|
-
|
510
|
-
#define KeccakP_ThetaRhoPiChi1( _L1, _L2, _L3, _L4, _L5 ) \
|
511
|
-
KeccakP_ThetaRhoPiChi( _L1, _L2, _L3, _L4, _L5, _Bi, _Bo, _Bu, _Ba, _Be, 3, 45, 61, 28, 20 )
|
512
|
-
|
513
|
-
#define KeccakP_ThetaRhoPiChi2( _L1, _L2, _L3, _L4, _L5 ) \
|
514
|
-
KeccakP_ThetaRhoPiChi( _L1, _L2, _L3, _L4, _L5, _Bu, _Ba, _Be, _Bi, _Bo, 18, 1, 6, 25, 8 )
|
515
|
-
|
516
|
-
#define KeccakP_ThetaRhoPiChi3( _L1, _L2, _L3, _L4, _L5 ) \
|
517
|
-
KeccakP_ThetaRhoPiChi( _L1, _L2, _L3, _L4, _L5, _Be, _Bi, _Bo, _Bu, _Ba, 36, 10, 15, 56, 27 )
|
518
|
-
|
519
|
-
#define KeccakP_ThetaRhoPiChi4( _L1, _L2, _L3, _L4, _L5 ) \
|
520
|
-
KeccakP_ThetaRhoPiChi( _L1, _L2, _L3, _L4, _L5, _Bo, _Bu, _Ba, _Be, _Bi, 41, 2, 62, 55, 39 )
|
521
|
-
|
522
|
-
#define KeccakP_4rounds( i ) \
|
523
|
-
KeccakP_ThetaRhoPiChiIota0(_ba, _ge, _ki, _mo, _su, CONST128_64(KeccakP1600RoundConstants[i]) ); \
|
524
|
-
KeccakP_ThetaRhoPiChi1( _ka, _me, _si, _bo, _gu ); \
|
525
|
-
KeccakP_ThetaRhoPiChi2( _sa, _be, _gi, _ko, _mu ); \
|
526
|
-
KeccakP_ThetaRhoPiChi3( _ga, _ke, _mi, _so, _bu ); \
|
527
|
-
KeccakP_ThetaRhoPiChi4( _ma, _se, _bi, _go, _ku ); \
|
528
|
-
\
|
529
|
-
KeccakP_ThetaRhoPiChiIota0(_ba, _me, _gi, _so, _ku, CONST128_64(KeccakP1600RoundConstants[i+1]) ); \
|
530
|
-
KeccakP_ThetaRhoPiChi1( _sa, _ke, _bi, _mo, _gu ); \
|
531
|
-
KeccakP_ThetaRhoPiChi2( _ma, _ge, _si, _ko, _bu ); \
|
532
|
-
KeccakP_ThetaRhoPiChi3( _ka, _be, _mi, _go, _su ); \
|
533
|
-
KeccakP_ThetaRhoPiChi4( _ga, _se, _ki, _bo, _mu ); \
|
534
|
-
\
|
535
|
-
KeccakP_ThetaRhoPiChiIota0(_ba, _ke, _si, _go, _mu, CONST128_64(KeccakP1600RoundConstants[i+2]) ); \
|
536
|
-
KeccakP_ThetaRhoPiChi1( _ma, _be, _ki, _so, _gu ); \
|
537
|
-
KeccakP_ThetaRhoPiChi2( _ga, _me, _bi, _ko, _su ); \
|
538
|
-
KeccakP_ThetaRhoPiChi3( _sa, _ge, _mi, _bo, _ku ); \
|
539
|
-
KeccakP_ThetaRhoPiChi4( _ka, _se, _gi, _mo, _bu ); \
|
540
|
-
\
|
541
|
-
KeccakP_ThetaRhoPiChiIota0(_ba, _be, _bi, _bo, _bu, CONST128_64(KeccakP1600RoundConstants[i+3]) ); \
|
542
|
-
KeccakP_ThetaRhoPiChi1( _ga, _ge, _gi, _go, _gu ); \
|
543
|
-
KeccakP_ThetaRhoPiChi2( _ka, _ke, _ki, _ko, _ku ); \
|
544
|
-
KeccakP_ThetaRhoPiChi3( _ma, _me, _mi, _mo, _mu ); \
|
545
|
-
KeccakP_ThetaRhoPiChi4( _sa, _se, _si, _so, _su )
|
546
|
-
|
547
|
-
#define KeccakP_2rounds( i ) \
|
548
|
-
KeccakP_ThetaRhoPiChiIota0(_ba, _ke, _si, _go, _mu, CONST128_64(KeccakP1600RoundConstants[i]) ); \
|
549
|
-
KeccakP_ThetaRhoPiChi1( _ma, _be, _ki, _so, _gu ); \
|
550
|
-
KeccakP_ThetaRhoPiChi2( _ga, _me, _bi, _ko, _su ); \
|
551
|
-
KeccakP_ThetaRhoPiChi3( _sa, _ge, _mi, _bo, _ku ); \
|
552
|
-
KeccakP_ThetaRhoPiChi4( _ka, _se, _gi, _mo, _bu ); \
|
553
|
-
\
|
554
|
-
KeccakP_ThetaRhoPiChiIota0(_ba, _be, _bi, _bo, _bu, CONST128_64(KeccakP1600RoundConstants[i+1]) ); \
|
555
|
-
KeccakP_ThetaRhoPiChi1( _ga, _ge, _gi, _go, _gu ); \
|
556
|
-
KeccakP_ThetaRhoPiChi2( _ka, _ke, _ki, _ko, _ku ); \
|
557
|
-
KeccakP_ThetaRhoPiChi3( _ma, _me, _mi, _mo, _mu ); \
|
558
|
-
KeccakP_ThetaRhoPiChi4( _sa, _se, _si, _so, _su )
|
559
|
-
|
560
|
-
#ifdef KeccakP1600times2_fullUnrolling
|
561
|
-
|
562
|
-
#define rounds12 \
|
563
|
-
KeccakP_4rounds( 12 ); \
|
564
|
-
KeccakP_4rounds( 16 ); \
|
565
|
-
KeccakP_4rounds( 20 )
|
566
|
-
|
567
|
-
#define rounds24 \
|
568
|
-
KeccakP_4rounds( 0 ); \
|
569
|
-
KeccakP_4rounds( 4 ); \
|
570
|
-
KeccakP_4rounds( 8 ); \
|
571
|
-
KeccakP_4rounds( 12 ); \
|
572
|
-
KeccakP_4rounds( 16 ); \
|
573
|
-
KeccakP_4rounds( 20 )
|
574
|
-
|
575
|
-
#elif (KeccakP1600times2_unrolling == 4)
|
576
|
-
|
577
|
-
#define rounds12 \
|
578
|
-
i = 12; \
|
579
|
-
do { \
|
580
|
-
KeccakP_4rounds( i ); \
|
581
|
-
} while( (i += 4) < 24 )
|
582
|
-
|
583
|
-
#define rounds24 \
|
584
|
-
i = 0; \
|
585
|
-
do { \
|
586
|
-
KeccakP_4rounds( i ); \
|
587
|
-
} while( (i += 4) < 24 )
|
588
|
-
|
589
|
-
#elif (KeccakP1600times2_unrolling == 12)
|
590
|
-
|
591
|
-
#define rounds12 \
|
592
|
-
KeccakP_4rounds( 12 ); \
|
593
|
-
KeccakP_4rounds( 16 ); \
|
594
|
-
KeccakP_4rounds( 20 )
|
595
|
-
|
596
|
-
#define rounds24 \
|
597
|
-
i = 0; \
|
598
|
-
do { \
|
599
|
-
KeccakP_4rounds( i ); \
|
600
|
-
KeccakP_4rounds( i+4 ); \
|
601
|
-
KeccakP_4rounds( i+8 ); \
|
602
|
-
} while( (i += 12) < 24 )
|
603
|
-
|
604
|
-
#else
|
605
|
-
#error "Unrolling is not correctly specified!"
|
606
|
-
#endif
|
607
|
-
|
608
|
-
#define copyFromState2rounds(pState) \
|
609
|
-
_ba = pState[ 0]; \
|
610
|
-
_be = pState[16]; /* me */ \
|
611
|
-
_bi = pState[ 7]; /* gi */ \
|
612
|
-
_bo = pState[23]; /* so */ \
|
613
|
-
_bu = pState[14]; /* ku */ \
|
614
|
-
_ga = pState[20]; /* sa */ \
|
615
|
-
_ge = pState[11]; /* ke */ \
|
616
|
-
_gi = pState[ 2]; /* bi */ \
|
617
|
-
_go = pState[18]; /* mo */ \
|
618
|
-
_gu = pState[ 9]; \
|
619
|
-
_ka = pState[15]; /* ma */ \
|
620
|
-
_ke = pState[ 6]; /* ge */ \
|
621
|
-
_ki = pState[22]; /* si */ \
|
622
|
-
_ko = pState[13]; \
|
623
|
-
_ku = pState[ 4]; /* bu */ \
|
624
|
-
_ma = pState[10]; /* ka */ \
|
625
|
-
_me = pState[ 1]; /* be */ \
|
626
|
-
_mi = pState[17]; \
|
627
|
-
_mo = pState[ 8]; /* go */ \
|
628
|
-
_mu = pState[24]; /* su */ \
|
629
|
-
_sa = pState[ 5]; /* ga */ \
|
630
|
-
_se = pState[21]; \
|
631
|
-
_si = pState[12]; /* ki */ \
|
632
|
-
_so = pState[ 3]; /* bo */ \
|
633
|
-
_su = pState[19] /* mu */
|
634
|
-
|
635
|
-
#define copyFromState(pState) \
|
636
|
-
_ba = pState[ 0]; \
|
637
|
-
_be = pState[ 1]; \
|
638
|
-
_bi = pState[ 2]; \
|
639
|
-
_bo = pState[ 3]; \
|
640
|
-
_bu = pState[ 4]; \
|
641
|
-
_ga = pState[ 5]; \
|
642
|
-
_ge = pState[ 6]; \
|
643
|
-
_gi = pState[ 7]; \
|
644
|
-
_go = pState[ 8]; \
|
645
|
-
_gu = pState[ 9]; \
|
646
|
-
_ka = pState[10]; \
|
647
|
-
_ke = pState[11]; \
|
648
|
-
_ki = pState[12]; \
|
649
|
-
_ko = pState[13]; \
|
650
|
-
_ku = pState[14]; \
|
651
|
-
_ma = pState[15]; \
|
652
|
-
_me = pState[16]; \
|
653
|
-
_mi = pState[17]; \
|
654
|
-
_mo = pState[18]; \
|
655
|
-
_mu = pState[19]; \
|
656
|
-
_sa = pState[20]; \
|
657
|
-
_se = pState[21]; \
|
658
|
-
_si = pState[22]; \
|
659
|
-
_so = pState[23]; \
|
660
|
-
_su = pState[24]
|
661
|
-
|
662
|
-
#define copyToState(pState) \
|
663
|
-
pState[ 0] = _ba; \
|
664
|
-
pState[ 1] = _be; \
|
665
|
-
pState[ 2] = _bi; \
|
666
|
-
pState[ 3] = _bo; \
|
667
|
-
pState[ 4] = _bu; \
|
668
|
-
pState[ 5] = _ga; \
|
669
|
-
pState[ 6] = _ge; \
|
670
|
-
pState[ 7] = _gi; \
|
671
|
-
pState[ 8] = _go; \
|
672
|
-
pState[ 9] = _gu; \
|
673
|
-
pState[10] = _ka; \
|
674
|
-
pState[11] = _ke; \
|
675
|
-
pState[12] = _ki; \
|
676
|
-
pState[13] = _ko; \
|
677
|
-
pState[14] = _ku; \
|
678
|
-
pState[15] = _ma; \
|
679
|
-
pState[16] = _me; \
|
680
|
-
pState[17] = _mi; \
|
681
|
-
pState[18] = _mo; \
|
682
|
-
pState[19] = _mu; \
|
683
|
-
pState[20] = _sa; \
|
684
|
-
pState[21] = _se; \
|
685
|
-
pState[22] = _si; \
|
686
|
-
pState[23] = _so; \
|
687
|
-
pState[24] = _su
|
688
|
-
|
689
|
-
void KeccakP1600times2_PermuteAll_24rounds(void *states)
|
690
|
-
{
|
691
|
-
V128 *statesAsLanes = states;
|
692
|
-
KeccakP_DeclareVars;
|
693
|
-
#ifndef KeccakP1600times2_fullUnrolling
|
694
|
-
unsigned int i;
|
695
|
-
#endif
|
696
|
-
|
697
|
-
copyFromState(statesAsLanes);
|
698
|
-
rounds24;
|
699
|
-
copyToState(statesAsLanes);
|
700
|
-
}
|
701
|
-
|
702
|
-
void KeccakP1600times2_PermuteAll_12rounds(void *states)
|
703
|
-
{
|
704
|
-
V128 *statesAsLanes = states;
|
705
|
-
KeccakP_DeclareVars;
|
706
|
-
#if (KeccakP1600times2_unrolling < 12)
|
707
|
-
unsigned int i;
|
708
|
-
#endif
|
709
|
-
|
710
|
-
copyFromState(statesAsLanes);
|
711
|
-
rounds12;
|
712
|
-
copyToState(statesAsLanes);
|
713
|
-
}
|
714
|
-
|
715
|
-
void KeccakP1600times2_PermuteAll_6rounds(void *states)
|
716
|
-
{
|
717
|
-
V128 *statesAsLanes = states;
|
718
|
-
KeccakP_DeclareVars;
|
719
|
-
|
720
|
-
copyFromState2rounds(statesAsLanes);
|
721
|
-
KeccakP_2rounds( 18 );
|
722
|
-
KeccakP_4rounds( 20 );
|
723
|
-
copyToState(statesAsLanes);
|
724
|
-
}
|
725
|
-
|
726
|
-
void KeccakP1600times2_PermuteAll_4rounds(void *states)
|
727
|
-
{
|
728
|
-
V128 *statesAsLanes = states;
|
729
|
-
KeccakP_DeclareVars;
|
730
|
-
|
731
|
-
copyFromState(statesAsLanes);
|
732
|
-
KeccakP_4rounds( 20 );
|
733
|
-
copyToState(statesAsLanes);
|
734
|
-
}
|
735
|
-
|
736
|
-
size_t KeccakF1600times2_FastLoop_Absorb(void *states, unsigned int laneCount, unsigned int laneOffsetParallel, unsigned int laneOffsetSerial, const unsigned char *data, size_t dataByteLen)
|
737
|
-
{
|
738
|
-
size_t dataMinimumSize = (laneOffsetParallel*1 + laneCount)*8;
|
739
|
-
|
740
|
-
if (laneCount == 21) {
|
741
|
-
#ifndef KeccakP1600times2_fullUnrolling
|
742
|
-
unsigned int i;
|
743
|
-
#endif
|
744
|
-
const unsigned char *dataStart = data;
|
745
|
-
V128 *statesAsLanes = states;
|
746
|
-
const UINT64 *dataAsLanes = (const UINT64 *)data;
|
747
|
-
KeccakP_DeclareVars;
|
748
|
-
V128 index = LOAD4_32(0, 0, 1*laneOffsetParallel, 0*laneOffsetParallel);
|
749
|
-
|
750
|
-
copyFromState(statesAsLanes);
|
751
|
-
while(dataByteLen >= dataMinimumSize) {
|
752
|
-
#define Add_In( argLane, argIndex ) argLane = XOR(argLane, LOAD_GATHER2_64(index, dataAsLanes+argIndex))
|
753
|
-
Add_In( _ba, 0 );
|
754
|
-
Add_In( _be, 1 );
|
755
|
-
Add_In( _bi, 2 );
|
756
|
-
Add_In( _bo, 3 );
|
757
|
-
Add_In( _bu, 4 );
|
758
|
-
Add_In( _ga, 5 );
|
759
|
-
Add_In( _ge, 6 );
|
760
|
-
Add_In( _gi, 7 );
|
761
|
-
Add_In( _go, 8 );
|
762
|
-
Add_In( _gu, 9 );
|
763
|
-
Add_In( _ka, 10 );
|
764
|
-
Add_In( _ke, 11 );
|
765
|
-
Add_In( _ki, 12 );
|
766
|
-
Add_In( _ko, 13 );
|
767
|
-
Add_In( _ku, 14 );
|
768
|
-
Add_In( _ma, 15 );
|
769
|
-
Add_In( _me, 16 );
|
770
|
-
Add_In( _mi, 17 );
|
771
|
-
Add_In( _mo, 18 );
|
772
|
-
Add_In( _mu, 19 );
|
773
|
-
Add_In( _sa, 20 );
|
774
|
-
#undef Add_In
|
775
|
-
rounds24;
|
776
|
-
dataAsLanes += laneOffsetSerial;
|
777
|
-
dataByteLen -= laneOffsetSerial*8;
|
778
|
-
}
|
779
|
-
copyToState(statesAsLanes);
|
780
|
-
return (const unsigned char *)dataAsLanes - dataStart;
|
781
|
-
}
|
782
|
-
else {
|
783
|
-
const unsigned char *dataStart = data;
|
784
|
-
|
785
|
-
while(dataByteLen >= dataMinimumSize) {
|
786
|
-
KeccakP1600times2_AddLanesAll(states, data, laneCount, laneOffsetParallel);
|
787
|
-
KeccakP1600times2_PermuteAll_24rounds(states);
|
788
|
-
data += laneOffsetSerial*8;
|
789
|
-
dataByteLen -= laneOffsetSerial*8;
|
790
|
-
}
|
791
|
-
return data - dataStart;
|
792
|
-
}
|
793
|
-
}
|
794
|
-
|
795
|
-
size_t KeccakP1600times2_12rounds_FastLoop_Absorb(void *states, unsigned int laneCount, unsigned int laneOffsetParallel, unsigned int laneOffsetSerial, const unsigned char *data, size_t dataByteLen)
|
796
|
-
{
|
797
|
-
size_t dataMinimumSize = (laneOffsetParallel*1 + laneCount)*8;
|
798
|
-
|
799
|
-
if (laneCount == 21) {
|
800
|
-
#if (KeccakP1600times2_unrolling < 12)
|
801
|
-
unsigned int i;
|
802
|
-
#endif
|
803
|
-
const unsigned char *dataStart = data;
|
804
|
-
V128 *statesAsLanes = states;
|
805
|
-
const UINT64 *dataAsLanes = (const UINT64 *)data;
|
806
|
-
KeccakP_DeclareVars;
|
807
|
-
V128 index = LOAD4_32(0, 0, 1*laneOffsetParallel, 0*laneOffsetParallel);
|
808
|
-
|
809
|
-
copyFromState(statesAsLanes);
|
810
|
-
while(dataByteLen >= dataMinimumSize) {
|
811
|
-
#define Add_In( argLane, argIndex ) argLane = XOR(argLane, LOAD_GATHER2_64(index, dataAsLanes+argIndex))
|
812
|
-
Add_In( _ba, 0 );
|
813
|
-
Add_In( _be, 1 );
|
814
|
-
Add_In( _bi, 2 );
|
815
|
-
Add_In( _bo, 3 );
|
816
|
-
Add_In( _bu, 4 );
|
817
|
-
Add_In( _ga, 5 );
|
818
|
-
Add_In( _ge, 6 );
|
819
|
-
Add_In( _gi, 7 );
|
820
|
-
Add_In( _go, 8 );
|
821
|
-
Add_In( _gu, 9 );
|
822
|
-
Add_In( _ka, 10 );
|
823
|
-
Add_In( _ke, 11 );
|
824
|
-
Add_In( _ki, 12 );
|
825
|
-
Add_In( _ko, 13 );
|
826
|
-
Add_In( _ku, 14 );
|
827
|
-
Add_In( _ma, 15 );
|
828
|
-
Add_In( _me, 16 );
|
829
|
-
Add_In( _mi, 17 );
|
830
|
-
Add_In( _mo, 18 );
|
831
|
-
Add_In( _mu, 19 );
|
832
|
-
Add_In( _sa, 20 );
|
833
|
-
#undef Add_In
|
834
|
-
rounds12;
|
835
|
-
dataAsLanes += laneOffsetSerial;
|
836
|
-
dataByteLen -= laneOffsetSerial*8;
|
837
|
-
}
|
838
|
-
copyToState(statesAsLanes);
|
839
|
-
return (const unsigned char *)dataAsLanes - dataStart;
|
840
|
-
}
|
841
|
-
else {
|
842
|
-
const unsigned char *dataStart = data;
|
843
|
-
|
844
|
-
while(dataByteLen >= dataMinimumSize) {
|
845
|
-
KeccakP1600times2_AddLanesAll(states, data, laneCount, laneOffsetParallel);
|
846
|
-
KeccakP1600times2_PermuteAll_12rounds(states);
|
847
|
-
data += laneOffsetSerial*8;
|
848
|
-
dataByteLen -= laneOffsetSerial*8;
|
849
|
-
}
|
850
|
-
return data - dataStart;
|
851
|
-
}
|
852
|
-
}
|