summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2019-07-09 19:20:59 +0300
committerSergey Matveev <stargrave@stargrave.org>2019-07-09 19:20:59 +0300
commit025648504c4e9d1e7867f3d52e82ad8d0f359061 (patch)
tree01c204b58605ed9c391c1fbe5117bce275bba20e
parentb0b7eee2021a490db14e960cb9a514e2f520cb5a (diff)
downloadpygost-025648504c4e9d1e7867f3d52e82ad8d0f359061.tar.xz
Twisted Edwards curve related parameters
-rw-r--r--pygost/gost3410.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/pygost/gost3410.py b/pygost/gost3410.py
index 8103af0..4669189 100644
--- a/pygost/gost3410.py
+++ b/pygost/gost3410.py
@@ -94,6 +94,14 @@ CURVE_PARAMS = {
"0000000000000000000000000000000000000000000000000000000000000000",
"41ECE55743711A8C3CBF3783CD08C0EE4D4DC440D4641A8F366E550DFDB3BB67",
),
+ "GostR3410_2012_TC26_256_ParamSetA": (
+ "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD97",
+ "400000000000000000000000000000000FD8CDDFC87B6635C115AF556C360C67",
+ "C2173F1513981673AF4892C23035A27CE25E2013BF95AA33B22C656F277E7335",
+ "295F9BAE7428ED9CCC20E7C359A9D41A22FCCD9108E17BF7BA9337A6F8AE9513",
+ "91E38443A5E82C0D880923425712B2BB658B9196932E02C78B2582FE742DAA28",
+ "32879423AB1A0375895786C4BB46E9565FDE0B5344766740AF268ADB32322E5C",
+ ),
"GostR3410_2012_TC26_ParamSetA": (
"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7",
"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF27E69532F48D89116FF22B8D4E0560609B4B38ABFAD2B85DCACDB1411F10B275",
@@ -110,6 +118,14 @@ CURVE_PARAMS = {
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002",
"1A8F7EDA389B094C2C071E3647A8940F3C123B697578C213BE6DD9E6C8EC7335DCB228FD1EDF4A39152CBCAAF8C0398828041055F94CEEEC7E21340780FE41BD"
),
+ "GostR3410_2012_TC26_ParamSetC": (
+ "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7",
+ "3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC98CDBA46506AB004C33A9FF5147502CC8EDA9E7A769A12694623CEF47F023ED",
+ "DC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E143064546E861C0E2C9EDD92ADE71F46FCF50FF2AD97F951FDA9F2A2EB6546F39689BD3",
+ "B4C4EE28CEBC6C2C8AC12952CF37F16AC7EFB6A9F69F4B57FFDA2E4F0DE5ADE038CBC2FFF719D2C18DE0284B8BFEF3B52B8CC7A5F5BF0A3C8D2319A5312557E1",
+ "E2E31EDFC23DE7BDEBE241CE593EF5DE2295B7A9CBAEF021D385F7074CEA043AA27272A7AE602BF2A7B9033DB9ED3610C6FB85487EAE97AAC5BC7928C1950148",
+ "F5CE40D95B5EB899ABBCCFF5911CB8577939804D6527378B8C108C3D2090FF9BE18E2D33E3021ED2EF32D85822423B6304F726AA854BAE07D0396E9A9ADDC40F",
+ ),
}
for c, params in CURVE_PARAMS.items():
CURVE_PARAMS[c] = [hexdec(param) for param in params]