Compare commits

...

8 commits

Author SHA1 Message Date
Pol Henarejos
0d76de7bda
Merge branch 'master' into development-eddsa 2025-12-03 20:20:45 +01:00
Pol Henarejos
cd37462386
Merge branch 'master' into development-eddsa 2025-12-01 23:45:34 +01:00
Pol Henarejos
016cf61ce0
Merge branch 'master' into development-eddsa 2025-12-01 17:23:30 +01:00
Pol Henarejos
c3ed23dc42
Merge branch 'master' into development 2025-10-26 20:19:11 +01:00
Pol Henarejos
7ecf361fec
Press button when signing with HD.
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Emulation and test / build (push) Has been cancelled
Emulation and test / test (pkcs11) (push) Has been cancelled
Emulation and test / test (pytest) (push) Has been cancelled
Emulation and test / test (sc-hsm-pkcs11) (push) Has been cancelled
Fixes #103.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2025-08-26 13:38:50 +02:00
Pol Henarejos
ca82a9c9c7
Merge branch 'master' into development 2025-08-26 11:01:38 +02:00
Pol Henarejos
e4b37437d3
Fix for rp2350 build.
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Emulation and test / build (push) Has been cancelled
Emulation and test / test (pkcs11) (push) Has been cancelled
Emulation and test / test (pytest) (push) Has been cancelled
Emulation and test / test (sc-hsm-pkcs11) (push) Has been cancelled
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2025-08-25 01:39:19 +02:00
Pol Henarejos
4f42e0344e
Do not call pico_sdk_init.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2025-08-25 01:35:48 +02:00

View file

@ -305,6 +305,9 @@ int cmd_signature() {
mbedtls_ecp_keypair_free(&hd_context);
return SW_INCORRECT_PARAMS();
}
if (wait_button_pressed() == true) { // timeout
return SW_SECURE_MESSAGE_EXEC_ERROR();
}
md = MBEDTLS_MD_SHA256;
if (mbedtls_ecdsa_write_signature(&hd_context, md, apdu.data, apdu.nc, buf,
MBEDTLS_ECDSA_MAX_LEN,