Structs§
- Crypto
Provider Builder - 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 theaws-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 givenrustls_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 tobuff
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 tobuff
using the process-wide default crypto provider. - rustls_
supported_ hpke - Returns a pointer to the supported
rustls_hpke
Hybrid Public Key Encryption (HPKE) suites, orNULL
if HPKE is not supported.