diff options
author | joe <joe@jerkface.net> | 2014-04-21 20:07:23 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2014-04-21 20:07:23 -0400 |
commit | bb7640591e32e117c68b3ce54114bf562a67beaf (patch) | |
tree | 12a58921325b54abcd807484683db7214cde807a /KeyRing.hs | |
parent | 1a8986f93fbdf1b444bbe7ef6e45363cba5c78ba (diff) |
removed more unused bindings from kiki.hs
Diffstat (limited to 'KeyRing.hs')
-rw-r--r-- | KeyRing.hs | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -70,6 +70,23 @@ import ProcessUtils (systemEnv, ExitCode(ExitFailure, ExitSuccess) ) | |||
70 | -- DER-encoded elliptic curve ids | 70 | -- DER-encoded elliptic curve ids |
71 | nistp256_id = 0x2a8648ce3d030107 | 71 | nistp256_id = 0x2a8648ce3d030107 |
72 | secp256k1_id = 0x2b8104000a | 72 | secp256k1_id = 0x2b8104000a |
73 | -- "\x2a\x86\x48\xce\x3d\x03\x01\x07" | ||
74 | {- OID Curve description Curve name | ||
75 | ---------------------------------------------------------------- | ||
76 | 1.2.840.10045.3.1.7 NIST Curve P-256 [FIPS 186-2] "NIST P-256" | ||
77 | 1.3.132.0.34 NIST Curve P-384 [FIPS 186-2] "NIST P-384" | ||
78 | 1.3.132.0.35 NIST Curve P-521 [FIPS 186-2] "NIST P-521" | ||
79 | |||
80 | Implementations MUST implement "NIST P-256", "NIST P-384" and "NIST | ||
81 | P-521". The hexadecimal representation used in the public and | ||
82 | private key encodings are: | ||
83 | |||
84 | Curve Name Len Hexadecimal representation of the OID | ||
85 | ---------------------------------------------------------------- | ||
86 | "NIST P-256" 8 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x03, 0x01, 0x07 | ||
87 | "NIST P-384" 6 0x05, 0x2B, 0x81, 0x04, 0x00, 0x22 | ||
88 | "NIST P-521" 6 0x05, 0x2B, 0x81, 0x04, 0x00, 0x23 | ||
89 | -} | ||
73 | 90 | ||
74 | data HomeDir = | 91 | data HomeDir = |
75 | HomeDir { homevar :: String | 92 | HomeDir { homevar :: String |