summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2019-08-18 19:26:52 +0300
committerSergey Matveev <stargrave@stargrave.org>2019-08-18 19:26:52 +0300
commit625b774790181e5eb4021ee0fca961b7bac278f5 (patch)
tree43d49fba96b43920fd6fc74d725f496502a66847
parentf27d16a7447f7823cc3ffd75e43c1f1ec517c1ec (diff)
downloadpygost-625b774790181e5eb4021ee0fca961b7bac278f5.tar.xz
Curve parameters aliases
-rw-r--r--pygost/gost3410.py21
1 files changed, 5 insertions, 16 deletions
diff --git a/pygost/gost3410.py b/pygost/gost3410.py
index 673441c..500c0c9 100644
--- a/pygost/gost3410.py
+++ b/pygost/gost3410.py
@@ -159,22 +159,6 @@ CURVES = {
x=bytes2long(hexdec("0000000000000000000000000000000000000000000000000000000000000000")),
y=bytes2long(hexdec("41ECE55743711A8C3CBF3783CD08C0EE4D4DC440D4641A8F366E550DFDB3BB67")),
),
- "id-GostR3410-2001-CryptoPro-XchA-ParamSet": GOST3410Curve(
- p=bytes2long(hexdec("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD97")),
- q=bytes2long(hexdec("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6C611070995AD10045841B09B761B893")),
- a=bytes2long(hexdec("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD94")),
- b=bytes2long(hexdec("00000000000000000000000000000000000000000000000000000000000000a6")),
- x=bytes2long(hexdec("0000000000000000000000000000000000000000000000000000000000000001")),
- y=bytes2long(hexdec("8D91E471E0989CDA27DF505A453F2B7635294F2DDF23E3B122ACC99C9E9F1E14")),
- ),
- "id-GostR3410-2001-CryptoPro-XchB-ParamSet": GOST3410Curve(
- p=bytes2long(hexdec("9B9F605F5A858107AB1EC85E6B41C8AACF846E86789051D37998F7B9022D759B")),
- q=bytes2long(hexdec("9B9F605F5A858107AB1EC85E6B41C8AA582CA3511EDDFB74F02F3A6598980BB9")),
- a=bytes2long(hexdec("9B9F605F5A858107AB1EC85E6B41C8AACF846E86789051D37998F7B9022D7598")),
- b=bytes2long(hexdec("000000000000000000000000000000000000000000000000000000000000805a")),
- x=bytes2long(hexdec("0000000000000000000000000000000000000000000000000000000000000000")),
- y=bytes2long(hexdec("41ECE55743711A8C3CBF3783CD08C0EE4D4DC440D4641A8F366E550DFDB3BB67")),
- ),
"id-tc26-gost-3410-2012-256-paramSetA": GOST3410Curve(
p=bytes2long(hexdec("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD97")),
q=bytes2long(hexdec("400000000000000000000000000000000FD8CDDFC87B6635C115AF556C360C67")),
@@ -212,6 +196,11 @@ CURVES = {
d=bytes2long(hexdec("9E4F5D8C017D8D9F13A5CF3CDF5BFE4DAB402D54198E31EBDE28A0621050439CA6B39E0A515C06B304E2CE43E79E369E91A0CFC2BC2A22B4CA302DBB33EE7550")),
),
}
+CURVES["id-GostR3410-2001-CryptoPro-XchA-ParamSet"] = CURVES["id-GostR3410-2001-CryptoPro-A-ParamSet"]
+CURVES["id-GostR3410-2001-CryptoPro-XchB-ParamSet"] = CURVES["id-GostR3410-2001-CryptoPro-C-ParamSet"]
+CURVES["id-tc26-gost-3410-2012-256-paramSetB"] = CURVES["id-GostR3410-2001-CryptoPro-A-ParamSet"]
+CURVES["id-tc26-gost-3410-2012-256-paramSetC"] = CURVES["id-GostR3410-2001-CryptoPro-B-ParamSet"]
+CURVES["id-tc26-gost-3410-2012-256-paramSetD"] = CURVES["id-GostR3410-2001-CryptoPro-C-ParamSet"]
DEFAULT_CURVE = CURVES["id-GostR3410-2001-CryptoPro-A-ParamSet"]