CryptoKeyPurpose
describes the cryptographic capabilities of a
CryptoKey. A given key can only be
used for the operations allowed by its purpose. For more
information, see Key
purposes <https://cloud.google.com/kms/docs/algorithms#key_purposes>__.
Values:
CRYPTO_KEY_PURPOSE_UNSPECIFIED (0):
Not specified.
ENCRYPT_DECRYPT (1):
CryptoKeys with this
purpose may be used with
Encrypt
and
Decrypt.
ASYMMETRIC_SIGN (5):
CryptoKeys with this
purpose may be used with
AsymmetricSign
and
GetPublicKey.
ASYMMETRIC_DECRYPT (6):
CryptoKeys with this
purpose may be used with
AsymmetricDecrypt
and
GetPublicKey.
RAW_ENCRYPT_DECRYPT (7):
CryptoKeys with this
purpose may be used with
RawEncrypt
and
RawDecrypt.
This purpose is meant to be used for interoperable symmetric
encryption and does not support automatic CryptoKey
rotation.
MAC (9):
CryptoKeys with this
purpose may be used with
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 2024-11-06 UTC."],[],[]]