Reference documentation and code samples for the Google Certificate Authority Service V1 Client class SignHashAlgorithm.
The algorithm of a Cloud KMS CryptoKeyVersion of a
CryptoKey with the
CryptoKeyPurpose value
ASYMMETRIC_SIGN. These values correspond to the
CryptoKeyVersionAlgorithm
values. For RSA signing algorithms, the PSS algorithms should be preferred,
use PKCS1 algorithms if required for compatibility. For further
recommendations, see
https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations.
Protobuf type google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm
[[["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 2025-09-04 UTC."],[],[],null,["# Google Certificate Authority Service V1 Client - Class SignHashAlgorithm (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority.SignHashAlgorithm)\n- [2.1.0](/php/docs/reference/cloud-security-private-ca/2.1.0/V1.CertificateAuthority.SignHashAlgorithm)\n- [2.0.3](/php/docs/reference/cloud-security-private-ca/2.0.3/V1.CertificateAuthority.SignHashAlgorithm)\n- [1.7.3](/php/docs/reference/cloud-security-private-ca/1.7.3/V1.CertificateAuthority.SignHashAlgorithm)\n- [1.5.0](/php/docs/reference/cloud-security-private-ca/1.5.0/V1.CertificateAuthority.SignHashAlgorithm)\n- [1.4.2](/php/docs/reference/cloud-security-private-ca/1.4.2/V1.CertificateAuthority.SignHashAlgorithm)\n- [1.3.1](/php/docs/reference/cloud-security-private-ca/1.3.1/V1.CertificateAuthority.SignHashAlgorithm)\n- [1.2.2](/php/docs/reference/cloud-security-private-ca/1.2.2/V1.CertificateAuthority.SignHashAlgorithm)\n- [1.1.0](/php/docs/reference/cloud-security-private-ca/1.1.0/V1.CertificateAuthority.SignHashAlgorithm)\n- [1.0.3](/php/docs/reference/cloud-security-private-ca/1.0.3/V1.CertificateAuthority.SignHashAlgorithm) \nReference documentation and code samples for the Google Certificate Authority Service V1 Client class SignHashAlgorithm.\n\nThe algorithm of a Cloud KMS CryptoKeyVersion of a\nCryptoKey with the\nCryptoKeyPurpose value\n`ASYMMETRIC_SIGN`. These values correspond to the\nCryptoKeyVersionAlgorithm\nvalues. For RSA signing algorithms, the PSS algorithms should be preferred,\nuse PKCS1 algorithms if required for compatibility. For further\nrecommendations, see\n\u003chttps://cloud.google.com/kms/docs/algorithms#algorithm_recommendations\u003e.\n\nProtobuf type `google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Security \\\\ PrivateCA \\\\ V1 \\\\ CertificateAuthority\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### SIGN_HASH_ALGORITHM_UNSPECIFIED\n\n Value: 0\n\nNot specified.\n\nGenerated from protobuf enum `SIGN_HASH_ALGORITHM_UNSPECIFIED = 0;`\n\n### RSA_PSS_2048_SHA256\n\n Value: 1\n\nmaps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256\n\nGenerated from protobuf enum `RSA_PSS_2048_SHA256 = 1;`\n\n### RSA_PSS_3072_SHA256\n\n Value: 2\n\nmaps to CryptoKeyVersionAlgorithm. RSA_SIGN_PSS_3072_SHA256\n\nGenerated from protobuf enum `RSA_PSS_3072_SHA256 = 2;`\n\n### RSA_PSS_4096_SHA256\n\n Value: 3\n\nmaps to CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256\n\nGenerated from protobuf enum `RSA_PSS_4096_SHA256 = 3;`\n\n### RSA_PKCS1_2048_SHA256\n\n Value: 6\n\nmaps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256\n\nGenerated from protobuf enum `RSA_PKCS1_2048_SHA256 = 6;`\n\n### RSA_PKCS1_3072_SHA256\n\n Value: 7\n\nmaps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256\n\nGenerated from protobuf enum `RSA_PKCS1_3072_SHA256 = 7;`\n\n### RSA_PKCS1_4096_SHA256\n\n Value: 8\n\nmaps to CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256\n\nGenerated from protobuf enum `RSA_PKCS1_4096_SHA256 = 8;`\n\n### EC_P256_SHA256\n\n Value: 4\n\nmaps to CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256\n\nGenerated from protobuf enum `EC_P256_SHA256 = 4;`\n\n### EC_P384_SHA384\n\n Value: 5\n\nmaps to CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384\n\nGenerated from protobuf enum `EC_P384_SHA384 = 5;`"]]