Example #1
0
 static public long[] FirstStepE(long[] C)
 {
     FirstNumberEncrypt = new long[C.Length];
     for (int i = 0; i < C.Length; i++)
     {
         FirstNumberEncrypt[i] = (long)(Shamir.reSquaring(C[i], E, P));//c=m^e(mod n)
     }
     return(FirstNumberEncrypt);
 }
Example #2
0
 static public long[] SecondStepD(long[] C)
 {
     SecondNumberEncrypt = new long[C.Length];
     for (long i = 0; i < C.Length; i++)
     {
         SecondNumberEncrypt[i] = (long)(Shamir.reSquaring(C[i], D, P));//c=m^e(mod n)
     }
     return(SecondNumberEncrypt);
 }