Skip to content

RC2 - TFM & timing troubles in DSA #260

@karel-m

Description

@karel-m

I have built the library via:

make -f makefile.unix CFLAGS="-Wall -Wextra -Werror -DUSE_TFM -DTFM_DESC -DLTC_SOURCE -Isrc/headers -I../tomsfastmath/src/headers" EXTRALIBS=../tomsfastmath/libtfm.a all

When I try to run ./timing it never ends:

./timing
Clock Skew: 0


Key Schedule Time Trials for the Symmetric Ciphers:
(Times are cycles per key)
.......................
skipjack            : Schedule at     53
noekeon             : Schedule at     55
xtea                : Schedule at    234

...

RSA-2048 make_key    took       429383933 cycles
RSA-2048 encrypt_key took          240743 cycles
RSA-2048 decrypt_key took         5404849 cycles
RSA-2048 sign_hash took           5475974 cycles
RSA-2048 verify_hash took          210872 cycles


DSA-(160, 768) make_key    took        78803816 cycles
DSA-(160, 1024) make_key    took       246325338 cycles
DSA-(192, 1536) make_key    took       660878002 cycles
DSA-(224, 2048) make_key    took      2238445835 cycles
!!!!!!! here it stays for hours just consuming CPU !!!!!!!

It seems to got stuck somewhere in DSA-(256, 4096) make_key

TFM version:

commit 81530c207da8b3a43867da14df7d79d2cdf96978
Date:   Wed Jun 14 17:17:30 2017 +0200

I have not experienced this sort of troubles with LTM - here are LTM results from the same machine:

DSA-(160, 768) make_key    took       364152277 cycles
DSA-(160, 1024) make_key    took       743838300 cycles
DSA-(192, 1536) make_key    took      1703609029 cycles
DSA-(224, 2048) make_key    took     13534636760 cycles
DSA-(256, 4096) make_key    took    117063959249 cycles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions