-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Key Vault keys API: Add OKP key type and EdDSA digital signature #15989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1323,7 +1323,9 @@ | |
| "RSA", | ||
| "RSA-HSM", | ||
| "oct", | ||
| "oct-HSM" | ||
| "oct-HSM", | ||
| "OKP", | ||
| "OKP-HSM" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "JsonWebKeyType", | ||
|
|
@@ -1352,6 +1354,14 @@ | |
| { | ||
| "value": "oct-HSM", | ||
| "description": "Octet sequence (used to represent symmetric keys) which is stored the HSM." | ||
| }, | ||
| { | ||
| "value": "OKP", | ||
| "description": "Octet key pair (https://tools.ietf.org/html/rfc8037)" | ||
| }, | ||
| { | ||
| "value": "OKP-HSM", | ||
| "description": "Octet key pair (https://tools.ietf.org/html/rfc8037) with a private key which is stored in the HSM." | ||
| } | ||
| ] | ||
| } | ||
|
|
@@ -1376,7 +1386,7 @@ | |
| "d": { | ||
| "type": "string", | ||
| "format": "base64url", | ||
| "description": "RSA private exponent, or the D component of an EC private key." | ||
| "description": "RSA private exponent, or the D component of an EC or OKP private key." | ||
| }, | ||
| "dp": { | ||
| "x-ms-client-name": "DP", | ||
|
|
@@ -1424,7 +1434,8 @@ | |
| "P-256", | ||
| "P-384", | ||
| "P-521", | ||
| "P-256K" | ||
| "P-256K", | ||
| "Ed25519" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "JsonWebKeyCurveName", | ||
|
|
@@ -1445,14 +1456,18 @@ | |
| { | ||
| "value": "P-256K", | ||
| "description": "The SECG SECP256K1 elliptic curve." | ||
| }, | ||
| { | ||
| "value": "Ed25519", | ||
| "description": "The Ed25519 Edwards curve." | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "x": { | ||
| "type": "string", | ||
| "format": "base64url", | ||
| "description": "X component of an EC public key." | ||
| "description": "X component of an EC or OKP public key." | ||
| }, | ||
| "y": { | ||
| "type": "string", | ||
|
|
@@ -1654,7 +1669,9 @@ | |
| "RSA", | ||
| "RSA-HSM", | ||
| "oct", | ||
| "oct-HSM" | ||
| "oct-HSM", | ||
| "OKP", | ||
| "OKP-HSM" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "JsonWebKeyType", | ||
|
|
@@ -1678,7 +1695,8 @@ | |
| "P-256", | ||
| "P-384", | ||
| "P-521", | ||
| "P-256K" | ||
| "P-256K", | ||
| "Ed25519" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "JsonWebKeyCurveName", | ||
|
|
@@ -1700,7 +1718,9 @@ | |
| "RSA", | ||
| "RSA-HSM", | ||
| "oct", | ||
| "oct-HSM" | ||
| "oct-HSM", | ||
| "OKP", | ||
| "OKP-HSM" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "JsonWebKeyType", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You have two definitions of 'JsonWebKeyType', identical as far as I can see. And similarly two definitiosn of 'JsonWebKeyCurveName'. You might like to consider refactoring them to be $refs to a single 'definition'.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was my understanding that OpenAPI 2.0 does not support reusable enums. Please let me know if I'm mistaken. |
||
|
|
@@ -1757,7 +1777,8 @@ | |
| "P-256", | ||
| "P-384", | ||
| "P-521", | ||
| "P-256K" | ||
| "P-256K", | ||
| "Ed25519" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "JsonWebKeyCurveName", | ||
|
|
@@ -1939,7 +1960,8 @@ | |
| "ES256", | ||
| "ES384", | ||
| "ES512", | ||
| "ES256K" | ||
| "ES256K", | ||
| "EdDSA" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "JsonWebKeySignatureAlgorithm", | ||
|
|
@@ -1988,6 +2010,10 @@ | |
| { | ||
| "value": "ES256K", | ||
| "description": "ECDSA using P-256K and SHA-256, as described in https://tools.ietf.org/html/rfc7518" | ||
| }, | ||
| { | ||
| "value": "EdDSA", | ||
| "description": "Edwards-Curve Digital Signature Algorithm, as described in https://tools.ietf.org/html/rfc8032." | ||
| } | ||
| ] | ||
| } | ||
|
|
@@ -2021,7 +2047,8 @@ | |
| "ES256", | ||
| "ES384", | ||
| "ES512", | ||
| "ES256K" | ||
| "ES256K", | ||
| "EdDSA" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "JsonWebKeySignatureAlgorithm", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.