[CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] describes the cryptographic capabilities of a
[CryptoKey][google.cloud.kms.v1.CryptoKey]. A given key can only be used for the operations allowed by
its purpose. For more information, see
Key purposes.
[CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
[AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt] and
[GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
AsymmetricSign
[CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
[AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign] and
[GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
EncryptDecrypt
[CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
[Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and
[Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
Mac
[CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
[MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This page details the `CryptoKeyPurpose` enum, which defines the cryptographic capabilities of a `CryptoKey` within the Google Cloud Key Management Service (KMS)."],["The content provides a list of available .NET versions for the `Google.Cloud.Kms.V1` library, ranging from version 2.2.0 up to the latest version 3.16.0."],["Different `CryptoKeyPurpose` fields like `AsymmetricDecrypt`, `AsymmetricSign`, `EncryptDecrypt`, and `Mac` specify the permitted cryptographic operations for each key."],["A `CryptoKey` can be used only for the operations specified by its defined purpose, and the `Unspecified` field is assigned for any key that does not have a specific purpose defined."],["Each listed version number links to the documentation for that version of the `CryptoKeyPurpose` enum, allowing developers to check for version specific changes."]]],[]]