Skip to main content

install_pq_crypto_provider

Function install_pq_crypto_provider 

Source
pub fn install_pq_crypto_provider() -> Result<(), ProviderPolicyError>
Expand description

Install and validate the external-interoperability provider as rustls’s process-wide default.

rustls is first-install-wins. Consequently, silently ignoring install_default failure can leave a process on ring/X25519. This function always inspects the effective provider after installation and returns an error if an earlier initializer installed anything other than the exact declared external policy. Call it before constructing any WebTransport/rustls builder; a policy violation fails startup instead of downgrading transport.