Skip to main content

Crate relay_crypto

Crate relay_crypto 

Source

Re-exports§

pub use hex;

Modules§

crypto
encode
kid
prelude
record
rng

Structs§

Hkdf
Structure representing the HKDF, capable of HKDF-Expand and HKDF-Extract operations. Recommendations for the correct usage of the parameters can be found in the crate root.
OsRng
A random number generator that retrieves randomness from the operating system.
PublicKey
A Diffie-Hellman public key
SharedSecret
The result of a Diffie-Hellman key exchange.
Signature
Ed25519 signature.
SigningKey
ed25519 signing key which can be used to produce signatures.
StaticSecret
A Diffie-Hellman secret key that can be used to compute multiple SharedSecrets.
VerifyingKey
An ed25519 public key.

Traits§

CryptoRng
A marker trait used to indicate that an RngCore or BlockRngCore implementation is supposed to be cryptographically secure.
RngCore
The core of a random number generator.

Type Aliases§

Sha256
SHA-256 hasher.
SignatureError
Errors which may occur while processing signatures and keypairs.