Skip to main content

Crate rtc_crypto

Crate rtc_crypto 

Source
Expand description

Provider-neutral cryptography for the webrtc-rs RTC stack.

The open traits in this crate allow applications to supply cryptography and randomness without registering global state. Built-in providers are selected with additive Cargo features.

Modules§

providers

Structs§

PublicKey
Borrowed public-key bytes with an explicit encoding.
SecretVec
An owned byte vector that zeroizes its allocation when dropped.

Enums§

AeadAlgorithm
Authenticated-encryption algorithms.
BlockCipherAlgorithm
Single-block encryption algorithms.
CbcAlgorithm
CBC algorithms.
CryptoAlgorithm
A provider capability identifier.
CryptoError
A provider-neutral cryptographic failure.
HashAlgorithm
Algorithms accepted by crate::RTCCrypto::hash.
HmacAlgorithm
Algorithms accepted by the HMAC operations.
KeyExchangeAlgorithm
Ephemeral key-agreement algorithms.
PublicKeyEncoding
The encoding of public-key bytes.
SignatureScheme
Signature schemes currently used by DTLS.
StreamCipherAlgorithm
Stream-cipher algorithms.

Traits§

ActiveKeyExchange
Provider-owned one-shot ephemeral key exchange.
AeadCipher
A keyed authenticated cipher with detached tags.
CbcCipher
A keyed CBC block cipher with a reusable expanded key.
Mac
A keyed message authentication code with a reusable key schedule.
RTCCrypto
Provider-neutral cryptographic operations.
RTCCryptoProvider
A bundle of cryptographic operations and cryptographically secure randomness.
RTCRandom
A cryptographically secure random byte generator.
SigningKey
A provider-owned signing key, including external or non-exportable keys.
StreamCipher
A keyed stream cipher with a reusable expanded key.

Functions§

constant_time_eq
Compares equal-length byte strings without data-dependent early exit.
default_provider
Constructs the built-in default provider.