forked from erlang/otp
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PUBLIC_KEY: add support for Elliptic Curves to public_key app
- Loading branch information
Andreas Schultz
committed
Mar 16, 2013
1 parent
865854d
commit 3f91457
Showing
11 changed files
with
441 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ECPrivateKey { iso(1) identified-organization(3) dod(6) | ||
internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) | ||
id-mod-ecprivateKey(65) } | ||
|
||
DEFINITIONS EXPLICIT TAGS ::= | ||
|
||
BEGIN | ||
|
||
-- EXPORTS ALL; | ||
|
||
IMPORTS | ||
|
||
-- FROM New PKIX ASN.1 [RFC5912] | ||
|
||
OTPEcpkParameters FROM OTP-PKIX; | ||
|
||
ECPrivateKey ::= SEQUENCE { | ||
version INTEGER, | ||
privateKey OCTET STRING, | ||
parameters [0] OTPEcpkParameters OPTIONAL, | ||
publicKey [1] BIT STRING OPTIONAL | ||
} | ||
|
||
END |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ PKIX1Algorithms88.asn1 | |
PKCS-1.asn1 | ||
PKCS-3.asn1 | ||
DSS.asn1 | ||
ECPrivateKey.asn1 | ||
PKCS-7.asn1 | ||
PKCS-10.asn1 |
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
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 |
---|---|---|
|
@@ -72,6 +72,10 @@ | |
valid_ext | ||
}). | ||
|
||
-record('ECPoint', { | ||
point | ||
}). | ||
|
||
|
||
-define(unspecified, 0). | ||
-define(keyCompromise, 1). | ||
|
Oops, something went wrong.