Class KeySpec
The key spec, represents the cryptographic configuration of keys.
Inheritance
Namespace: Amazon.CDK.AWS.KMS
Assembly: Amazon.CDK.AWS.KMS.dll
Syntax (csharp)
public sealed class KeySpec : Enum
Syntax (vb)
Public NotInheritable Class KeySpec
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var key = new Key(this, "MyKey", new KeyProps {
KeySpec = KeySpec.ECC_SECG_P256K1, // Default to SYMMETRIC_DEFAULT
KeyUsage = KeyUsage.SIGN_VERIFY
});
Synopsis
Fields
ECC_NIST_P256 | NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and SHA-256 for the message digest. |
ECC_NIST_P384 | NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and SHA-384 for the message digest. |
ECC_NIST_P521 | NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and SHA-512 for the message digest. |
ECC_SECG_P256K1 | Standards for Efficient Cryptography 2, Section 2.4.1, ECDSA signature on the Koblitz curve. |
RSA_2048 | RSA with 2048 bits of key. |
RSA_3072 | RSA with 3072 bits of key. |
RSA_4096 | RSA with 4096 bits of key. |
SYMMETRIC_DEFAULT | The default key spec. |
value__ |
Fields
ECC_NIST_P256
NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and SHA-256 for the message digest.
public const KeySpec ECC_NIST_P256
Field Value
Type | Description |
---|---|
KeySpec |
Remarks
Valid usage: SIGN_VERIFY
ECC_NIST_P384
NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and SHA-384 for the message digest.
public const KeySpec ECC_NIST_P384
Field Value
Type | Description |
---|---|
KeySpec |
Remarks
Valid usage: SIGN_VERIFY
ECC_NIST_P521
NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and SHA-512 for the message digest.
public const KeySpec ECC_NIST_P521
Field Value
Type | Description |
---|---|
KeySpec |
Remarks
Valid usage: SIGN_VERIFY
ECC_SECG_P256K1
Standards for Efficient Cryptography 2, Section 2.4.1, ECDSA signature on the Koblitz curve.
public const KeySpec ECC_SECG_P256K1
Field Value
Type | Description |
---|---|
KeySpec |
Remarks
Valid usage: SIGN_VERIFY
RSA_2048
RSA with 2048 bits of key.
public const KeySpec RSA_2048
Field Value
Type | Description |
---|---|
KeySpec |
Remarks
Valid usage: ENCRYPT_DECRYPT and SIGN_VERIFY
RSA_3072
RSA with 3072 bits of key.
public const KeySpec RSA_3072
Field Value
Type | Description |
---|---|
KeySpec |
Remarks
Valid usage: ENCRYPT_DECRYPT and SIGN_VERIFY
RSA_4096
RSA with 4096 bits of key.
public const KeySpec RSA_4096
Field Value
Type | Description |
---|---|
KeySpec |
Remarks
Valid usage: ENCRYPT_DECRYPT and SIGN_VERIFY
SYMMETRIC_DEFAULT
The default key spec.
public const KeySpec SYMMETRIC_DEFAULT
Field Value
Type | Description |
---|---|
KeySpec |
Remarks
Valid usage: ENCRYPT_DECRYPT
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |