Cloud Key Management Service (KMS) V1 API - Module Google::Cloud::Kms::V1::PublicKey::PublicKeyFormat (v1.5.0)

Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API module Google::Cloud::Kms::V1::PublicKey::PublicKeyFormat.

The supported PublicKey formats.

Constants

PUBLIC_KEY_FORMAT_UNSPECIFIED

value: 0
If the public_key_format field is not specified:

  • For PQC algorithms, an error will be returned.
  • For non-PQC algorithms, the default format is PEM, and the field pem will be populated.

Otherwise, the public key will be exported through the public_key field in the requested format.

PEM

value: 1
The returned public key will be encoded in PEM format. See the RFC7468 sections for General Considerations and Textual Encoding of Subject Public Key Info for more information.

NIST_PQC

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