mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-18 09:48:06 +00:00
Compare commits
8 commits
master
...
v6.0-eddsa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d76de7bda | ||
|
|
cd37462386 | ||
|
|
016cf61ce0 | ||
|
|
c3ed23dc42 | ||
|
|
7ecf361fec | ||
|
|
ca82a9c9c7 | ||
|
|
e4b37437d3 | ||
|
|
4f42e0344e |
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue