feat: Remove the identityKey == 3 case
This commit is contained in:
parent
f897431692
commit
e11baabfa0
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user