Expand description
Re-export the rs-matter crate
Cryptographic abstractions and backend.
Modules§
- backend
- Cryptographic backends.
Structs§
- Crypto
Sensitive - A cryptographic material represented in a cross-platform way, as a fixed-length array in a well-defined format.
- Crypto
Sensitive Ref - A reference to cryptographic material.
The non-owned equivalent of
CryptoSensitive<N>. - Shared
Rand - A utility wrapping a random number generator in a mutex for shared access.
- Weak
Test Only Rand - A weak random number generator intended for use in tests only.
Constants§
- AEAD_
CANON_ KEY_ LEN - Length of the canonical representation of an AEAD key in bytes.
- AEAD_
KEY_ ZEROED - Zeroed $name.
- AEAD_
NONCE_ LEN - Length of the nonce used in AEAD operations in bytes.
- AEAD_
NONCE_ ZEROED - Zeroed $name.
- AEAD_
TAG_ LEN - Length of the tag produced by AEAD operations in bytes.
- AEAD_
TAG_ ZEROED - Zeroed $name.
- EC_
CANON_ POINT_ LEN - Length of the canonical representation of an EC point in bytes.
- EC_
CANON_ SCALAR_ LEN - Length of the canonical representation of an EC scalar in bytes.
- EC_
POINT_ ZEROED - Zeroed $name.
- EC_
SCALAR_ ZEROED - Zeroed $name.
- HASH_
LEN - Length of the hash returned by the hasher (
Crypto::hash) in bytes. - HASH_
ZEROED - Zeroed $name.
- HMAC_
HASH_ LEN - Length of the HMAC hash returned by the HMAC hasher (
Crypto::hmac) in bytes. - HMAC_
HASH_ ZEROED - Zeroed $name.
- PKC_
CANON_ PUBLIC_ KEY_ LEN - Length of the canonical representation of a public key in bytes.
- PKC_
CANON_ SECRET_ KEY_ LEN - Length of the canonical representation of a secret key in bytes.
- PKC_
PUBLIC_ KEY_ ZEROED - Zeroed $name.
- PKC_
SECRET_ KEY_ ZEROED - Zeroed $name.
- PKC_
SHARED_ SECRET_ LEN - Length of the canonical representation of a shared secret in bytes.
- PKC_
SHARED_ SECRET_ ZEROED - Zeroed $name.
- PKC_
SIGNATURE_ LEN - Length of the canonical representation of a signature in bytes.
- PKC_
SIGNATURE_ ZEROED - Zeroed $name.
- SHA1_
HASH_ LEN - Length of the SHA-1 hash returned by
Crypto::hash1in bytes. - UINT320_
CANON_ LEN - Length of the canonical representation of a 320-bit unsigned integer in bytes.
- UINT320_
ZEROED - Zeroed $name.
Traits§
- Aead
- Trait representing an Authenticated Encryption with Associated Data (AEAD) algorithm.
- Crypto
- Trait representing a cryptographic backend.
- Crypto
Rng - A marker trait used to indicate that an
RngCoreorBlockRngCoreimplementation is supposed to be cryptographically secure. - Crypto
RngCore - An extension trait that is automatically implemented for any type
implementing
RngCoreandCryptoRng. - Digest
- Trait representing a generic digest (hash) algorithm.
- EcPoint
- Trait representing an Elliptic Curve (EC) point.
- EcScalar
- Trait representing an Elliptic Curve (EC) scalar value.
- Kdf
- Trait representing a Key Derivation Function (KDF).
- PbKdf
- Trait representing a Password-Based Key Derivation Function (PBKDF).
- Public
Key - Trait representing a public key.
- RngCore
- The core of a random number generator.
- Secret
Key - Trait representing a secret key.
- Signing
Secret Key - Trait representing a signing secret key.
Functions§
Type Aliases§
- Aead
Nonce - Canonical representation of a $name.
- Aead
Nonce Ref - Reference to a canonical $name.
- AeadTag
- Canonical representation of a $name.
- Aead
TagRef - Reference to a canonical $name.
- Canon
Aead Key - Canonical representation of a $name.
- Canon
Aead KeyRef - Reference to a canonical $name.
- Canon
EcPoint - Canonical representation of a $name.
- Canon
EcPoint Ref - Reference to a canonical $name.
- Canon
EcScalar - Canonical representation of a $name.
- Canon
EcScalar Ref - Reference to a canonical $name.
- Canon
PkcPublic Key - Canonical representation of a $name.
- Canon
PkcPublic KeyRef - Reference to a canonical $name.
- Canon
PkcSecret Key - Canonical representation of a $name.
- Canon
PkcSecret KeyRef - Reference to a canonical $name.
- Canon
PkcShared Secret - Canonical representation of a $name.
- Canon
PkcShared Secret Ref - Reference to a canonical $name.
- Canon
PkcSignature - Canonical representation of a $name.
- Canon
PkcSignature Ref - Reference to a canonical $name.
- Canon
Uint320 - Canonical representation of a $name.
- Canon
Uint320 Ref - Reference to a canonical $name.
- Hash
- Canonical representation of a $name.
- HashRef
- Reference to a canonical $name.
- Hmac
Hash - Canonical representation of a $name.
- Hmac
Hash Ref - Reference to a canonical $name.