JCAlgTest
JCAlgTest copied to clipboard
Incorrect HMAC key lengths displayed in the test results
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.
Thank you @nc-adnan for reporting. To fully resolve this issue, it also requires:
- Fix existing collected files with results https://github.com/crocs-muni/jcalgtest_results/
- 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.
fixed by 10ea1381d0de8d1d64881311edb7eacb67dff5fd and 6e01f83e311cb41a9ac6964a45279efbdd1235f3