Skip to content

Commit

Permalink
skip reseting algorithm extensions ID
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx authored Jun 29, 2024
1 parent 69495fc commit 82d16ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applets/piv/piv.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ int piv_install(const uint8_t reset) {
if (write_attr(pin.path, TAG_PIN_KEY_DEFAULT, &tmp, sizeof(tmp)) < 0) return -1;
if (pin_create(&puk, DEFAULT_PUK, 8, 3) < 0) return -1;
if (write_attr(puk.path, TAG_PIN_KEY_DEFAULT, &tmp, sizeof(tmp)) < 0) return -1;


if (get_file_size(ALGORITHM_EXT_CONFIG_PATH) == sizeof(alg_ext_cfg)) return 0;
// Algorithm extensions
alg_ext_cfg.enabled = 1;
alg_ext_cfg.ed25519 = ALG_ED25519_DEFAULT;
Expand Down

0 comments on commit 82d16ab

Please sign in to comment.