-
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.
Unfinished Version changes in MV to be more like RSA
- Loading branch information
1 parent
f88c85c
commit b4a6c99
Showing
8 changed files
with
238 additions
and
79 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
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 was deleted.
Oops, something went wrong.
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,28 @@ | ||
/** | ||
* Class that represents the configuration data for the Menezes-Vanstone cryptosystem. | ||
*/ | ||
export class MvConfigurationData { | ||
modulus_width: number; | ||
numberSystem: number; | ||
millerRabinIterations: number; | ||
coefficientA: number; | ||
random_seed: number; | ||
|
||
constructor(modulus_width: number, | ||
numberSystem: number, | ||
millerRabinIterations: number, | ||
coefficientA: number, | ||
random_seed: number | ||
) { | ||
this.modulus_width = modulus_width; | ||
this.numberSystem = numberSystem; | ||
this.millerRabinIterations = millerRabinIterations; | ||
this.coefficientA = coefficientA; | ||
this.random_seed = random_seed; | ||
} | ||
|
||
public static createDefaultConfigurationDataForMV(): MvConfigurationData { | ||
return new MvConfigurationData(256, 55296, 10, 5, 3); | ||
} | ||
} | ||
|
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
Oops, something went wrong.