mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-02 12:56:24 +00:00
Allow signatures with device key.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
f22f58f983
commit
6d3809a792
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ int cmd_signature() {
|
|||
if (!isUserAuthenticated) {
|
||||
return SW_SECURITY_STATUS_NOT_SATISFIED();
|
||||
}
|
||||
if (!(fkey = search_dynamic_file((KEY_PREFIX << 8) | key_id)) || !file_has_data(fkey)) {
|
||||
if ((!(fkey = search_dynamic_file((KEY_PREFIX << 8) | key_id)) && !(fkey = search_by_fid((KEY_PREFIX << 8) | key_id, NULL, SPECIFY_EF))) || !file_has_data(fkey)) {
|
||||
return SW_FILE_NOT_FOUND();
|
||||
}
|
||||
if (get_key_counter(fkey) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue