Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Key Vault keys API: Add OKP key type and EdDSA digital signature (#15989
)

* Add OKP key type and EdDSA digital signature

* Address feedback

* Fix validation error
  • Loading branch information
docschmidt authored and heaths committed Oct 14, 2022
commit 9b63285084b548eaa5d0c094af3aeec3a9465d44
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,9 @@
"RSA",
"RSA-HSM",
"oct",
"oct-HSM"
"oct-HSM",
"OKP",
"OKP-HSM"
],
"x-ms-enum": {
"name": "JsonWebKeyType",
Expand Down Expand Up @@ -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."
}
]
}
Expand All @@ -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",
Expand Down Expand Up @@ -1424,7 +1434,8 @@
"P-256",
"P-384",
"P-521",
"P-256K"
"P-256K",
"Ed25519"
],
"x-ms-enum": {
"name": "JsonWebKeyCurveName",
Expand All @@ -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",
Expand Down Expand Up @@ -1654,7 +1669,9 @@
"RSA",
"RSA-HSM",
"oct",
"oct-HSM"
"oct-HSM",
"OKP",
"OKP-HSM"
],
"x-ms-enum": {
"name": "JsonWebKeyType",
Expand All @@ -1678,7 +1695,8 @@
"P-256",
"P-384",
"P-521",
"P-256K"
"P-256K",
"Ed25519"
],
"x-ms-enum": {
"name": "JsonWebKeyCurveName",
Expand All @@ -1700,7 +1718,9 @@
"RSA",
"RSA-HSM",
"oct",
"oct-HSM"
"oct-HSM",
"OKP",
"OKP-HSM"
],
"x-ms-enum": {
"name": "JsonWebKeyType",
Expand Down Expand Up @@ -1757,7 +1777,8 @@
"P-256",
"P-384",
"P-521",
"P-256K"
"P-256K",
"Ed25519"
],
"x-ms-enum": {
"name": "JsonWebKeyCurveName",
Expand Down Expand Up @@ -1939,7 +1960,8 @@
"ES256",
"ES384",
"ES512",
"ES256K"
"ES256K",
"EdDSA"
],
"x-ms-enum": {
"name": "JsonWebKeySignatureAlgorithm",
Expand Down Expand Up @@ -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."
}
]
}
Expand Down Expand Up @@ -2021,7 +2047,8 @@
"ES256",
"ES384",
"ES512",
"ES256K"
"ES256K",
"EdDSA"
],
"x-ms-enum": {
"name": "JsonWebKeySignatureAlgorithm",
Expand Down
10 changes: 10 additions & 0 deletions specification/keyvault/data-plane/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,16 @@ input-file:

# Code Generation

## Swagger to SDK

This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.

``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-go
```

## C#

These settings apply only when `--csharp` is specified on the command line.
Expand Down