Expand description
Crypto provider interface.
Modules§
- cipher
- TLS message encryption/decryption interfaces.
- hash
- Hashing interfaces.
- hmac
- HMAC interfaces.
- hpke
- Hybrid public key encryption (RFC 9180).
- ring
ring
- ring based CryptoProvider.
- 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::complete
orActiveKeyExchange::complete_hybrid_component
. - WebPki
Supported Algorithms - Describes which
webpki
signature verification algorithms are supported and how they map to TLSSignatureScheme
s.
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 from PrivateKeyDer.
- Secure
Random - A source of cryptographically secure randomness.
- Supported
KxGroup - A supported key exchange group.
Functions§
- 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. - verify_
tls13_ signature_ with_ raw_ key - Verify a message signature using a raw public key and the first TLS 1.3 compatible supported scheme.