JCAlgTest icon indicating copy to clipboard operation
JCAlgTest copied to clipboard

Incorrect HMAC key lengths displayed in the test results

Open nc-adnan opened this issue 2 years ago • 1 comments

The following HMAC key lengths are present in AlgTestJClient test results (list all supported JC API algorithms):

javacard.security.KeyBuilder
...
TYPE_HMAC LENGTH_HMAC_SHA_384_BLOCK_64;yes;		0.044000;72;0;0
TYPE_HMAC LENGTH_HMAC_SHA_512_BLOCK_64;yes;		0.043000;72;0;0

The HMAC key lengths LENGTH_HMAC_SHA_384_BLOCK_64 and LENGTH_HMAC_SHA_512_BLOCK_64 are not defined in the Java Card API but LENGTH_HMAC_SHA_384_BLOCK_128 and LENGTH_HMAC_SHA_512_BLOCK_128 are. The block size is incorrect.

nc-adnan avatar Feb 14 '23 11:02 nc-adnan

Thank you @nc-adnan for reporting. To fully resolve this issue, it also requires:

  1. Fix existing collected files with results https://github.com/crocs-muni/jcalgtest_results/
  2. Fix related issue which made six HMAC-related values possibly incorrectly measured (needs to rerun measurements for these cards)

So I will keep this issue open for now.

petrs avatar Jul 23 '23 12:07 petrs

fixed by 10ea1381d0de8d1d64881311edb7eacb67dff5fd and 6e01f83e311cb41a9ac6964a45279efbdd1235f3

petrs avatar Nov 23 '24 18:11 petrs