The Google Cloud client libraries for Swift support post-quantum cryptography (PQC). PQC helps protect encrypted communications against potential future quantum computing capabilities that might compromise classical public-key cryptography.
Summary
Google Cloud services and Google Front End load balancers support hybrid
post-quantum key agreement (X25519MLKEM768, IANA group ID 0x11ec / 4588)
during TLS 1.3 handshakes.
The Google Cloud client libraries for Swift enable and negotiate post-quantum hybrid key agreement by default without requiring custom configuration.
How PQC operates in the Swift client libraries
The Swift client libraries use either
grpc-swift-2 or
async-http-client on
GitHub, both backed by Apple's
swift-nio-ssl and embedded BoringSSL
(CNIOBoringSSL).
When negotiating TLS 1.3 connections, swift-nio-ssl configures
X25519MLKEM768 as the first and preferred key exchange group in its default
curve list:
X25519MLKEM768(hybrid post-quantum key exchange)X25519(classical curve)secp256r1(classical curve P-256)secp384r1(classical curve P-384)
During the TLS 1.3 ClientHello, the client offers X25519MLKEM768. Because
Google Cloud endpoints support this group, the handshake selects it,
helping secure data in transit against retrospective decryption attacks.
If a server or intermediate network proxy doesn't support X25519MLKEM768,
negotiation automatically falls back to classical algorithms.
What's next
- Read the Post-quantum cryptography guide for more information about PQC support in Google Cloud.
- Review the Supported Swift versions guide for toolchain support details.
- Follow the Quickstart: Get started with Swift to set up and run your first Swift application.
- Browse the Google Cloud client libraries for Swift reference documentation.