Implementation notes: amd64, hydra5, crypto_sign/picnic2l5fs

Computer: hydra5
Microarchitecture: amd64; K10 32nm (300f10)
Architecture: amd64
CPU ID: AuthenticAMD-00300f10-178bfbff
SUPERCOP version: 20240107
Operation: crypto_sign
Primitive: picnic2l5fs

Compiler output

Implementation: T:optimizedct/avx2
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
picnic2_impl.c: In file included from picnic2_impl.c:22:
picnic2_impl.c: ./kdf_shake.h:54:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashInitialize_SHAKE128(ctx);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:56:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashInitialize_SHAKE256(ctx);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:61:21: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashUpdate' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashUpdate(ctx, data, size << 3);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:65:20: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashFinal' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashFinal(ctx, NULL);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:69:22: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashSqueeze' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashSqueeze(ctx, buffer, buflen << 3);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:99:42: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitializetimes4' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashInitializetimes4_SHAKE128(ctx);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:101:42: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitializetimes4' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashInitializetimes4_SHAKE256(ctx);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:106:27: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashUpdatetimes4' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashUpdatetimes4(ctx, data, size << 3);
picnic2_impl.c: ^
picnic2_impl.c: ...

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/avx2
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/avx2
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/avx2
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/avx2
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/avx2

Compiler output

Implementation: T:optimizedct/avx2
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.c: /usr/bin/ld: /home/djb/benchmarking/supercop-20231212/supercop-data/hydra5/amd64/lib/libkeccak.a(KeccakP-1600-x86-64-gas.o): relocation R_X86_64_32S against `.text' can not be used when making a PIE object; recompile with -fPIE
try.c: /usr/bin/ld: failed to set dynamic section sizes: bad value
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 14, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/avx2
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/avx2
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/avx2
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/avx2
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/c
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/c
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/c
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/c
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/sse2
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/sse2
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/sse2
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:optimizedct/sse2
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref

Compiler output

Implementation: T:optimizedct/c
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
picnic2_impl.c: In file included from picnic2_impl.c:22:
picnic2_impl.c: ./kdf_shake.h:58:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashInitialize_SHAKE128(ctx);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:60:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashInitialize_SHAKE256(ctx);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:65:21: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashUpdate' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashUpdate(ctx, data, size << 3);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:69:20: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashFinal' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashFinal(ctx, NULL);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:73:22: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashSqueeze' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashSqueeze(ctx, buffer, buflen << 3);
picnic2_impl.c: ^
picnic2_impl.c: 5 warnings generated.
picnic2_tree.c: In file included from picnic2_tree.c:19:
picnic2_tree.c: ./kdf_shake.h:58:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashInitialize_SHAKE128(ctx);
picnic2_tree.c: ^
picnic2_tree.c: ./kdf_shake.h:60:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashInitialize_SHAKE256(ctx);
picnic2_tree.c: ^
picnic2_tree.c: ./kdf_shake.h:65:21: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashUpdate' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashUpdate(ctx, data, size << 3);
picnic2_tree.c: ^
picnic2_tree.c: ./kdf_shake.h:69:20: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashFinal' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashFinal(ctx, NULL);
picnic2_tree.c: ^
picnic2_tree.c: ./kdf_shake.h:73:22: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashSqueeze' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashSqueeze(ctx, buffer, buflen << 3);
picnic2_tree.c: ^
picnic2_tree.c: 5 warnings generated.
try.c: /usr/bin/ld: /home/djb/benchmarking/supercop-20231212/supercop-data/hydra5/amd64/lib/libkeccak.a(KeccakP-1600-x86-64-gas.o): relocation R_X86_64_32S against `.text' can not be used when making a PIE object; recompile with -fPIE
try.c: /usr/bin/ld: failed to set dynamic section sizes: bad value
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/c
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/c
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/c
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/c
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/c

Compiler output

