Implementation notes: amd64, scw1b63b1, crypto_encrypt/ntruees1087ep1

Computer: scw1b63b1
Architecture: amd64
CPU ID: GenuineIntel-000506f1-0f8bfbff
SUPERCOP version: 20191017
Operation: crypto_encrypt
Primitive: ntruees1087ep1

Compiler output

Implementation: ref
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.c: encrypt.c:33:9: warning: implicit declaration of function 'ntru_crypto_external_drbg_instantiate' is invalid in C99 [-Wimplicit-function-declaration]
encrypt.c: if (ntru_crypto_external_drbg_instantiate((RANDOM_BYTES_FN)&randombytesfn, &drbg) != DRBG_OK)
encrypt.c: ^
encrypt.c: 1 warning generated.
ntru_crypto_sha1.c: ntru_crypto_sha1.c:83:33: warning: '&' within '^' [-Wbitwise-op-parentheses]
ntru_crypto_sha1.c: E += RL(A, 5) + K00_19 + (B & (C ^ D) ^ D) + data[ 0]; B = RL(B, 30);
ntru_crypto_sha1.c: ~~^~~~~~~~~ ~
ntru_crypto_sha1.c: ntru_crypto_sha1.c:83:33: note: place parentheses around the '&' expression to silence this warning
ntru_crypto_sha1.c: E += RL(A, 5) + K00_19 + (B & (C ^ D) ^ D) + data[ 0]; B = RL(B, 30);
ntru_crypto_sha1.c: ^
ntru_crypto_sha1.c: ( )
ntru_crypto_sha1.c: ntru_crypto_sha1.c:84:33: warning: '&' within '^' [-Wbitwise-op-parentheses]
ntru_crypto_sha1.c: D += RL(E, 5) + K00_19 + (A & (B ^ C) ^ C) + data[ 1]; A = RL(A, 30);
ntru_crypto_sha1.c: ~~^~~~~~~~~ ~
ntru_crypto_sha1.c: ...
ntru_crypto_sha1.c: ^
ntru_crypto_sha1.c: ( )
ntru_crypto_sha1.c: ntru_crypto_sha1.c:109:33: warning: '&' within '^' [-Wbitwise-op-parentheses]
ntru_crypto_sha1.c: A += RL(B, 5) + K00_19 + (C & (D ^ E) ^ E) + w[ 3]; C = RL(C, 30);
ntru_crypto_sha1.c: ~~^~~~~~~~~ ~
ntru_crypto_sha1.c: ntru_crypto_sha1.c:109:33: note: place parentheses around the '&' expression to silence this warning
ntru_crypto_sha1.c: A += RL(B, 5) + K00_19 + (C & (D ^ E) ^ E) + w[ 3]; C = RL(C, 30);
ntru_crypto_sha1.c: ^
ntru_crypto_sha1.c: ( )
ntru_crypto_sha1.c: 20 warnings generated.
ntru_crypto_sha2.c: ntru_crypto_sha2.c:88:21: warning: '&' within '^' [-Wbitwise-op-parentheses]
ntru_crypto_sha2.c: H += S1(E) + (E & (F ^ G) ^ G) + 0x428A2F98UL + data[ 0]; D += H;
ntru_crypto_sha2.c: ~~^~~~~~~~~ ~
ntru_crypto_sha2.c: ntru_crypto_sha2.c:88:21: note: place parentheses around the '&' expression to silence this warning
ntru_crypto_sha2.c: H += S1(E) + (E & (F ^ G) ^ G) + 0x428A2F98UL + data[ 0]; D += H;
ntru_crypto_sha2.c: ^
ntru_crypto_sha2.c: ( )
ntru_crypto_sha2.c: ntru_crypto_sha2.c:90:21: warning: '&' within '^' [-Wbitwise-op-parentheses]
ntru_crypto_sha2.c: G += S1(D) + (D & (E ^ F) ^ F) + 0x71374491UL + data[ 1]; C += G;
ntru_crypto_sha2.c: ~~^~~~~~~~~ ~
ntru_crypto_sha2.c: ...
ntru_crypto_sha2.c: ^
ntru_crypto_sha2.c: ( )
ntru_crypto_sha2.c: ntru_crypto_sha2.c:265:21: warning: '&' within '^' [-Wbitwise-op-parentheses]
ntru_crypto_sha2.c: A += S1(F) + (F & (G ^ H) ^ H) + 0xC67178F2UL + w[15]; E += A;
ntru_crypto_sha2.c: ~~^~~~~~~~~ ~
ntru_crypto_sha2.c: ntru_crypto_sha2.c:265:21: note: place parentheses around the '&' expression to silence this warning
ntru_crypto_sha2.c: A += S1(F) + (F & (G ^ H) ^ H) + 0xC67178F2UL + w[15]; E += A;
ntru_crypto_sha2.c: ^
ntru_crypto_sha2.c: ( )
ntru_crypto_sha2.c: 64 warnings generated.
try.c: crypto_encrypt_ntruees1087ep1.a(encrypt.o): In function `crypto_encrypt_ntruees1087ep1_ref':
try.c: encrypt.c:(.text+0x...): undefined reference to `ntru_crypto_external_drbg_instantiate'
try.c: crypto_encrypt_ntruees1087ep1.a(encrypt.o): In function `crypto_encrypt_ntruees1087ep1_ref_keypair':
try.c: encrypt.c:(.text+0x...): undefined reference to `ntru_crypto_external_drbg_instantiate'
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.c: encrypt.c:33:9: warning: implicit declaration of function 'ntru_crypto_external_drbg_instantiate' is invalid in C99 [-Wimplicit-function-declaration]
encrypt.c: if (ntru_crypto_external_drbg_instantiate((RANDOM_BYTES_FN)&randombytesfn, &drbg) != DRBG_OK)
encrypt.c: ^
encrypt.c: 1 warning generated.
ntru_crypto_ntru_mult_coeffs_simd.c: ntru_crypto_ntru_mult_coeffs_simd.c:62:15: error: '__builtin_ia32_palignr128' needs target feature ssse3
ntru_crypto_ntru_mult_coeffs_simd.c: cur = _mm_alignr_epi8(next, cur, 2);
ntru_crypto_ntru_mult_coeffs_simd.c: ^
ntru_crypto_ntru_mult_coeffs_simd.c: /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/tmmintrin.h:69:12: note: expanded from macro '_mm_alignr_epi8'
ntru_crypto_ntru_mult_coeffs_simd.c: (__m128i)__builtin_ia32_palignr128((__v16qi)(__m128i)(a), ^
ntru_crypto_ntru_mult_coeffs_simd.c: 1 error generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.c: encrypt.c: In function ‘crypto_encrypt_ntruees1087ep1_ref’:
encrypt.c: encrypt.c:33:9: warning: implicit declaration of function ‘ntru_crypto_external_drbg_instantiate’ [-Wimplicit-function-declaration]
encrypt.c: if (ntru_crypto_external_drbg_instantiate((RANDOM_BYTES_FN)&randombytesfn, &drbg) != DRBG_OK)
encrypt.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
try.c: crypto_encrypt_ntruees1087ep1.a(encrypt.o): In function `crypto_encrypt_ntruees1087ep1_ref':
try.c: encrypt.c:(.text+0x...): undefined reference to `ntru_crypto_external_drbg_instantiate'
try.c: crypto_encrypt_ntruees1087ep1.a(encrypt.o): In function `crypto_encrypt_ntruees1087ep1_ref_keypair':
try.c: encrypt.c:(.text+0x...): undefined reference to `ntru_crypto_external_drbg_instantiate'
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref