我需要一种方法来计算: (g^u * y^v) mod p
在Java中 。 我发现这个算法计算(G^U)模p: int modulo(int a,int b,int c) {
long x=1
long y=a;
while(b > 0){
if(b%2 == 1){
x=(x*y)%c;
}
y = (y*y)
我运行下面的代码代码时: public class Sign {
private static final PrivateKey priv = Util.loadPrivate();
private static final PublicKey pub = Util.loadPublic();
private static final HexBinaryAdapter adp