Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonce Generation security and Signing performance #3

Open
boemekeld opened this issue Feb 20, 2024 · 1 comment
Open

Nonce Generation security and Signing performance #3

boemekeld opened this issue Feb 20, 2024 · 1 comment

Comments

@boemekeld
Copy link

Hi @dufkan,

I am planning to integrate your implementation into our project for signing Cardano transactions as a proof-of-concept while we await the arrival of chips supporting Javacard 3.1 in the market.

To accomplish this, I intend to use deterministic nonce generation, based on the transaction hash (32 bytes) and the private key.

Question 1) Does the security "WARNING" mentioned in the README also apply to the deterministic nonce generation, or is it related solely to the random generation process?

Question 2) How long does it typically take to sign 32 bytes with offloading disabled? I attempted to run tests with J3R180 using two different card readers, but I encountered the error "No card terminal found".

Question 3) Which card reader do you recommend using?

Thank you for your excellent work on this project!

@dufkan
Copy link
Owner

dufkan commented Feb 21, 2024

Hi,

I am glad that you like this project.

Re 1) Yes, the leakage is independent on the nonce generation approach.

Re 2) I just run the measurement with J3R200 and it took around 800 ms with offloading disabled. The error you were getting was most likely caused by the reader index being set to 2 in tests. I changed it to 0 in beee548, which is a more reasonable default.

Re 3) I have been using the Gemalto GemPC Twin reader, but any reader should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants