google.protobuf.wrappers_pb2.Int64Value Integrity verification field. A CRC32C checksum of the
returnedPublicKey.pem.
An integrity check ofPublicKey.pemcan be
performed by computing the CRC32C checksum ofPublicKey.pemand
comparing your results to this field. Discard the response
in case of non-matching checksum values, and perform a
limited number of retries. A persistent mismatch may
indicate an issue in your computation of the CRC32C
checksum. Note: This field is defined as int64 for reasons
of compatibility across different languages. However, it is
a non-negative integer, which will never exceed2^32-1,
and can be safely downconverted to uint32 in languages that
support this type.
NOTE: This field is in Beta.
name
str Thenameof theCryptoKeyVersionpublic key. Provided here for verification.
NOTE: This field is in Beta.
- For PQC algorithms, an error will be returned.
- For non-PQC algorithms, the default format is PEM, and
the field <xref uid="google.cloud.kms.v1.PublicKey.pem">pem</xref> will
be populated.
Otherwise, the public key will be exported through the
<xref uid="google.cloud.kms.v1.PublicKey.public_key">public_key</xref> field
in the requested format.
PEM (1):
The returned public key will be encoded in PEM format. See
the `RFC7468 <https://tools.ietf.org/html/rfc7468>`__
sections for `General
Considerations <https://tools.ietf.org/html/rfc7468#section-2>`__
and [Textual Encoding of Subject Public Key Info]
(https://tools.ietf.org/html/rfc7468#section-13) for more
information.
NIST_PQC (3):
This is supported only for PQC algorithms.
The key material is returned in the format
defined by NIST PQC standards (FIPS 203, FIPS
204, and FIPS 205).
[[["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,["# Class PublicKey (3.5.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.5.1 (latest)](/python/docs/reference/cloudkms/latest/google.cloud.kms_v1.types.PublicKey)\n- [3.5.0](/python/docs/reference/cloudkms/3.5.0/google.cloud.kms_v1.types.PublicKey)\n- [3.4.0](/python/docs/reference/cloudkms/3.4.0/google.cloud.kms_v1.types.PublicKey)\n- [3.3.1](/python/docs/reference/cloudkms/3.3.1/google.cloud.kms_v1.types.PublicKey)\n- [3.2.2](/python/docs/reference/cloudkms/3.2.2/google.cloud.kms_v1.types.PublicKey)\n- [3.1.1](/python/docs/reference/cloudkms/3.1.1/google.cloud.kms_v1.types.PublicKey)\n- [3.0.0](/python/docs/reference/cloudkms/3.0.0/google.cloud.kms_v1.types.PublicKey)\n- [2.24.2](/python/docs/reference/cloudkms/2.24.2/google.cloud.kms_v1.types.PublicKey)\n- [2.23.0](/python/docs/reference/cloudkms/2.23.0/google.cloud.kms_v1.types.PublicKey)\n- [2.22.0](/python/docs/reference/cloudkms/2.22.0/google.cloud.kms_v1.types.PublicKey)\n- [2.21.4](/python/docs/reference/cloudkms/2.21.4/google.cloud.kms_v1.types.PublicKey)\n- [2.20.0](/python/docs/reference/cloudkms/2.20.0/google.cloud.kms_v1.types.PublicKey)\n- [2.19.2](/python/docs/reference/cloudkms/2.19.2/google.cloud.kms_v1.types.PublicKey)\n- [2.18.0](/python/docs/reference/cloudkms/2.18.0/google.cloud.kms_v1.types.PublicKey)\n- [2.17.0](/python/docs/reference/cloudkms/2.17.0/google.cloud.kms_v1.types.PublicKey)\n- [2.16.1](/python/docs/reference/cloudkms/2.16.1/google.cloud.kms_v1.types.PublicKey)\n- [2.15.0](/python/docs/reference/cloudkms/2.15.0/google.cloud.kms_v1.types.PublicKey)\n- [2.14.1](/python/docs/reference/cloudkms/2.14.1/google.cloud.kms_v1.types.PublicKey)\n- [2.13.0](/python/docs/reference/cloudkms/2.13.0/google.cloud.kms_v1.types.PublicKey)\n- [2.12.3](/python/docs/reference/cloudkms/2.12.3/google.cloud.kms_v1.types.PublicKey)\n- [2.11.2](/python/docs/reference/cloudkms/2.11.2/google.cloud.kms_v1.types.PublicKey)\n- [2.10.1](/python/docs/reference/cloudkms/2.10.1/google.cloud.kms_v1.types.PublicKey)\n- [2.9.0](/python/docs/reference/cloudkms/2.9.0/google.cloud.kms_v1.types.PublicKey)\n- [2.8.0](/python/docs/reference/cloudkms/2.8.0/google.cloud.kms_v1.types.PublicKey)\n- [2.7.0](/python/docs/reference/cloudkms/2.7.0/google.cloud.kms_v1.types.PublicKey)\n- [2.6.1](/python/docs/reference/cloudkms/2.6.1/google.cloud.kms_v1.types.PublicKey)\n- [2.5.0](/python/docs/reference/cloudkms/2.5.0/google.cloud.kms_v1.types.PublicKey)\n- [2.4.3](/python/docs/reference/cloudkms/2.4.3/google.cloud.kms_v1.types.PublicKey)\n- [2.3.0](/python/docs/reference/cloudkms/2.3.0/google.cloud.kms_v1.types.PublicKey)\n- [2.2.0](/python/docs/reference/cloudkms/2.2.0/google.cloud.kms_v1.types.PublicKey)\n- [2.1.0](/python/docs/reference/cloudkms/2.1.0/google.cloud.kms_v1.types.PublicKey)\n- [2.0.1](/python/docs/reference/cloudkms/2.0.1/google.cloud.kms_v1.types.PublicKey)\n- [1.4.2](/python/docs/reference/cloudkms/1.4.2/google.cloud.kms_v1.types.PublicKey)\n- [1.3.0](/python/docs/reference/cloudkms/1.3.0/google.cloud.kms_v1.types.PublicKey)\n- [1.2.1](/python/docs/reference/cloudkms/1.2.1/google.cloud.kms_v1.types.PublicKey)\n- [1.1.0](/python/docs/reference/cloudkms/1.1.0/google.cloud.kms_v1.types.PublicKey) \n\n PublicKey(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe public keys for a given\nCryptoKeyVersion. Obtained\nvia\nGetPublicKey.\n\nClasses\n-------\n\n### PublicKeyFormat\n\n PublicKeyFormat(value)\n\nThe supported PublicKey formats. \n\n - For PQC algorithms, an error will be returned.\n - For non-PQC algorithms, the default format is PEM, and\n the field \u003cxref uid=\"google.cloud.kms.v1.PublicKey.pem\"\u003epem\u003c/xref\u003e will\n be populated.\n\n Otherwise, the public key will be exported through the\n \u003cxref uid=\"google.cloud.kms.v1.PublicKey.public_key\"\u003epublic_key\u003c/xref\u003e field\n in the requested format.\n PEM (1):\n The returned public key will be encoded in PEM format. See\n the `RFC7468 \u003chttps://tools.ietf.org/html/rfc7468\u003e`__\n sections for `General\n Considerations \u003chttps://tools.ietf.org/html/rfc7468#section-2\u003e`__\n and [Textual Encoding of Subject Public Key Info]\n (https://tools.ietf.org/html/rfc7468#section-13) for more\n information.\n NIST_PQC (3):\n This is supported only for PQC algorithms.\n The key material is returned in the format\n defined by NIST PQC standards (FIPS 203, FIPS\n 204, and FIPS 205)."]]