-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
nuntius/nuntius/IREncryptionService.m
Line 183 in 6184ab8
| crypto_kdf_derive_from_key(subkey, keyLength, salt, infoLabel, secret.bytes); |
crypto_kdf_derive_from_key takes const unsigned char key[crypto_kdf_KEYBYTES] as a last argument, where crypto_kdf_KEYBYTES = 32. So this call only uses first 32 bytes from secret (which is 96 or 128 bytes long, when called from - [IRTripleDHService sharedKeyFromReceiverIdentityKey:receiverSignedPreKey:receiverEphemeralKey:]), turning this code into a single DH implementation
Metadata
Metadata
Assignees
Labels
No labels