mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-04-23 00:28:30 +00:00
Fix storing public key description when generating a new keypair.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
d87073f4cc
commit
ae1e2ac111
1 changed files with 1 additions and 1 deletions
|
|
@ -681,7 +681,7 @@ int store_keys(void *key_ctx, int type, uint8_t key_id, sc_context_t *ctx) {
|
|||
free(pukd);
|
||||
free(p15o);
|
||||
//sc_asn1_print_tags(asn1bin, asn1len);
|
||||
fpk = file_new((CD_PREFIX << 8) | key_id);
|
||||
fpk = file_new((EE_CERTIFICATE_PREFIX << 8) | key_id);
|
||||
r = flash_write_data_to_file(fpk, asn1bin, asn1len);
|
||||
free(asn1bin);
|
||||
if (r != HSM_OK)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue