CryptoKeyVersionAlgorithm

com.google.cloud.kms.v1.resources.CryptoKeyVersion.CryptoKeyVersionAlgorithm
See theCryptoKeyVersionAlgorithm companion object
sealed abstract class CryptoKeyVersionAlgorithm(val value: Int) extends GeneratedEnum

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).

Attributes

Companion
object
Source
CryptoKeyVersion.scala
Graph
Supertypes
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Type members

Value members

Concrete methods

final def asRecognized: Option[Recognized]

Attributes

Source
CryptoKeyVersion.scala
def companion: GeneratedEnumCompanion[CryptoKeyVersionAlgorithm]

Attributes

Source
CryptoKeyVersion.scala
def isAes128Cbc: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isAes128Ctr: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isAes128Gcm: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isAes256Cbc: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isAes256Ctr: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isAes256Gcm: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isEcSignP256Sha256: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isEcSignP384Sha384: Boolean

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala
def isHmacSha1: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isHmacSha224: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isHmacSha256: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isHmacSha384: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isHmacSha512: Boolean

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala

Attributes

Source
CryptoKeyVersion.scala
def isRsaSignPss2048Sha256: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isRsaSignPss3072Sha256: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isRsaSignPss4096Sha256: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isRsaSignPss4096Sha512: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isRsaSignRawPkcs12048: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isRsaSignRawPkcs13072: Boolean

Attributes

Source
CryptoKeyVersion.scala
def isRsaSignRawPkcs14096: Boolean

Attributes

Source
CryptoKeyVersion.scala

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def index: Int

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def isUnrecognized: Boolean

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def javaValueDescriptor: EnumValueDescriptor

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def name: String

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product
def scalaValueDescriptor: EnumValueDescriptor

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
GeneratedEnum -> Any
Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala

Concrete fields

val value: Int

Attributes

Source
CryptoKeyVersion.scala