mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-07-29 11:03:33 +00:00
refactor!(lee_core): bump the note-encryption KDF domain to v0.3
BREAKING! Before: note encryption KDF used 0.2 tag After: now uses 0.3 tag Mitigation: cipher keygen needs to utilize 0.3 tag after this commit
This commit is contained in:
parent
8cebe109fe
commit
7a80ab026d
@ -135,7 +135,7 @@ impl EncryptionScheme {
|
||||
}
|
||||
|
||||
fn kdf(shared_secret: &SharedSecretKey, nullifier: &Nullifier) -> [u8; 32] {
|
||||
const PREFIX: &[u8; 20] = b"LEE/v0.2/KDF-SHA256/";
|
||||
const PREFIX: &[u8; 20] = b"LEE/v0.3/KDF-SHA256/";
|
||||
let mut bytes = [0_u8; 20 + 32 + 32];
|
||||
bytes[0..20].copy_from_slice(PREFIX);
|
||||
bytes[20..52].copy_from_slice(&shared_secret.0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user