public int[] GetBR(Elgamal elgamal) { return(MathOperations.PowModulo(elgamal.B, elgamal.R, elgamal.P)); //b^r%p }
public int[] GetRS(Elgamal elgamal) { return(MathOperations.PowModulo(elgamal.R, elgamal.S, elgamal.P)); //r^s%p }
public int[] GetX2(Elgamal elgamal) { return(MathOperations.PowModulo(elgamal.G, elgamal.M, elgamal.P)); }