-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
ESP32S3 Pico HSM freezes when generating RSA or ECC keys after importing DKEK #66
Comments
+1. Seen similar behavior, but during the import of a key with dkek (not generation). |
@rrottmann Do you generate ECC or RSA? RSA is extremely slow. I'll try with importing. EDIT: I tried generating a RSA 1024 in the Keydomain 1 and it took 25 minutes. RSA 20248 would take hours. |
@fastchain I tried importing ECC and RSA keys with the previous setup and it worked correctly. Do you have a guide step by step to reproduce it? |
I believe the problem is related to the hardware. I tested it with a Waveshare module, and it functions properly, but with a module from Aliexpress, I can only generate ECC keys without Key Domains. Using the Waveshare, RSA 2048 was generated in 1-2 minutes. I use the Pico Key patched SCS3 3.18.39 with Debian 12.8 and openjdk-17 on aarch64. The Aliexpress ESP32S3 kinda works but not with imported DKEK: |
KCV is 00000, which means is not properly loaded. It usually appears when no PIN is introduced, but I see you are already logged. |
@polhenarejos |
Steps to reproduce:
scsh3
and set up a "standard" layout with 4 Key Domains and a single DKEK share, storing it as an encrypted file.Expected behavior:
The key generation process should complete successfully.
Actual behavior:
The key generation hangs indefinitely, displaying a message indicating that it may take a minute. (I know that random pool might run dry and operations might take longer on ESP32S3). The Pico HSM appears to freeze, requiring a physical disconnect to recover.
Additional information:
scsh3
APDU trace does not show any unusual activity.No error messages are present in
dmesg
regarding key disconnection.The text was updated successfully, but these errors were encountered: