-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c2acab
commit c67cbde
Showing
8 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* This class represents the configuration data for the Menezes-Vanstone cryptosystem. | ||
*/ | ||
export class RsaConfigurationData { | ||
modulus_width: number; | ||
miller_rabin_rounds: number; | ||
random_seed: number; | ||
number_system_base: number; | ||
|
||
constructor(modulus_width: number, | ||
miller_rabin_rounds: number, | ||
random_seed: number, | ||
number_system_base: number) { | ||
this.modulus_width = modulus_width; | ||
this.miller_rabin_rounds = miller_rabin_rounds; | ||
this.random_seed = random_seed; | ||
this.number_system_base = number_system_base; | ||
} | ||
|
||
public static createDefaultConfigurationDataForRSA(): RsaConfigurationData { | ||
return new RsaConfigurationData(1024, 10, 13, 55296); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters