aarch64 test fail

18 views
Skip to first unread message

Ron Aaron

unread,
Aug 6, 2017, 5:56:16 AM8/6/17
to LibTom Projects
Hello -

I compiled libtomcrypt 1.17 using tomsfastmath.

Then I compiled 'test' and ran on a RaspberryPi 3 (64-bit OS, Debian)

The results were:

LibTomCrypt 1.17 (Tom St Denis,...
LibTomCrypt is public domain software.
Built on Aug  6 2017 at 12:23:47
...
Compiler:
   GCC compiler detected.

Various others:  BASE64  BASE64-URL-SAFE  DER  PKCS#1  PKCS#5  HKDF  MPI  TRY_URANDOM_FIRST  LTC_TEST  LTC_SMALL_CODE  LTC_PTHREAD  TFM_DESC  LTC_MECC_ACCEL  LTC_ECC_SHAMIR 

store_test....passed
misc_test.....passed
cipher_test...passed
mac_test......passed
modes_test....passed
der_test......DER INTEGER short encoding failed, 3, 3
02 01 7b 
02 01 00 
failed 


This is ancillary to my trying to understand by ecc_verify_hash is not working for me (it works on RPI w/ a 32-bit compiler, also gcc). I suspect the issue may be similar.

On RaspberryPi 2 (32-bit OS) the tests mostly pass, bue 'ecc' gives a segmentation fault.
 

Steffen Jaeckel

unread,
Aug 6, 2017, 7:41:21 AM8/6/17
to lib...@googlegroups.com, Ron Aaron
Hi,

can you please repeat with 1.18.0-rc2?

Which version of tfm did you use?
Can you please test with the latest release resp. with develop@github.

Thanks,
Steffen
> --
> *** Please reply-to-all at all times ***
> *** (do not pretend to know who is subscribed and who is not) ***
> *** Please avoid top-posting. ***
> ---
> You received this message because you are subscribed to the Google
> Groups "LibTom Projects" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to libtom+un...@googlegroups.com
> <mailto:libtom+un...@googlegroups.com>.
> To post to this group, send email to lib...@googlegroups.com
> <mailto:lib...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/libtom.
> For more options, visit https://groups.google.com/d/optout.

--
Steffen Jaeckel - s_ja...@gmx.de
GnuPG fingerprint: C438 6A23 7ED4 3A47 5541 B942 7B2C D0DD 4BCF F59B
My OTR key has changed on 30. Sept. 2015!
jabber: jae...@jabber.ccc.de F052DE29 4FA9A02D 44A794E5 AE5AC0FB C5865C64

Ron Aaron

unread,
Aug 6, 2017, 7:43:15 AM8/6/17
to Steffen Jaeckel, lib...@googlegroups.com

I used TFM 0.12

Ron Aaron

unread,
Aug 6, 2017, 8:17:18 AM8/6/17
to Steffen Jaeckel, lib...@googlegroups.com

On 06/08/2017 14:41, Steffen Jaeckel wrote:
Hi,

can you please repeat with 1.18.0-rc2?



So with the latest git code it works.  Unfortunately for me, that means I probably should upgrade my libs... which will be a lot of work I think.

Test results:

math provider = tomsfastmath
MP_DIGIT_BIT = 64

store_test..........passed      0.001ms
rotate_test.........passed      0.000ms
misc_test...........passed      0.652ms
mpi_test............passed      3.423ms
cipher_hash_test....passed    178.689ms
mac_test............passed     39.747ms
modes_test..........passed     10.004ms
der_test............passed    472.077ms
pkcs_1_test.........passed      6.206ms
pkcs_1_pss_test.....passed     47.379ms
pkcs_1_oaep_test....passed     47.087ms
pkcs_1_emsa_test....passed     61.543ms
pkcs_1_eme_test.....passed     61.213ms
rsa_test............passed   3800.823ms
dh_test.............passed   1127.379ms
ecc_tests...........passed  46222.082ms
dsa_test............passed    433.741ms
katja_test..........nop
file_test...........failed      0.068ms
multi_test..........passed      0.252ms
prng_test...........passed      5.708ms

FAILURE: passed=19 failed=1 nop=1 duration=52.5sec real=52.5sec
Reply all
Reply to author
Forward
0 new messages