Skip to main content

Module crypto

Module crypto 

Source
Expand description

Cryptographic structures and functions.

Structs§

Ed25519PrivateKey
A structure containing information about an Ed25519 private key.
HashValue
Wrapper for the value of a hash digest.
KeyId
Wrapper type for public key’s ID.
PublicKey
A structure containing information about a public key.
Signature
A structure that contains a Signature and associated data for verifying it.
SignatureValue
Wrapper type for the value of a cryptographic signature.

Enums§

HashAlgorithm
The available hash algorithms.
KeyType
Types of public keys.
SignatureScheme
Cryptographic signature schemes.

Traits§

PrivateKey
A structure containing information about a private key.

Functions§

calculate_hashes_from_reader
Calculate the size and hash digest from a given AsyncRead.
calculate_hashes_from_slice
Calculate the size and hash digest from a given AsyncRead.
retain_supported_hashes
Given a map of hash algorithms and their values and retains the supported hashes. Returns an Err if there is no match.