kdf/hkdf: scrub the pseudorandom key

This commit is contained in:
Lucas Gabriel Vuotto 2024-06-19 14:07:57 +00:00
parent 8766827b49
commit 91842048d6

View File

@ -91,6 +91,8 @@ hkdf_kdf(uint8_t *out, size_t *outlen, void *initparams, size_t len)
memcpy(out, tn, len); memcpy(out, tn, len);
*outlen += len; *outlen += len;
lc_scrub(prk, sizeof(prk));
return 1; return 1;
} }