[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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eCryptoKeyPurpose\u003c/code\u003e enum, which defines the cryptographic capabilities of a \u003ccode\u003eCryptoKey\u003c/code\u003e within the Google Cloud Key Management Service (KMS).\u003c/p\u003e\n"],["\u003cp\u003eThe content provides a list of available .NET versions for the \u003ccode\u003eGoogle.Cloud.Kms.V1\u003c/code\u003e library, ranging from version 2.2.0 up to the latest version 3.16.0.\u003c/p\u003e\n"],["\u003cp\u003eDifferent \u003ccode\u003eCryptoKeyPurpose\u003c/code\u003e fields like \u003ccode\u003eAsymmetricDecrypt\u003c/code\u003e, \u003ccode\u003eAsymmetricSign\u003c/code\u003e, \u003ccode\u003eEncryptDecrypt\u003c/code\u003e, and \u003ccode\u003eMac\u003c/code\u003e specify the permitted cryptographic operations for each key.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eCryptoKey\u003c/code\u003e can be used only for the operations specified by its defined purpose, and the \u003ccode\u003eUnspecified\u003c/code\u003e field is assigned for any key that does not have a specific purpose defined.\u003c/p\u003e\n"],["\u003cp\u003eEach listed version number links to the documentation for that version of the \u003ccode\u003eCryptoKeyPurpose\u003c/code\u003e enum, allowing developers to check for version specific changes.\u003c/p\u003e\n"]]],[],null,[]]