<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/kms/v1/resources.proto

namespace Google\Cloud\Kms\V1\CryptoKey;

/**
 * [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.
 *
 * Protobuf type <code>google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose</code>
 */
class CryptoKeyPurpose
{
    /**
     * Not specified.
     *
     * Generated from protobuf enum <code>CRYPTO_KEY_PURPOSE_UNSPECIFIED = 0;</code>
     */
    const CRYPTO_KEY_PURPOSE_UNSPECIFIED = 0;
    /**
     * [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].
     *
     * Generated from protobuf enum <code>ENCRYPT_DECRYPT = 1;</code>
     */
    const ENCRYPT_DECRYPT = 1;
    /**
     * [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].
     *
     * Generated from protobuf enum <code>ASYMMETRIC_SIGN = 5;</code>
     */
    const ASYMMETRIC_SIGN = 5;
    /**
     * [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].
     *
     * Generated from protobuf enum <code>ASYMMETRIC_DECRYPT = 6;</code>
     */
    const ASYMMETRIC_DECRYPT = 6;
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CryptoKeyPurpose::class, \Google\Cloud\Kms\V1\CryptoKey_CryptoKeyPurpose::class);

