Skip to content

Commit

Permalink
Fixed ecdh key pair gen!
Browse files Browse the repository at this point in the history
  • Loading branch information
jar0l committed Jul 4, 2018
1 parent 120dad2 commit c2772bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9951,20 +9951,20 @@ static void Main (string[] args)

break;

case "--certainty:":
case "--certainty":
if (!Turn.ToByte(Program.CheckArg(args, ++i), ref _certainty) || _certainty > 100 || _certainty < 1)
throw new Exception("Invalid certainty value. The number must be between 1 and 100!");

break;

case "--public-exponent:":
case "--public-exponent":
if (!Turn.ToInt64(Program.CheckArg(args, ++i), ref _public_exponent) || !BigInteger.ValueOf(_public_exponent).IsProbablePrime(100))
throw new Exception("Invalid public exponent value. The number must be prime!");

break;


case "--small-primes:":
case "--small-primes":
if (!Turn.ToInt32(Program.CheckArg(args, ++i), ref _small_primes) || _small_primes < 30)
throw new Exception("Invalid small primes value. The number can not be less than 30!");

Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.4.6")]
[assembly: AssemblyFileVersion("1.1.4.6")]
[assembly: AssemblyVersion("1.1.5.8")]
[assembly: AssemblyFileVersion("1.1.5.8")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]

0 comments on commit c2772bf

Please sign in to comment.