Implementation notes: amd64, cezanne, crypto_kem/ntrulpr761

Computer: cezanne
Microarchitecture: amd64; Zen 3 (a50f00)
Architecture: amd64
CPU ID: AuthenticAMD-00a50f00-178bfbff
SUPERCOP version: 20240625
Operation: crypto_kem
Primitive: ntrulpr761
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
937616833 0 072687 836 1720factoredclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
941196234 0 071992 820 1752factoredgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
9430410983 0 076975 836 1720factoredclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1067438389 0 074063 836 1720factoredclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1081212832 0 065997 828 1720factoredclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1131192491 0 066760 820 1752factoredgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1142142151 0 064864 812 1720factoredgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1145402468 0 066005 828 1720factoredclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1158952236 0 066032 820 1752factoredgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
12050020314135 0 051296 820 1752refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
12158242314957 0 051807 836 1720refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
12192076814117 0 051167 836 1720refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
12192131419955 0 057087 836 1720refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1414895425968 0 041488 820 1752refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1421594755384 0 039757 828 1720refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1440435295320 0 040368 820 1752refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1638392087029 0 042013 828 1720refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625
1979781395001 0 038976 812 1720refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062820240625

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x4098F9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x40A8D9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x407FD9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x408079
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x409DB9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x1103C9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x1112D9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x110049
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x10FC79
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Generator (kem.c:135)
   by 0x...: crypto_kem_ntrulpr761_factored_constbranchindex_keypair (kem.c:198)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
factoredgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x4068C9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x407F09
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x404139
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x403E09
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x406B79
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x10C4B9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x10E619
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x10BEE9
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

TIMECOP error (can be valgrind bug)


Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x10BA19
   at 0x...: _mm256_aesenc_epi128 (vaesintrin.h:52)
   by 0x...: aesni_encrypt8 (vaesenc-int.c:281)
   by 0x...: crypto_stream_aes256ctr_dolbeau_vaesenc_int_constbranchindex (vaesenc-int.c:313)
   by 0x...: Expand (kem.c:451)
   by 0x...: Generator (kem.c:486)
   by 0x...: XKeyGen (kem.c:515)
   by 0x...: ZKeyGen (kem.c:716)
   by 0x...: KEM_KeyGen (kem.c:800)
   by 0x...: crypto_kem_ntrulpr761_ref_constbranchindex_keypair (kem.c:862)
   by 0x...: test (try.c:126)
   by 0x...: main (try-anything.c:345)

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)