We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84562a4 commit 8dbc7d6Copy full SHA for 8dbc7d6
1 file changed
src/dice/dice.c
@@ -679,10 +679,13 @@ static int wolfboot_attest_get_private_key(ecc_key *key,
679
return ret;
680
}
681
#else
682
- if (hal_uds_derive_key(uds, uds_len) != 0) {
683
- return -1;
+ int ret = -1;
+
684
+ if (hal_uds_derive_key(uds, uds_len) == 0) {
685
+ ret = wolfboot_dice_derive_attestation_key(key, uds, uds_len, claims);
686
- return wolfboot_dice_derive_attestation_key(key, uds, uds_len, claims);
687
+ wc_ForceZero(uds, sizeof(uds));
688
+ return ret;
689
#endif
690
691
0 commit comments