KeyUsage Enum
The key usage, represents the cryptographic operations of keys.
Example
ts
const key = new kms.Key(this, 'MyKey', {
keySpec: kms.KeySpec.ECC_SECG_P256K1, // Default to SYMMETRIC_DEFAULT
keyUsage: kms.KeyUsage.SIGN_VERIFY, // and ENCRYPT_DECRYPT
});
Members
| Member | Description |
|---|---|
ENCRYPT_DECRYPT | Encryption and decryption. |
SIGN_VERIFY | Signing and verification. |
GENERATE_VERIFY_MAC | Generating and verifying MACs. |
KEY_AGREEMENT | Deriving shared secrets. |
Referenced by
KeyProps.keyUsagekey_usagekeyUsageKeyUsageKeyUsage