fix: Remove TODO
The X3DH spec says that salt (presumably the nonce) is supposed to be [0, 0, ..., 0] with the length of the hash. I seem to have skipped over that. From Section 2.2: "HKDF salt = A zero-filled byte sequence with length equal to the hash output length."
This commit is contained in:
parent
566cb1b0ec
commit
15df3b7f6b
@ -71,7 +71,6 @@ Future<List<int>> kdf(List<int> km) async {
|
||||
);
|
||||
final output = await algorithm.deriveKey(
|
||||
secretKey: SecretKey(input),
|
||||
// TODO(PapaTutuWawa): Fix
|
||||
nonce: List<int>.filled(32, 0x00),
|
||||
info: utf8.encode('OMEMO X3DH'),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user