Compare commits
8 Commits
nightly-de
...
v6.0-eddsa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d76de7bda | ||
|
|
cd37462386 | ||
|
|
016cf61ce0 | ||
|
|
c3ed23dc42 | ||
|
|
7ecf361fec | ||
|
|
ca82a9c9c7 | ||
|
|
e4b37437d3 | ||
|
|
4f42e0344e |
@@ -305,6 +305,9 @@ int cmd_signature() {
|
|||||||
mbedtls_ecp_keypair_free(&hd_context);
|
mbedtls_ecp_keypair_free(&hd_context);
|
||||||
return SW_INCORRECT_PARAMS();
|
return SW_INCORRECT_PARAMS();
|
||||||
}
|
}
|
||||||
|
if (wait_button_pressed() == true) { // timeout
|
||||||
|
return SW_SECURE_MESSAGE_EXEC_ERROR();
|
||||||
|
}
|
||||||
md = MBEDTLS_MD_SHA256;
|
md = MBEDTLS_MD_SHA256;
|
||||||
if (mbedtls_ecdsa_write_signature(&hd_context, md, apdu.data, apdu.nc, buf,
|
if (mbedtls_ecdsa_write_signature(&hd_context, md, apdu.data, apdu.nc, buf,
|
||||||
MBEDTLS_ECDSA_MAX_LEN,
|
MBEDTLS_ECDSA_MAX_LEN,
|
||||||
|
|||||||
Reference in New Issue
Block a user