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§
Structs§
- Public
Key - Borrowed public-key bytes with an explicit encoding.
- Secret
Vec - An owned byte vector that zeroizes its allocation when dropped.
Enums§
- Aead
Algorithm - Authenticated-encryption algorithms.
- Block
Cipher Algorithm - Single-block encryption algorithms.
- CbcAlgorithm
- CBC algorithms.
- Crypto
Algorithm - A provider capability identifier.
- Crypto
Error - A provider-neutral cryptographic failure.
- Hash
Algorithm - Algorithms accepted by
crate::RTCCrypto::hash. - Hmac
Algorithm - Algorithms accepted by the HMAC operations.
- KeyExchange
Algorithm - Ephemeral key-agreement algorithms.
- Public
KeyEncoding - The encoding of public-key bytes.
- Signature
Scheme - Signature schemes currently used by DTLS.
- Stream
Cipher Algorithm - Stream-cipher algorithms.
Traits§
- Active
KeyExchange - Provider-owned one-shot ephemeral key exchange.
- Aead
Cipher - 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.
- RTCCrypto
Provider - A bundle of cryptographic operations and cryptographically secure randomness.
- RTCRandom
- A cryptographically secure random byte generator.
- Signing
Key - A provider-owned signing key, including external or non-exportable keys.
- Stream
Cipher - 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.