[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-03-21 UTC."],[[["The content outlines the different versions of `CryptoKeyPurpose` within the `Google.Cloud.Kms.V1` namespace, with the latest version being 3.16.0."],["`CryptoKeyPurpose` defines the cryptographic capabilities of a `CryptoKey`, and the purpose determines the operations allowed for the key, as detailed in the key purposes documentation."],["There are five different fields that define the purpose of a key: `AsymmetricDecrypt`, `AsymmetricSign`, `EncryptDecrypt`, `Mac`, and `Unspecified`."],["The version 2.9.0 of the documentation is available, and in this version, `CryptoKeyPurpose` can be used for `AsymmetricDecrypt` to allow for decryption, `AsymmetricSign` for signing operations, `EncryptDecrypt` for encryption and decryption, `Mac` for signing operations, or it can be `Unspecified` if it doesn't fall into any of the other categories."]]],[]]