Skip to content

Commit

Permalink
PaxeStackClusterTest works
Browse files Browse the repository at this point in the history
  • Loading branch information
simbo1905 committed Jan 12, 2025
1 parent 6d418d2 commit ea61fb0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ public static byte[] hashedSecret(String N, String premaster) {
byte[] aBytes = fromHex(premaster);
if (aBytes.length < nBytes.length) {
byte[] paddedABytes = new byte[nBytes.length];
System.arraycopy(aBytes, 0, paddedABytes, nBytes.length - paddedABytes.length, paddedABytes.length);
// Copy original bytes to the end of the padded array
System.arraycopy(aBytes, 0, paddedABytes,
nBytes.length - aBytes.length, // Destination offset uses aBytes.length
aBytes.length); // Copy only aBytes.length bytes
aBytes = paddedABytes;
}
var raw = SRPUtils.H(aBytes);
Expand Down

0 comments on commit ea61fb0

Please sign in to comment.