update private server stuff to not break all the fucking time
This commit is contained in:
@@ -39,17 +39,20 @@ public abstract class RSBufferMixin implements RSBuffer
|
||||
@Shadow("client")
|
||||
private static RSClient client;
|
||||
|
||||
@Inject
|
||||
private static BigInteger exponent = new BigInteger("10001", 16);
|
||||
@Shadow("modulus")
|
||||
private static BigInteger modulus;
|
||||
|
||||
@Copy("encryptRsa")
|
||||
public void rs$encryptRsa(BigInteger var1, BigInteger var2)
|
||||
{
|
||||
}
|
||||
abstract void rs$encryptRsa(BigInteger var1, BigInteger var2);
|
||||
|
||||
@Replace("encryptRsa")
|
||||
public void rl$encryptRsa(BigInteger var1, BigInteger var2)
|
||||
public void rl$encryptRsa(BigInteger exp, BigInteger mod)
|
||||
{
|
||||
rs$encryptRsa(exponent, client.getModulus());
|
||||
if (modulus != null)
|
||||
{
|
||||
mod = modulus;
|
||||
}
|
||||
|
||||
rs$encryptRsa(exp, mod);
|
||||
}
|
||||
}
|
||||
@@ -1751,21 +1751,13 @@ public abstract class RSClientMixin implements RSClient
|
||||
}
|
||||
|
||||
@Inject
|
||||
BigInteger modulus = new BigInteger("a8cda33f9c45f0b9d1675c38ec69da6be4143320190060c229bb35ed91677a4447e09e77031e824aed13bfab51ba180bbda7e279a128f3eb016e9b0dd752a948431798626fc36ac10e036d945f2752d0d874c65a86d3e001a17bf9d63d8bc263b07be4ebc613d01781023a07de698e75248b582e682f1751395f61b9ec1bcbb3", 16);
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public BigInteger getModulus()
|
||||
{
|
||||
return modulus;
|
||||
}
|
||||
|
||||
private static BigInteger modulus;
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public void setModulus(BigInteger modulus)
|
||||
{
|
||||
this.modulus = modulus;
|
||||
RSClientMixin.modulus = modulus;
|
||||
}
|
||||
|
||||
@Copy("forceDisconnect")
|
||||
|
||||
Reference in New Issue
Block a user