Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init 1 Step 3 Error #42

Open
ElimarCosta opened this issue Jun 16, 2021 · 0 comments
Open

Init 1 Step 3 Error #42

ElimarCosta opened this issue Jun 16, 2021 · 0 comments

Comments

@ElimarCosta
Copy link

Im getting an java.lang.ArrayIndexOutOfBoundsException at LocalClientHandlerConnecting.java:109:
Line 108 byte[] solution = x.modPow(BigInteger.valueOf(2L).pow(serverReplyStep3.getLevel()), n).toByteArray(); //it will contain the value 0.
Line 109 System.arraycopy(
solution, Math.abs(solution.length - 64),
y, solution.length < 64 ? 64 - solution.length : 0,
solution.length < 64 ? solution.length : 64
);
Im testing against a server which is returning x = 1, n = 1, level = 1000. The solution will have only one byte, the above code is trying to copy from position 63 in a 1 byte var.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant