Fix wrong BigInteger size

master
Lonami Exo 2018-07-25 16:28:33 +02:00
parent bdd89efacc
commit d9928e79dd
2 changed files with 2 additions and 3 deletions

View File

@ -161,9 +161,9 @@ public class TLArg {
public int bigIntSize() { public int bigIntSize() {
switch (types.get(types.size() - 1)) { switch (types.get(types.size() - 1)) {
case "int128": case "int128":
return 32; return 16;
case "int256": case "int256":
return 64; return 32;
default: default:
return 0; return 0;
} }

View File

@ -57,7 +57,6 @@ public class Authenticator {
throw new SecurityException("Step 2 could not find a known RSA key"); throw new SecurityException("Step 2 could not find a known RSA key");
} }
// TODO This *sometimes* fails, huh
final Abstract.ServerDHParams abstractDhParams = sender.send( final Abstract.ServerDHParams abstractDhParams = sender.send(
new Functions.ReqDHParams() new Functions.ReqDHParams()
.nonce(resPq.nonce()) .nonce(resPq.nonce())