Available on crate feature
tls only.Expand description
Crypto provider interface.
Modules§
- 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 based CryptoProvider.
- tls12
- Cryptography specific to TLS1.2.
- tls13
- Cryptography specific to TLS1.3.
Structs§
- 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(). - Crypto
Provider - Controls core cryptography used by rustls.
- GetRandom
Failed - Random material generation failed.
- Shared
Secret - The result from
ActiveKeyExchange::completeorActiveKeyExchange::complete_hybrid_component. - WebPki
Supported Algorithms - Describes which
webpkisignature verification algorithms are supported and how they map to TLSSignatureSchemes.
Enums§
- KeyExchange
Algorithm - Describes supported key exchange mechanisms.
Traits§
- Active
KeyExchange - An in-progress key exchange originating from a
SupportedKxGroup. - KeyProvider
- A mechanism for loading private
SigningKeys fromPrivateKeyDer. - Secure
Random - A source of cryptographically secure randomness.
- Supported
KxGroup - A supported key exchange group.
Functions§
- default_
fips_ provider - This function returns a
CryptoProviderthat uses FIPS140-3-approved cryptography. - verify_
tls12_ signature - Verify a message signature using the
certpublic key and any supported scheme. - verify_
tls13_ signature - Verify a message signature using the
certpublic key and the first TLS 1.3 compatible supported scheme. - verify_
tls13_ signature_ with_ raw_ key - Verify a message signature using a raw public key and the first TLS 1.3 compatible supported scheme.