# Certificate Authority Service V1beta1 API - Module Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::SignHashAlgorithm (v0.18.0)

0.18.0 (latest) 0.17.1 0.16.0 0.15.1 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.6 Reference documentation and code samples for the Certificate Authority Service V1beta1 API module Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::SignHashAlgorithm.

The algorithm of a Cloud KMS CryptoKeyVersion of a
\[CryptoKey\]\[google.cloud.kms.v1.CryptoKey\] with the
\[CryptoKeyPurpose\]\[google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose\] value
`ASYMMETRIC_SIGN`. These values correspond to the
\[CryptoKeyVersionAlgorithm\]\[google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm\]
values. For RSA signing algorithms, the PSS algorithms should be preferred,
use PKCS1 algorithms if required for compatibility. For further
recommandations, see
<https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations>.

## Constants

### SIGN_HASH_ALGORITHM_UNSPECIFIED

**value:** 0  
Not specified.

### RSA_PSS_2048_SHA256

**value:** 1  
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256

### RSA_PSS_3072_SHA256

**value:** 2  
maps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256

### RSA_PSS_4096_SHA256

**value:** 3  
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256

### RSA_PKCS1_2048_SHA256

**value:** 6  
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256

### RSA_PKCS1_3072_SHA256

**value:** 7  
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256

### RSA_PKCS1_4096_SHA256

**value:** 8  
maps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256

### EC_P256_SHA256

**value:** 4  
maps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256

### EC_P384_SHA384

**value:** 5  
maps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384