Implementation notes: amd64, cezanne, crypto_kem/ntrulpr1277

Computer: cezanne
Microarchitecture: amd64; Zen 3 (a50f00)
Architecture: amd64
CPU ID: AuthenticAMD-00a50f00-178bfbff
SUPERCOP version: 20240716
Operation: crypto_kem
Primitive: ntrulpr1277
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
1601766305 0 077056 820 1752factoredgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
1609189575 0 080599 836 1720factoredclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
1609597217 0 078103 836 1720factoredclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
1771572759 0 070965 828 1720factoredclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
1791775001 0 075767 836 1720factoredclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
1856942475 0 071728 820 1752factoredgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
1885962127 0 069832 812 1720factoredgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
1909642505 0 071101 828 1720factoredclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
1968232197 0 071000 820 1752factoredgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
34050594817311 0 054464 820 1752refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
34115720915560 0 052639 836 1720refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
34151752815885 0 052767 836 1720refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
34165264718003 0 055167 836 1720refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
3934328585968 0 041488 820 1752refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
4062308755306 0 039693 828 1720refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
4100654085320 0 040368 820 1752refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
4591775687045 0 042077 828 1720refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716
5679750405001 0 038976 812 1720refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071920240716

TIMECOP error (can be valgrind bug)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x40AD49
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x40B629
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x4092F9
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x409319
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x40A3A9
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x1116A9
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x112619
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x111309
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x110F29
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x406E69
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x407769
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x404169
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x403DC9
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x406F49
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x10C4D9
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x10F2B9
   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_ntrulpr1277_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)


error 111

Process terminating with default action of signal 4 (SIGILL)
 Illegal opcode at address 0x10BF09
   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_ntrulpr1277_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)


error 111

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_ntrulpr1277_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)