Module crypto_provider

Source

Structs§

CryptoProviderBuilder
A builder for customizing a CryptoProvider. Can be used to install a process-wide default.
rustls_crypto_provider
A C representation of a Rustls CryptoProvider.
rustls_crypto_provider_builder
A rustls_crypto_provider builder.
rustls_hpke
A collection of supported Hybrid Public Key Encryption (HPKE) suites.
rustls_signing_key
A signing key that can be used to construct a certified key.

Functions§

rustls_aws_lc_rs_crypto_provider
Return the rustls_crypto_provider backed by the aws-lc-rs cryptography library.
rustls_crypto_provider_builder_build
Builds a rustls_crypto_provider from the builder and returns it. Returns an error if the builder has already been built.
rustls_crypto_provider_builder_build_as_default
Builds a rustls_crypto_provider from the builder and sets it as the process-wide default crypto provider.
rustls_crypto_provider_builder_free
Free the rustls_crypto_provider_builder.
rustls_crypto_provider_builder_new_from_default
Constructs a new rustls_crypto_provider_builder using the process-wide default crypto provider as the base crypto provider to be customized.
rustls_crypto_provider_builder_new_with_base
Constructs a new rustls_crypto_provider_builder using the given rustls_crypto_provider as the base crypto provider to be customized.
rustls_crypto_provider_builder_set_cipher_suites
Customize the supported ciphersuites of the rustls_crypto_provider_builder.
rustls_crypto_provider_ciphersuites_get
Retrieve a pointer to a supported ciphersuite of the rustls_crypto_provider.
rustls_crypto_provider_ciphersuites_len
Returns the number of ciphersuites the rustls_crypto_provider supports.
rustls_crypto_provider_default
Retrieve a pointer to the process default rustls_crypto_provider.
rustls_crypto_provider_fips
Returns true if the rustls_crypto_provider is operating in FIPS mode.
rustls_crypto_provider_free
Frees the rustls_crypto_provider.
rustls_crypto_provider_load_key
Load a private key from the provided PEM content using the crypto provider.
rustls_crypto_provider_random
Write len bytes of cryptographically secure random data to buff using the crypto provider.
rustls_default_crypto_provider_ciphersuites_get
Retrieve a pointer to a supported ciphersuite of the default process-wide crypto provider.
rustls_default_crypto_provider_ciphersuites_len
Returns the number of ciphersuites the default process-wide crypto provider supports.
rustls_default_crypto_provider_random
Write len bytes of cryptographically secure random data to buff using the process-wide default crypto provider.
rustls_supported_hpke
Returns a pointer to the supported rustls_hpke Hybrid Public Key Encryption (HPKE) suites, or NULL if HPKE is not supported.