Skip to content

Commit 60b1c66

Browse files
committed
Added note
1 parent 343eda2 commit 60b1c66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: ChecksumHelper.java

+7
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ public static BigInteger RSARootAttack1024(BigInteger sig,BigInteger n,int nth,i
8585
}
8686
}
8787

88+
// This will return a small number with lots of leading zero
89+
// If you want to have a RSA signature that fills all the 128 bytes, you can for instance:
90+
// Multiply the input sig by 7^3
91+
// Ensure that the added offset is dividable by 7^3
92+
// Ensure that the found root is not dividable by 7
93+
// Multiply the found root by modInv(7,n) (mod n)
94+
// As freeBit is large enough, this will require (in average) (7^3)*7/6=400 iterations.
8895
return rr.y.mod(n);
8996

9097
}

0 commit comments

Comments
 (0)