mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
update comment
This commit is contained in:
parent
6d655c8085
commit
7094c00590
1 changed files with 1 additions and 0 deletions
|
|
@ -1363,6 +1363,7 @@ impl PddbOs {
|
||||||
log::info!("creating salt");
|
log::info!("creating salt");
|
||||||
// uses an HMAC keyed with the salt array to generate a compressed version of
|
// uses an HMAC keyed with the salt array to generate a compressed version of
|
||||||
// the basis name and plaintext password, which forms the Salt that is fed into bcrypt
|
// the basis name and plaintext password, which forms the Salt that is fed into bcrypt
|
||||||
|
// our salt is probably way too big but what else are we going to use all that page's data for?
|
||||||
let scd = self.static_crypto_data_get();
|
let scd = self.static_crypto_data_get();
|
||||||
let mut salt = [0u8; 16];
|
let mut salt = [0u8; 16];
|
||||||
let mut mac = Hmac::<Sha256>::new_varkey(&scd.salt_base).expect("Couldn't build HMAC");
|
let mut mac = Hmac::<Sha256>::new_varkey(&scd.salt_base).expect("Couldn't build HMAC");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue