Reference documentation and code samples for the Google Cloud Binary Authorization V1 Client class SignatureAlgorithm.
Represents a signature algorithm and other information necessary to verify
signatures with a given public key.
This is based primarily on the public key types supported by Tink's
PemKeyType, which is in turn based on KMS's supported signing algorithms.
See https://cloud.google.com/kms/docs/algorithms. In the future, BinAuthz
might support additional public key types independently of Tink and/or KMS.
Protobuf type google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm
Namespace
Google \ Cloud \ BinaryAuthorization \ V1 \ PkixPublicKey
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
SIGNATURE_ALGORITHM_UNSPECIFIED
Value: 0
Not specified.
Generated from protobuf enum SIGNATURE_ALGORITHM_UNSPECIFIED = 0;
RSA_PSS_2048_SHA256
Value: 1
RSASSA-PSS 2048 bit key with a SHA256 digest.
Generated from protobuf enum RSA_PSS_2048_SHA256 = 1;
RSA_PSS_3072_SHA256
Value: 2
RSASSA-PSS 3072 bit key with a SHA256 digest.
Generated from protobuf enum RSA_PSS_3072_SHA256 = 2;
RSA_PSS_4096_SHA256
Value: 3
RSASSA-PSS 4096 bit key with a SHA256 digest.
Generated from protobuf enum RSA_PSS_4096_SHA256 = 3;
RSA_PSS_4096_SHA512
Value: 4
RSASSA-PSS 4096 bit key with a SHA512 digest.
Generated from protobuf enum RSA_PSS_4096_SHA512 = 4;
RSA_SIGN_PKCS1_2048_SHA256
Value: 5
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
Generated from protobuf enum RSA_SIGN_PKCS1_2048_SHA256 = 5;
RSA_SIGN_PKCS1_3072_SHA256
Value: 6
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
Generated from protobuf enum RSA_SIGN_PKCS1_3072_SHA256 = 6;
RSA_SIGN_PKCS1_4096_SHA256
Value: 7
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
Generated from protobuf enum RSA_SIGN_PKCS1_4096_SHA256 = 7;
RSA_SIGN_PKCS1_4096_SHA512
Value: 8
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
Generated from protobuf enum RSA_SIGN_PKCS1_4096_SHA512 = 8;
ECDSA_P256_SHA256
Value: 9
ECDSA on the NIST P-256 curve with a SHA256 digest.
Generated from protobuf enum ECDSA_P256_SHA256 = 9;
EC_SIGN_P256_SHA256
Value: 9
ECDSA on the NIST P-256 curve with a SHA256 digest.
Generated from protobuf enum EC_SIGN_P256_SHA256 = 9;
ECDSA_P384_SHA384
Value: 10
ECDSA on the NIST P-384 curve with a SHA384 digest.
Generated from protobuf enum ECDSA_P384_SHA384 = 10;
EC_SIGN_P384_SHA384
Value: 10
ECDSA on the NIST P-384 curve with a SHA384 digest.
Generated from protobuf enum EC_SIGN_P384_SHA384 = 10;
ECDSA_P521_SHA512
Value: 11
ECDSA on the NIST P-521 curve with a SHA512 digest.
Generated from protobuf enum ECDSA_P521_SHA512 = 11;
EC_SIGN_P521_SHA512
Value: 11
ECDSA on the NIST P-521 curve with a SHA512 digest.
Generated from protobuf enum EC_SIGN_P521_SHA512 = 11;
[[["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-08-28 UTC."],[],[],null,["# Google Cloud Binary Authorization V1 Client - Class SignatureAlgorithm (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-binary-authorization/latest/V1.PkixPublicKey.SignatureAlgorithm)\n- [1.0.4](/php/docs/reference/cloud-binary-authorization/1.0.4/V1.PkixPublicKey.SignatureAlgorithm)\n- [0.8.7](/php/docs/reference/cloud-binary-authorization/0.8.7/V1.PkixPublicKey.SignatureAlgorithm)\n- [0.7.0](/php/docs/reference/cloud-binary-authorization/0.7.0/V1.PkixPublicKey.SignatureAlgorithm)\n- [0.6.1](/php/docs/reference/cloud-binary-authorization/0.6.1/V1.PkixPublicKey.SignatureAlgorithm)\n- [0.5.13](/php/docs/reference/cloud-binary-authorization/0.5.13/V1.PkixPublicKey.SignatureAlgorithm) \nReference documentation and code samples for the Google Cloud Binary Authorization V1 Client class SignatureAlgorithm.\n\nRepresents a signature algorithm and other information necessary to verify\nsignatures with a given public key.\n\nThis is based primarily on the public key types supported by Tink's\nPemKeyType, which is in turn based on KMS's supported signing algorithms.\nSee \u003chttps://cloud.google.com/kms/docs/algorithms\u003e. In the future, BinAuthz\nmight support additional public key types independently of Tink and/or KMS.\n\nProtobuf type `google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BinaryAuthorization \\\\ V1 \\\\ PkixPublicKey\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### SIGNATURE_ALGORITHM_UNSPECIFIED\n\n Value: 0\n\nNot specified.\n\nGenerated from protobuf enum `SIGNATURE_ALGORITHM_UNSPECIFIED = 0;`\n\n### RSA_PSS_2048_SHA256\n\n Value: 1\n\nRSASSA-PSS 2048 bit key with a SHA256 digest.\n\nGenerated from protobuf enum `RSA_PSS_2048_SHA256 = 1;`\n\n### RSA_PSS_3072_SHA256\n\n Value: 2\n\nRSASSA-PSS 3072 bit key with a SHA256 digest.\n\nGenerated from protobuf enum `RSA_PSS_3072_SHA256 = 2;`\n\n### RSA_PSS_4096_SHA256\n\n Value: 3\n\nRSASSA-PSS 4096 bit key with a SHA256 digest.\n\nGenerated from protobuf enum `RSA_PSS_4096_SHA256 = 3;`\n\n### RSA_PSS_4096_SHA512\n\n Value: 4\n\nRSASSA-PSS 4096 bit key with a SHA512 digest.\n\nGenerated from protobuf enum `RSA_PSS_4096_SHA512 = 4;`\n\n### RSA_SIGN_PKCS1_2048_SHA256\n\n Value: 5\n\nRSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.\n\nGenerated from protobuf enum `RSA_SIGN_PKCS1_2048_SHA256 = 5;`\n\n### RSA_SIGN_PKCS1_3072_SHA256\n\n Value: 6\n\nRSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.\n\nGenerated from protobuf enum `RSA_SIGN_PKCS1_3072_SHA256 = 6;`\n\n### RSA_SIGN_PKCS1_4096_SHA256\n\n Value: 7\n\nRSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.\n\nGenerated from protobuf enum `RSA_SIGN_PKCS1_4096_SHA256 = 7;`\n\n### RSA_SIGN_PKCS1_4096_SHA512\n\n Value: 8\n\nRSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.\n\nGenerated from protobuf enum `RSA_SIGN_PKCS1_4096_SHA512 = 8;`\n\n### ECDSA_P256_SHA256\n\n Value: 9\n\nECDSA on the NIST P-256 curve with a SHA256 digest.\n\nGenerated from protobuf enum `ECDSA_P256_SHA256 = 9;`\n\n### EC_SIGN_P256_SHA256\n\n Value: 9\n\nECDSA on the NIST P-256 curve with a SHA256 digest.\n\nGenerated from protobuf enum `EC_SIGN_P256_SHA256 = 9;`\n\n### ECDSA_P384_SHA384\n\n Value: 10\n\nECDSA on the NIST P-384 curve with a SHA384 digest.\n\nGenerated from protobuf enum `ECDSA_P384_SHA384 = 10;`\n\n### EC_SIGN_P384_SHA384\n\n Value: 10\n\nECDSA on the NIST P-384 curve with a SHA384 digest.\n\nGenerated from protobuf enum `EC_SIGN_P384_SHA384 = 10;`\n\n### ECDSA_P521_SHA512\n\n Value: 11\n\nECDSA on the NIST P-521 curve with a SHA512 digest.\n\nGenerated from protobuf enum `ECDSA_P521_SHA512 = 11;`\n\n### EC_SIGN_P521_SHA512\n\n Value: 11\n\nECDSA on the NIST P-521 curve with a SHA512 digest.\n\nGenerated from protobuf enum `EC_SIGN_P521_SHA512 = 11;`"]]