From 15df3b7f6bd5add6ab41f40d6900f9d65367b28b Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Tue, 2 Aug 2022 15:17:07 +0200 Subject: [PATCH] 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." --- lib/src/x3dh.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/x3dh.dart b/lib/src/x3dh.dart index 810231e..6249a3b 100644 --- a/lib/src/x3dh.dart +++ b/lib/src/x3dh.dart @@ -71,7 +71,6 @@ Future> kdf(List km) async { ); final output = await algorithm.deriveKey( secretKey: SecretKey(input), - // TODO(PapaTutuWawa): Fix nonce: List.filled(32, 0x00), info: utf8.encode('OMEMO X3DH'), );