Implementation: T:optimizedct/sse2
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
picnic2_impl.c: In file included from picnic2_impl.c:22:
picnic2_impl.c: ./kdf_shake.h:50:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashInitialize_SHAKE128(ctx);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:52:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashInitialize_SHAKE256(ctx);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:57:21: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashUpdate' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashUpdate(ctx, data, size << 3);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:61:20: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashFinal' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashFinal(ctx, NULL);
picnic2_impl.c: ^
picnic2_impl.c: ./kdf_shake.h:65:22: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashSqueeze' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_impl.c: Keccak_HashSqueeze(ctx, buffer, buflen << 3);
picnic2_impl.c: ^
picnic2_impl.c: 5 warnings generated.
picnic2_tree.c: In file included from picnic2_tree.c:19:
picnic2_tree.c: ./kdf_shake.h:50:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashInitialize_SHAKE128(ctx);
picnic2_tree.c: ^
picnic2_tree.c: ./kdf_shake.h:52:36: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashInitialize' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashInitialize_SHAKE256(ctx);
picnic2_tree.c: ^
picnic2_tree.c: ./kdf_shake.h:57:21: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashUpdate' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashUpdate(ctx, data, size << 3);
picnic2_tree.c: ^
picnic2_tree.c: ./kdf_shake.h:61:20: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashFinal' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashFinal(ctx, NULL);
picnic2_tree.c: ^
picnic2_tree.c: ./kdf_shake.h:65:22: warning: passing 32-byte aligned argument to 64-byte aligned parameter 1 of 'Keccak_HashSqueeze' may result in an unaligned pointer access [-Walign-mismatch]
picnic2_tree.c: Keccak_HashSqueeze(ctx, buffer, buflen << 3);
picnic2_tree.c: ^
picnic2_tree.c: 5 warnings generated.
try.c: /usr/bin/ld: /home/djb/benchmarking/supercop-20231212/supercop-data/hydra5/amd64/lib/libkeccak.a(KeccakP-1600-x86-64-gas.o): relocation R_X86_64_32S against `.text' can not be used when making a PIE object; recompile with -fPIE
try.c: /usr/bin/ld: failed to set dynamic section sizes: bad value
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/sse2
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/sse2
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/sse2
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/sse2
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:optimizedct/sse2

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
try.c: /usr/bin/ld: /home/djb/benchmarking/supercop-20231212/supercop-data/hydra5/amd64/lib/libkeccak.a(KeccakP-1600-x86-64-gas.o): relocation R_X86_64_32S against `.text' can not be used when making a PIE object; recompile with -fPIE
try.c: /usr/bin/ld: failed to set dynamic section sizes: bad value
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE
picnic_impl.c: picnic_impl.c: In function 'mpc_LowMC_verify':
picnic_impl.c: picnic_impl.c:469:5: warning: 'mpc_matrix_mul' accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
picnic_impl.c: 469 | mpc_matrix_mul(roundKey, keyShares, KMatrix(0, params), params, 2);
picnic_impl.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
picnic_impl.c: picnic_impl.c:469:5: note: referencing argument 1 of type 'uint32_t **' {aka 'unsigned int **'}
picnic_impl.c: picnic_impl.c:469:5: warning: 'mpc_matrix_mul' accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
picnic_impl.c: picnic_impl.c:469:5: note: referencing argument 2 of type 'uint32_t **' {aka 'unsigned int **'}
picnic_impl.c: picnic_impl.c:437:6: note: in a call to function 'mpc_matrix_mul'
picnic_impl.c: 437 | void mpc_matrix_mul(uint32_t* output[3], uint32_t* state[3], const uint32_t* matrix,
picnic_impl.c: | ^~~~~~~~~~~~~~
picnic_impl.c: picnic_impl.c:470:5: warning: 'mpc_xor' accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
picnic_impl.c: 470 | mpc_xor(state, roundKey, params->stateSizeWords, 2);
picnic_impl.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
picnic_impl.c: picnic_impl.c:470:5: note: referencing argument 1 of type 'uint32_t **' {aka 'unsigned int **'}
picnic_impl.c: picnic_impl.c:470:5: warning: 'mpc_xor' accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
picnic_impl.c: picnic_impl.c:470:5: note: referencing argument 2 of type 'uint32_t **' {aka 'unsigned int **'}
picnic_impl.c: picnic_impl.c:190:6: note: in a call to function 'mpc_xor'
picnic_impl.c: 190 | void mpc_xor(uint32_t* state[3], uint32_t* in[3], uint32_t len, int players)
picnic_impl.c: | ^~~~~~~
picnic_impl.c: picnic_impl.c:473:9: warning: 'mpc_matrix_mul' accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
picnic_impl.c: 473 | mpc_matrix_mul(roundKey, keyShares, KMatrix(r, params), params, 2);
picnic_impl.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
picnic_impl.c: picnic_impl.c:473:9: note: referencing argument 1 of type 'uint32_t **' {aka 'unsigned int **'}
picnic_impl.c: picnic_impl.c:473:9: warning: 'mpc_matrix_mul' accessing 24 bytes in a region of size 16 [-Wstringop-overflow=]
picnic_impl.c: picnic_impl.c:473:9: note: referencing argument 2 of type 'uint32_t **' {aka 'unsigned int **'}
picnic_impl.c: ...

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