mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-16 04:17:55 +00:00
Sanity check for keypair gen.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
b68920ff45
commit
618966b742
1 changed files with 2 additions and 0 deletions
|
|
@ -1063,6 +1063,8 @@ static int cmd_keypair_gen() {
|
|||
|
||||
}
|
||||
}
|
||||
else
|
||||
return SW_WRONG_DATA();
|
||||
uint8_t *cvcbin;
|
||||
size_t cvclen;
|
||||
ret = sc_pkcs15emu_sc_hsm_encode_cvc(&p15card, &cvc, &cvcbin, &cvclen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue