Skip to main content

CryptoProvider

Trait CryptoProvider 

Source
pub trait CryptoProvider:
    Send
    + Sync
    + 'static {
    // Required methods
    fn server_config(&self) -> Arc<ServerConfig>;
    fn fips_mode(&self) -> bool;
}
Expand description

The pluggable TLS backend.

Hands out a ready ServerConfig for terminating downstream TLS and reports whether the backend is operating in a FIPS-validated mode (provider-dependent: false for the ring build, true for the aws-lc-rs FIPS build).

Required Methods§

Source

fn server_config(&self) -> Arc<ServerConfig>

The server-side TLS configuration for terminating client connections.

Source

fn fips_mode(&self) -> bool

Whether the backend is a FIPS-validated module in FIPS mode.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl CryptoProvider for RingProvider

Available on crate feature non-fips only.