diff options
author | Will Bond <will@wbond.net> | 2019-11-05 05:43:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 05:43:31 -0500 |
commit | ea2123aa7c6529b636a82672827d9e4c6099fda5 (patch) | |
tree | 044e3602f9fcfe83173cab51b698def45f33737e | |
parent | 40ca3332957a9a97f525938a36c10b7fc3e11d3c (diff) | |
parent | dcb9ea5a7f6b77c1c3686e4aa5001d5385b3bb49 (diff) | |
download | asn1crypto-ea2123aa7c6529b636a82672827d9e4c6099fda5.tar.gz |
Merge pull request #165 from joernheissler/fix_key_sizes
Fixed some incorrectly computed EC private key sizes.
-rw-r--r-- | asn1crypto/keys.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/asn1crypto/keys.py b/asn1crypto/keys.py index 05f1313..3c9bf8c 100644 --- a/asn1crypto/keys.py +++ b/asn1crypto/keys.py @@ -420,37 +420,38 @@ class NamedCurve(ObjectIdentifier): '1.2.840.10045.3.1.6': 30, # Order values used to compute these sourced from # http://www.secg.org/SEC2-Ver-1.0.pdf + # ceil(n.bit_length() / 8) '1.2.840.10045.3.1.1': 24, '1.2.840.10045.3.1.7': 32, '1.3.132.0.1': 21, '1.3.132.0.2': 21, - '1.3.132.0.3': 26, - '1.3.132.0.4': 14, - '1.3.132.0.5': 14, + '1.3.132.0.3': 30, + '1.3.132.0.4': 15, + '1.3.132.0.5': 15, '1.3.132.0.6': 14, '1.3.132.0.7': 14, - '1.3.132.0.8': 20, - '1.3.132.0.9': 20, + '1.3.132.0.8': 21, + '1.3.132.0.9': 21, '1.3.132.0.10': 32, '1.3.132.0.15': 21, '1.3.132.0.16': 36, '1.3.132.0.17': 36, '1.3.132.0.22': 17, '1.3.132.0.23': 17, - '1.3.132.0.24': 24, - '1.3.132.0.25': 24, + '1.3.132.0.24': 25, + '1.3.132.0.25': 25, '1.3.132.0.26': 29, - '1.3.132.0.27': 29, + '1.3.132.0.27': 30, '1.3.132.0.28': 16, '1.3.132.0.29': 16, - '1.3.132.0.30': 20, + '1.3.132.0.30': 21, '1.3.132.0.31': 24, - '1.3.132.0.32': 28, + '1.3.132.0.32': 29, '1.3.132.0.33': 28, '1.3.132.0.34': 48, '1.3.132.0.35': 66, '1.3.132.0.36': 51, - '1.3.132.0.37': 51, + '1.3.132.0.37': 52, '1.3.132.0.38': 72, '1.3.132.0.39': 72, } |