コード例 #1
0
ファイル: RSA.cs プロジェクト: SmorcIRL/UniversityRepo
 public static BigInteger Decrypt(BigInteger message, PrivateKey key)
 {
     return(BigInteger.ModPow(message, key.D, key.Mod));
 }
コード例 #2
0
ファイル: RSA.cs プロジェクト: SmorcIRL/UniversityRepo
 public Keys(PublicKey Public, PrivateKey Private)
 {
     this.Public  = Public;
     this.Private = Private;
 }