Implementation notes: armeabi, bblack, crypto_sign/pflash1

Computer: bblack
Microarchitecture: armeabi; Cortex-A8 (413fc082)
Architecture: armeabi
CPU ID: unknown CPU ID
SUPERCOP version: 20240425
Operation: crypto_sign
Primitive: pflash1

Compiler output


SignScheme.c: SignScheme.c:211:19: warning: passing 'const unsigned char *' to parameter of type 'byte *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
SignScheme.c:         SignScheme_sign( sk , h , mlen , sm );
SignScheme.c:                          ^~
SignScheme.c: SignScheme.c:95:29: note: passing argument to parameter 'pri' here
SignScheme.c: int SignScheme_sign( byte * pri , byte * Y , int Ylen , byte * outX )
SignScheme.c:                             ^
SignScheme.c: SignScheme.c:227:19: warning: passing 'const unsigned char *' to parameter of type 'byte *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
SignScheme.c:         SignScheme_GMap( pk , sm , h );
SignScheme.c:                          ^~
SignScheme.c: SignScheme.c:152:29: note: passing argument to parameter 'pub' here
SignScheme.c: int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c:                             ^
SignScheme.c: SignScheme.c:227:24: warning: passing 'const unsigned char *' to parameter of type 'byte *' (aka 'unsigned char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
SignScheme.c:         SignScheme_GMap( pk , sm , h );
SignScheme.c:                               ^~
SignScheme.c: SignScheme.c:152:42: note: passing argument to parameter 'X' here
SignScheme.c: int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c:                                          ^
SignScheme.c: 3 warnings generated.
try.c: /usr/bin/ld: libcrypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_QMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow88'
try.c: /usr/bin/ld: libcrypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_ivsQMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow24'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))
T:refclang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))
T:refclang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))
T:refclang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))
T:refclang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))

Compiler output


PFLASH.c: PFLASH.c:152:16: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:   memcpy( outZ ,_Z,37);
PFLASH.c:                 ^~
PFLASH.c: PFLASH.c:149:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37- 0)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:148:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37- 2)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:147:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37-10)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:146:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37-12)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:143:10: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:    temp = _Z[i];
PFLASH.c:           ^~
PFLASH.c: PFLASH.c:136:15: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     if( logY ) _Z[i+j] ^= alogtab[logX+logY];
PFLASH.c:                ^~
PFLASH.c: PFLASH.c:128:11: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     memset(_Z,0,73);
PFLASH.c:            ^~
PFLASH.c: PFLASH.c:122:16: warning: '_Z' is static but used in inline function 'polySqu' which is not static
PFLASH.c: ...
SignScheme.c: SignScheme.c: In function 'signatureofshorthash':
SignScheme.c: SignScheme.c:211:19: warning: passing argument 1 of 'SignScheme_sign' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_sign( sk , h , mlen , sm );
SignScheme.c:                    ^~
SignScheme.c: SignScheme.c:95:29: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_sign( byte * pri , byte * Y , int Ylen , byte * outX )
SignScheme.c:                       ~~~~~~~^~~
SignScheme.c: SignScheme.c: In function 'verification':
SignScheme.c: SignScheme.c:227:19: warning: passing argument 1 of 'SignScheme_GMap' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_GMap( pk , sm , h );
SignScheme.c:                    ^~
SignScheme.c: SignScheme.c:152:29: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c:                       ~~~~~~~^~~
SignScheme.c: SignScheme.c:227:24: warning: passing argument 2 of 'SignScheme_GMap' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_GMap( pk , sm , h );
SignScheme.c:                         ^~
SignScheme.c: SignScheme.c:152:42: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c:                                    ~~~~~~~^
try.c: /usr/bin/ld: libcrypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_QMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow88'
try.c: /usr/bin/ld: libcrypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_ivsQMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow24'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: collect2: error: ld returned 1 exit status

Number of similar (implementation,compiler) pairs: 2, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE (8.3.0)
T:refgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE (8.3.0)

Compiler output


