Module crypto

Source
Expand description

Crypto provider interface.

Modules§

cipher
TLS message encryption/decryption interfaces.
hash
Hashing interfaces.
hmac
HMAC interfaces.
ring
ring based CryptoProvider.
tls12
Cryptography specific to TLS1.2.
tls13
Cryptography specific to TLS1.3.

Structs§

CipherSuiteCommon
Common state for cipher suites (both for TLS 1.2 and TLS 1.3)
CryptoProvider
Controls core cryptography used by rustls.
GetRandomFailed
Random material generation failed.
SharedSecret
The result from ActiveKeyExchange::complete.
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.