public static enum CryptoKeyVersion.CryptoKeyVersionAlgorithm extends Enum<CryptoKeyVersion.CryptoKeyVersionAlgorithm> implements ProtocolMessageEnum
The algorithm of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating what parameters must be used for each cryptographic operation. The [GOOGLE_SYMMETRIC_ENCRYPTION][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.GOOGLE_SYMMETRIC_ENCRYPTION] algorithm is usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. Algorithms beginning with "RSA_SIGN_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN]. The fields in the name after "RSA_SIGN_" correspond to the following parameters: padding algorithm, modulus bit length, and digest algorithm. For PSS, the salt length used is equal to the length of digest algorithm. For example, [RSA_SIGN_PSS_2048_SHA256][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256] will use PSS with a salt length of 256 bits or 32 bytes. Algorithms beginning with "RSA_DECRYPT_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. The fields in the name after "RSA_DECRYPT_" correspond to the following parameters: padding algorithm, modulus bit length, and digest algorithm. Algorithms beginning with "EC_SIGN_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN]. The fields in the name after "EC_SIGN_" correspond to the following parameters: elliptic curve, digest algorithm. Algorithms beginning with "HMAC_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] [MAC][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.MAC]. The suffix following "HMAC_" corresponds to the hash algorithm being used (eg. SHA256). For more information, see [Key purposes and algorithms] (https://cloud.google.com/kms/docs/algorithms).Protobuf enum
google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm
Enum Constant and Description |
---|
CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED
Not specified.
|
EC_SIGN_P256_SHA256
ECDSA on the NIST P-256 curve with a SHA256 digest.
|
EC_SIGN_P384_SHA384
ECDSA on the NIST P-384 curve with a SHA384 digest.
|
EC_SIGN_SECP256K1_SHA256
ECDSA on the non-NIST secp256k1 curve.
|
EXTERNAL_SYMMETRIC_ENCRYPTION
Algorithm representing symmetric encryption by an external key manager.
|
GOOGLE_SYMMETRIC_ENCRYPTION
Creates symmetric encryption keys.
|
HMAC_SHA256
HMAC-SHA256 signing with a 256 bit key.
|
RSA_DECRYPT_OAEP_2048_SHA1
RSAES-OAEP 2048 bit key with a SHA1 digest.
|
RSA_DECRYPT_OAEP_2048_SHA256
RSAES-OAEP 2048 bit key with a SHA256 digest.
|
RSA_DECRYPT_OAEP_3072_SHA1
RSAES-OAEP 3072 bit key with a SHA1 digest.
|
RSA_DECRYPT_OAEP_3072_SHA256
RSAES-OAEP 3072 bit key with a SHA256 digest.
|
RSA_DECRYPT_OAEP_4096_SHA1
RSAES-OAEP 4096 bit key with a SHA1 digest.
|
RSA_DECRYPT_OAEP_4096_SHA256
RSAES-OAEP 4096 bit key with a SHA256 digest.
|
RSA_DECRYPT_OAEP_4096_SHA512
RSAES-OAEP 4096 bit key with a SHA512 digest.
|
RSA_SIGN_PKCS1_2048_SHA256
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
|
RSA_SIGN_PKCS1_3072_SHA256
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
|
RSA_SIGN_PKCS1_4096_SHA256
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
|
RSA_SIGN_PKCS1_4096_SHA512
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
|
RSA_SIGN_PSS_2048_SHA256
RSASSA-PSS 2048 bit key with a SHA256 digest.
|
RSA_SIGN_PSS_3072_SHA256
RSASSA-PSS 3072 bit key with a SHA256 digest.
|
RSA_SIGN_PSS_4096_SHA256
RSASSA-PSS 4096 bit key with a SHA256 digest.
|
RSA_SIGN_PSS_4096_SHA512
RSASSA-PSS 4096 bit key with a SHA512 digest.
|
RSA_SIGN_RAW_PKCS1_2048
RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.
|
RSA_SIGN_RAW_PKCS1_3072
RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.
|
RSA_SIGN_RAW_PKCS1_4096
RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED_VALUE
Not specified.
|
static int |
EC_SIGN_P256_SHA256_VALUE
ECDSA on the NIST P-256 curve with a SHA256 digest.
|
static int |
EC_SIGN_P384_SHA384_VALUE
ECDSA on the NIST P-384 curve with a SHA384 digest.
|
static int |
EC_SIGN_SECP256K1_SHA256_VALUE
ECDSA on the non-NIST secp256k1 curve.
|
static int |
EXTERNAL_SYMMETRIC_ENCRYPTION_VALUE
Algorithm representing symmetric encryption by an external key manager.
|
static int |
GOOGLE_SYMMETRIC_ENCRYPTION_VALUE
Creates symmetric encryption keys.
|
static int |
HMAC_SHA256_VALUE
HMAC-SHA256 signing with a 256 bit key.
|
static int |
RSA_DECRYPT_OAEP_2048_SHA1_VALUE
RSAES-OAEP 2048 bit key with a SHA1 digest.
|
static int |
RSA_DECRYPT_OAEP_2048_SHA256_VALUE
RSAES-OAEP 2048 bit key with a SHA256 digest.
|
static int |
RSA_DECRYPT_OAEP_3072_SHA1_VALUE
RSAES-OAEP 3072 bit key with a SHA1 digest.
|
static int |
RSA_DECRYPT_OAEP_3072_SHA256_VALUE
RSAES-OAEP 3072 bit key with a SHA256 digest.
|
static int |
RSA_DECRYPT_OAEP_4096_SHA1_VALUE
RSAES-OAEP 4096 bit key with a SHA1 digest.
|
static int |
RSA_DECRYPT_OAEP_4096_SHA256_VALUE
RSAES-OAEP 4096 bit key with a SHA256 digest.
|
static int |
RSA_DECRYPT_OAEP_4096_SHA512_VALUE
RSAES-OAEP 4096 bit key with a SHA512 digest.
|
static int |
RSA_SIGN_PKCS1_2048_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
|
static int |
RSA_SIGN_PKCS1_3072_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
|
static int |
RSA_SIGN_PKCS1_4096_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
|
static int |
RSA_SIGN_PKCS1_4096_SHA512_VALUE
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
|
static int |
RSA_SIGN_PSS_2048_SHA256_VALUE
RSASSA-PSS 2048 bit key with a SHA256 digest.
|
static int |
RSA_SIGN_PSS_3072_SHA256_VALUE
RSASSA-PSS 3072 bit key with a SHA256 digest.
|
static int |
RSA_SIGN_PSS_4096_SHA256_VALUE
RSASSA-PSS 4096 bit key with a SHA256 digest.
|
static int |
RSA_SIGN_PSS_4096_SHA512_VALUE
RSASSA-PSS 4096 bit key with a SHA512 digest.
|
static int |
RSA_SIGN_RAW_PKCS1_2048_VALUE
RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.
|
static int |
RSA_SIGN_RAW_PKCS1_3072_VALUE
RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.
|
static int |
RSA_SIGN_RAW_PKCS1_4096_VALUE
RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.
|
Modifier and Type | Method and Description |
---|---|
static CryptoKeyVersion.CryptoKeyVersionAlgorithm |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<CryptoKeyVersion.CryptoKeyVersionAlgorithm> |
internalGetValueMap() |
static CryptoKeyVersion.CryptoKeyVersionAlgorithm |
valueOf(Descriptors.EnumValueDescriptor desc) |
static CryptoKeyVersion.CryptoKeyVersionAlgorithm |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CryptoKeyVersion.CryptoKeyVersionAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CryptoKeyVersion.CryptoKeyVersionAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED
Not specified.
CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED = 0;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm GOOGLE_SYMMETRIC_ENCRYPTION
Creates symmetric encryption keys.
GOOGLE_SYMMETRIC_ENCRYPTION = 1;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_PSS_2048_SHA256
RSASSA-PSS 2048 bit key with a SHA256 digest.
RSA_SIGN_PSS_2048_SHA256 = 2;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_PSS_3072_SHA256
RSASSA-PSS 3072 bit key with a SHA256 digest.
RSA_SIGN_PSS_3072_SHA256 = 3;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_PSS_4096_SHA256
RSASSA-PSS 4096 bit key with a SHA256 digest.
RSA_SIGN_PSS_4096_SHA256 = 4;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_PSS_4096_SHA512
RSASSA-PSS 4096 bit key with a SHA512 digest.
RSA_SIGN_PSS_4096_SHA512 = 15;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_PKCS1_2048_SHA256
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_2048_SHA256 = 5;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_PKCS1_3072_SHA256
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_3072_SHA256 = 6;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_PKCS1_4096_SHA256
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_4096_SHA256 = 7;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_PKCS1_4096_SHA512
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
RSA_SIGN_PKCS1_4096_SHA512 = 16;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_RAW_PKCS1_2048
RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.
RSA_SIGN_RAW_PKCS1_2048 = 28;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_RAW_PKCS1_3072
RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.
RSA_SIGN_RAW_PKCS1_3072 = 29;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_SIGN_RAW_PKCS1_4096
RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.
RSA_SIGN_RAW_PKCS1_4096 = 30;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_DECRYPT_OAEP_2048_SHA256
RSAES-OAEP 2048 bit key with a SHA256 digest.
RSA_DECRYPT_OAEP_2048_SHA256 = 8;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_DECRYPT_OAEP_3072_SHA256
RSAES-OAEP 3072 bit key with a SHA256 digest.
RSA_DECRYPT_OAEP_3072_SHA256 = 9;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_DECRYPT_OAEP_4096_SHA256
RSAES-OAEP 4096 bit key with a SHA256 digest.
RSA_DECRYPT_OAEP_4096_SHA256 = 10;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_DECRYPT_OAEP_4096_SHA512
RSAES-OAEP 4096 bit key with a SHA512 digest.
RSA_DECRYPT_OAEP_4096_SHA512 = 17;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_DECRYPT_OAEP_2048_SHA1
RSAES-OAEP 2048 bit key with a SHA1 digest.
RSA_DECRYPT_OAEP_2048_SHA1 = 37;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_DECRYPT_OAEP_3072_SHA1
RSAES-OAEP 3072 bit key with a SHA1 digest.
RSA_DECRYPT_OAEP_3072_SHA1 = 38;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm RSA_DECRYPT_OAEP_4096_SHA1
RSAES-OAEP 4096 bit key with a SHA1 digest.
RSA_DECRYPT_OAEP_4096_SHA1 = 39;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm EC_SIGN_P256_SHA256
ECDSA on the NIST P-256 curve with a SHA256 digest.
EC_SIGN_P256_SHA256 = 12;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm EC_SIGN_P384_SHA384
ECDSA on the NIST P-384 curve with a SHA384 digest.
EC_SIGN_P384_SHA384 = 13;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm EC_SIGN_SECP256K1_SHA256
ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level.
EC_SIGN_SECP256K1_SHA256 = 31;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm HMAC_SHA256
HMAC-SHA256 signing with a 256 bit key.
HMAC_SHA256 = 32;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm EXTERNAL_SYMMETRIC_ENCRYPTION
Algorithm representing symmetric encryption by an external key manager.
EXTERNAL_SYMMETRIC_ENCRYPTION = 18;
public static final CryptoKeyVersion.CryptoKeyVersionAlgorithm UNRECOGNIZED
public static final int CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED_VALUE
Not specified.
CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED = 0;
public static final int GOOGLE_SYMMETRIC_ENCRYPTION_VALUE
Creates symmetric encryption keys.
GOOGLE_SYMMETRIC_ENCRYPTION = 1;
public static final int RSA_SIGN_PSS_2048_SHA256_VALUE
RSASSA-PSS 2048 bit key with a SHA256 digest.
RSA_SIGN_PSS_2048_SHA256 = 2;
public static final int RSA_SIGN_PSS_3072_SHA256_VALUE
RSASSA-PSS 3072 bit key with a SHA256 digest.
RSA_SIGN_PSS_3072_SHA256 = 3;
public static final int RSA_SIGN_PSS_4096_SHA256_VALUE
RSASSA-PSS 4096 bit key with a SHA256 digest.
RSA_SIGN_PSS_4096_SHA256 = 4;
public static final int RSA_SIGN_PSS_4096_SHA512_VALUE
RSASSA-PSS 4096 bit key with a SHA512 digest.
RSA_SIGN_PSS_4096_SHA512 = 15;
public static final int RSA_SIGN_PKCS1_2048_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_2048_SHA256 = 5;
public static final int RSA_SIGN_PKCS1_3072_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_3072_SHA256 = 6;
public static final int RSA_SIGN_PKCS1_4096_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_4096_SHA256 = 7;
public static final int RSA_SIGN_PKCS1_4096_SHA512_VALUE
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
RSA_SIGN_PKCS1_4096_SHA512 = 16;
public static final int RSA_SIGN_RAW_PKCS1_2048_VALUE
RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.
RSA_SIGN_RAW_PKCS1_2048 = 28;
public static final int RSA_SIGN_RAW_PKCS1_3072_VALUE
RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.
RSA_SIGN_RAW_PKCS1_3072 = 29;
public static final int RSA_SIGN_RAW_PKCS1_4096_VALUE
RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.
RSA_SIGN_RAW_PKCS1_4096 = 30;
public static final int RSA_DECRYPT_OAEP_2048_SHA256_VALUE
RSAES-OAEP 2048 bit key with a SHA256 digest.
RSA_DECRYPT_OAEP_2048_SHA256 = 8;
public static final int RSA_DECRYPT_OAEP_3072_SHA256_VALUE
RSAES-OAEP 3072 bit key with a SHA256 digest.
RSA_DECRYPT_OAEP_3072_SHA256 = 9;
public static final int RSA_DECRYPT_OAEP_4096_SHA256_VALUE
RSAES-OAEP 4096 bit key with a SHA256 digest.
RSA_DECRYPT_OAEP_4096_SHA256 = 10;
public static final int RSA_DECRYPT_OAEP_4096_SHA512_VALUE
RSAES-OAEP 4096 bit key with a SHA512 digest.
RSA_DECRYPT_OAEP_4096_SHA512 = 17;
public static final int RSA_DECRYPT_OAEP_2048_SHA1_VALUE
RSAES-OAEP 2048 bit key with a SHA1 digest.
RSA_DECRYPT_OAEP_2048_SHA1 = 37;
public static final int RSA_DECRYPT_OAEP_3072_SHA1_VALUE
RSAES-OAEP 3072 bit key with a SHA1 digest.
RSA_DECRYPT_OAEP_3072_SHA1 = 38;
public static final int RSA_DECRYPT_OAEP_4096_SHA1_VALUE
RSAES-OAEP 4096 bit key with a SHA1 digest.
RSA_DECRYPT_OAEP_4096_SHA1 = 39;
public static final int EC_SIGN_P256_SHA256_VALUE
ECDSA on the NIST P-256 curve with a SHA256 digest.
EC_SIGN_P256_SHA256 = 12;
public static final int EC_SIGN_P384_SHA384_VALUE
ECDSA on the NIST P-384 curve with a SHA384 digest.
EC_SIGN_P384_SHA384 = 13;
public static final int EC_SIGN_SECP256K1_SHA256_VALUE
ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level.
EC_SIGN_SECP256K1_SHA256 = 31;
public static final int HMAC_SHA256_VALUE
HMAC-SHA256 signing with a 256 bit key.
HMAC_SHA256 = 32;
public static final int EXTERNAL_SYMMETRIC_ENCRYPTION_VALUE
Algorithm representing symmetric encryption by an external key manager.
EXTERNAL_SYMMETRIC_ENCRYPTION = 18;
public static CryptoKeyVersion.CryptoKeyVersionAlgorithm[] values()
for (CryptoKeyVersion.CryptoKeyVersionAlgorithm c : CryptoKeyVersion.CryptoKeyVersionAlgorithm.values()) System.out.println(c);
public static CryptoKeyVersion.CryptoKeyVersionAlgorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static CryptoKeyVersion.CryptoKeyVersionAlgorithm valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static CryptoKeyVersion.CryptoKeyVersionAlgorithm forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<CryptoKeyVersion.CryptoKeyVersionAlgorithm> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static CryptoKeyVersion.CryptoKeyVersionAlgorithm valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.