Implementation notes: aarch64, hikey960, crypto_sign/pflash1

Computer: hikey960
Architecture: aarch64
CPU ID: 410fd034
SUPERCOP version: 20190816
Operation: crypto_sign
Primitive: pflash1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
155677556725 1064 590769482 2056 7512refgcc_-O_-fomit-frame-pointer2019120220190816
157342589761 1064 5907104994 2056 7512refgcc_-funroll-loops_-O2_-fomit-frame-pointer2019120220190816
1578555124121 1072 5971110802 2072 7608refgcc_-funroll-loops_-O3_-fomit-frame-pointer2019120220190816
169830057745 1064 590769994 2056 7512refgcc_-fno-schedule-insns_-O2_-fomit-frame-pointer2019120220190816
175657556129 1064 590768874 2056 7512refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv2019120220190816
178987589497 1072 597174498 2072 7608refgcc_-fno-schedule-insns_-O3_-fomit-frame-pointer2019120220190816
182317594217 1072 597179250 2072 7608refgcc_-O3_-fomit-frame-pointer2019120220190816
186935085773 1064 5907100970 2056 7512refgcc_-funroll-loops_-fno-schedule-insns_-O2_-fomit-frame-pointer2019120220190816
198781062069 1064 590774434 2056 7512refgcc_-O2_-fomit-frame-pointer2019120220190816
203130054417 1064 590766702 2040 7512refgcc_-Os_-fomit-frame-pointer2019120220190816
231435083909 1064 590799866 2056 7512refgcc_-funroll-loops_-fno-schedule-insns_-O_-fomit-frame-pointer2019120220190816
254907454377 1064 590766582 2040 7512refgcc_-funroll-loops_-fno-schedule-insns_-Os_-fomit-frame-pointer2019120220190816
260753954437 1064 590766726 2040 7512refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv2019120220190816
335589183909 1064 590799866 2056 7512refgcc_-funroll-loops_-O_-fomit-frame-pointer2019120220190816
336954056725 1064 590769482 2056 7512refgcc_-fno-schedule-insns_-O_-fomit-frame-pointer2019120220190816
400432591109 1072 597176106 2072 7608refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv2019120220190816
523418060777 1064 590773138 2056 7512refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv2019120220190816
651300154417 1064 590766702 2040 7512refgcc_-fno-schedule-insns_-Os_-fomit-frame-pointer2019120220190816
7690410119785 1072 5971106370 2072 7608refgcc_-funroll-loops_-fno-schedule-insns_-O3_-fomit-frame-pointer2019120220190816
880785054377 1064 590766582 2040 7512refgcc_-funroll-loops_-Os_-fomit-frame-pointer2019120220190816

Compiler output

Implementation: ref
Security model: unknown
Compiler: cc
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:5: 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:5: 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:5: 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: crypto_sign_pflash1.a(PFLASH.o): In function `PFLASH_QMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow88'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: crypto_sign_pflash1.a(PFLASH.o): In function `PFLASH_ivsQMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polySqu'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow24'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyMul'
try.c: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
cc ref
gcc ref
gcc -funroll-loops ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: clang -O3 -fomit-frame-pointer -Qunused-arguments
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: crypto_sign_pflash1.a(PFLASH.o): In function `PFLASH_QMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow88'
try.c: crypto_sign_pflash1.a(PFLASH.o): In function `PFLASH_ivsQMap':
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow24'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow56'
try.c: PFLASH.c:(.text+0x...): undefined reference to `polyPow8'
try.c: 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 (compiler,implementation) pairs: 4, namely:
CompilerImplementations
clang -O3 -fomit-frame-pointer -Qunused-arguments ref
clang -O3 -fwrapv -mavx2 -fomit-frame-pointer -Qunused-arguments ref
clang -O3 -fwrapv -mavx -fomit-frame-pointer -Qunused-arguments ref
clang -O3 -fwrapv -mavx -maes -mpclmul -fomit-frame-pointer -Qunused-arguments ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: gcc -O2 -fomit-frame-pointer
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:5: 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:5: 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:5: 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: ^~~~~~~~~~~~~~~

Number of similar (compiler,implementation) pairs: 20, namely:
CompilerImplementations
gcc -O2 -fomit-frame-pointer ref
gcc -O3 -fomit-frame-pointer ref
gcc -O -fomit-frame-pointer ref
gcc -Os -fomit-frame-pointer ref
gcc -fno-schedule-insns -O2 -fomit-frame-pointer ref
gcc -fno-schedule-insns -O3 -fomit-frame-pointer ref
gcc -fno-schedule-insns -O -fomit-frame-pointer ref
gcc -fno-schedule-insns -Os -fomit-frame-pointer ref
gcc -funroll-loops -O2 -fomit-frame-pointer ref
gcc -funroll-loops -O3 -fomit-frame-pointer ref
gcc -funroll-loops -O -fomit-frame-pointer ref
gcc -funroll-loops -Os -fomit-frame-pointer ref
gcc -funroll-loops -fno-schedule-insns -O2 -fomit-frame-pointer ref
gcc -funroll-loops -fno-schedule-insns -O3 -fomit-frame-pointer ref
gcc -funroll-loops -fno-schedule-insns -O -fomit-frame-pointer ref
gcc -funroll-loops -fno-schedule-insns -Os -fomit-frame-pointer ref
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv ref