Expand description
Crypto provider interface.
Modules§
- aws_
lc_ rs aws-lc-rs
- aws-lc-rs-based CryptoProvider.
- cipher
- TLS message encryption/decryption interfaces.
- hash
- Hashing interfaces.
- hmac
- HMAC interfaces.
- hpke
- Hybrid public key encryption (RFC 9180).
- ring
ring
- ring based CryptoProvider.
- tls12
- Cryptography specific to TLS1.2.
- tls13
- Cryptography specific to TLS1.3.
Structs§
- Certificate
Identity - Data required to verify the peer’s identity.
- Cipher
Suite Common - Common state for cipher suites (both for TLS 1.2 and TLS 1.3)
- Completed
KeyExchange - The result from
SupportedKxGroup::start_and_complete()
. - Credentials
- A packaged-together certificate chain, matching
SigningKey
and optional stapled OCSP response. - Crypto
Provider - Controls core cryptography used by rustls.
- GetRandom
Failed - Random material generation failed.
- Selected
Credential - A packaged-together certificate chain and one-time-use signer.
- Shared
Secret - The result from
ActiveKeyExchange::complete()
orHybridKeyExchange::complete_component()
. - Single
Credential - Server certificate resolver which always resolves to the same identity and key.
- WebPki
Supported Algorithms - Describes which
webpki
signature verification algorithms are supported and how they map to TLSSignatureScheme
s.
Enums§
- Identity
- A peer’s identity, depending on the negotiated certificate type.
- KeyExchange
Algorithm - Describes supported key exchange mechanisms.
- Started
KeyExchange - Return value from
SupportedKxGroup::start()
.
Traits§
- Active
KeyExchange - An in-progress key exchange originating from a
SupportedKxGroup
. - Hybrid
KeyExchange - An in-progress hybrid key exchange originating from a
SupportedKxGroup
. - KeyProvider
- A mechanism for loading private
SigningKey
s from [PrivateKeyDer
]. - Secure
Random - A source of cryptographically secure randomness.
- Signer
- A thing that can sign a message.
- Signing
Key - An abstract signing key.
- Supported
KxGroup - A supported key exchange group.
Functions§
- default_
fips_ provider fips
- This function returns a
CryptoProvider
that uses FIPS140-3-approved cryptography. - public_
key_ to_ spki - Convert a public key and algorithm identifier into [
SubjectPublicKeyInfoDer
]. - verify_
tls12_ signature - Verify a message signature using the
cert
public key and any supported scheme. - verify_
tls13_ signature - Verify a message signature using the
cert
public key and the first TLS 1.3 compatible supported scheme.