BLAS.c: BLAS.c: In function 'BLAS_affineGF16':
BLAS.c: BLAS.c:284:2: warning: 'memset' specified size between 3221225472 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
BLAS.c:   memset(b, 0, sizeof(byte)*dim_div_2);
BLAS.c:   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PFLASH.c: PFLASH.c:152:16: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:   memcpy( outZ ,_Z,37);
PFLASH.c:                 ^~
PFLASH.c: PFLASH.c:149:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37- 0)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:148:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37- 2)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:147:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37-10)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:146:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37-12)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:143:10: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:    temp = _Z[i];
PFLASH.c:           ^~
PFLASH.c: PFLASH.c:136:15: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     if( logY ) _Z[i+j] ^= alogtab[logX+logY];
PFLASH.c:                ^~
PFLASH.c: PFLASH.c:128:11: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     memset(_Z,0,73);
PFLASH.c:            ^~
PFLASH.c: PFLASH.c:122:16: warning: '_Z' is static but used in inline function 'polySqu' which is not static
PFLASH.c: ...
SignScheme.c: SignScheme.c: In function 'signatureofshorthash':
SignScheme.c: SignScheme.c:211:19: warning: passing argument 1 of 'SignScheme_sign' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_sign( sk , h , mlen , sm );
SignScheme.c:                    ^~
SignScheme.c: SignScheme.c:95:29: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_sign( byte * pri , byte * Y , int Ylen , byte * outX )
SignScheme.c:                       ~~~~~~~^~~
SignScheme.c: SignScheme.c: In function 'verification':
SignScheme.c: SignScheme.c:227:19: warning: passing argument 1 of 'SignScheme_GMap' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_GMap( pk , sm , h );
SignScheme.c:                    ^~
SignScheme.c: SignScheme.c:152:29: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c:                       ~~~~~~~^~~
SignScheme.c: SignScheme.c:227:24: warning: passing argument 2 of 'SignScheme_GMap' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_GMap( pk , sm , h );
SignScheme.c:                         ^~
SignScheme.c: SignScheme.c:152:42: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c:                                    ~~~~~~~^
try.c: /usr/bin/ld: libcrypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_QMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow88'
try.c: /usr/bin/ld: libcrypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_ivsQMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow24'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: collect2: error: ld returned 1 exit status

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE (8.3.0)

Compiler output


PFLASH.c: PFLASH.c:152:16: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:   memcpy( outZ ,_Z,37);
PFLASH.c:                 ^~
PFLASH.c: PFLASH.c:149:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37- 0)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:148:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37- 2)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:147:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37-10)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:146:4: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     _Z[i-(37-12)] ^= temp;
PFLASH.c:     ^~
PFLASH.c: PFLASH.c:143:10: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:    temp = _Z[i];
PFLASH.c:           ^~
PFLASH.c: PFLASH.c:136:15: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     if( logY ) _Z[i+j] ^= alogtab[logX+logY];
PFLASH.c:                ^~
PFLASH.c: PFLASH.c:128:11: warning: '_Z' is static but used in inline function 'polyMul' which is not static
PFLASH.c:     memset(_Z,0,73);
PFLASH.c:            ^~
PFLASH.c: PFLASH.c:122:16: warning: '_Z' is static but used in inline function 'polySqu' which is not static
PFLASH.c: ...
SignScheme.c: SignScheme.c: In function 'signatureofshorthash':
SignScheme.c: SignScheme.c:211:19: warning: passing argument 1 of 'SignScheme_sign' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_sign( sk , h , mlen , sm );
SignScheme.c:                    ^~
SignScheme.c: SignScheme.c:95:29: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_sign( byte * pri , byte * Y , int Ylen , byte * outX )
SignScheme.c:                       ~~~~~~~^~~
SignScheme.c: SignScheme.c: In function 'verification':
SignScheme.c: SignScheme.c:227:19: warning: passing argument 1 of 'SignScheme_GMap' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_GMap( pk , sm , h );
SignScheme.c:                    ^~
SignScheme.c: SignScheme.c:152:29: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c:                       ~~~~~~~^~~
SignScheme.c: SignScheme.c:227:24: warning: passing argument 2 of 'SignScheme_GMap' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
SignScheme.c:   SignScheme_GMap( pk , sm , h );
SignScheme.c:                         ^~
SignScheme.c: SignScheme.c:152:42: note: expected 'byte *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
SignScheme.c:  int SignScheme_GMap( byte * pub , byte * X , byte * outY )
SignScheme.c:                                    ~~~~~~~^
try.c: /usr/bin/ld: libcrypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_QMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow88'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: libcrypto_sign_pflash1.a(PFLASH.o): in function `PFLASH_ivsQMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow24'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: /usr/bin/ld: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE (8.3.0)