Open nc-adnan opened 1 year ago
Thank you @nc-adnan for reporting, it will take longer to fix this issue due to need for re-measurement of existing results for these six values. So I'm leaving the issue open for now.
fixed by 6e01f83e311cb41a9ac6964a45279efbdd1235f3
According to the Java Card 3.0.5 API, the
keyLength
parameter passed to theKeyBuilder.buildKey
method is the key size in bits.In the KeyBuilder tests configs, the key sizes are specified in bytes for
TYPE_HMAC
keys (64/128) which leads to incorrect results:see _JCAlgTest/AlgTestJClient/src/algtestjclient/SingleModeTest.java: