feat: Remove the identityKey == 3 case

This commit is contained in:
PapaTutuWawa 2022-08-03 16:52:42 +02:00
parent f897431692
commit e11baabfa0

View File

@ -59,9 +59,6 @@ Future<List<int>> dh(OmemoKeyPair kp, OmemoPublicKey pk, int identityKey) async
ckp = await kp.toCurve25519(); ckp = await kp.toCurve25519();
} else if (identityKey == 2) { } else if (identityKey == 2) {
cpk = await pk.toCurve25519(); cpk = await pk.toCurve25519();
} else if (identityKey == 3) {
ckp = await kp.toCurve25519();
cpk = await pk.toCurve25519();
} }
final shared = await Cryptography.instance.x25519().sharedSecretKey( final shared = await Cryptography.instance.x25519().sharedSecretKey(