kdf/hkdf: scrub the pseudorandom key
This commit is contained in:
parent
8766827b49
commit
91842048d6
@ -91,6 +91,8 @@ hkdf_kdf(uint8_t *out, size_t *outlen, void *initparams, size_t len)
|
||||
memcpy(out, tn, len);
|
||||
*outlen += len;
|
||||
|
||||
lc_scrub(prk, sizeof(prk));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user