Module crypto

Source
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).
ringring
ring based CryptoProvider.
tls13
Cryptography specific to TLS1.3.

Structs§

CipherSuiteCommon
Common state for cipher suites (both for TLS 1.2 and TLS 1.3)
CompletedKeyExchange
The result from SupportedKxGroup::start_and_complete().
CryptoProvider
Controls core cryptography used by rustls.
GetRandomFailed
Random material generation failed.
SharedSecret
The result from ActiveKeyExchange::complete or ActiveKeyExchange::complete_hybrid_component.
WebPkiSupportedAlgorithms
Describes which webpki signature verification algorithms are supported and how they map to TLS SignatureSchemes.

Enums§

KeyExchangeAlgorithm
Describes supported key exchange mechanisms.

Traits§

ActiveKeyExchange
An in-progress key exchange originating from a SupportedKxGroup.
KeyProvider
A mechanism for loading private SigningKeys from PrivateKeyDer.
SecureRandom
A source of cryptographically secure randomness.
SupportedKxGroup
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.