Expand description

Cryptographic structures and functions.

Structs

Wrapper for the value of a hash digest.

Wrapper type for public key’s ID.

A structure containing information about a private key.

A structure containing information about a public key.

A structure that contains a Signature and associated data for verifying it.

Wrapper type for the value of a cryptographic signature.

Enums

The available hash algorithms.

Types of public keys.

Cryptographic signature schemes.

Functions

Calculate the size and hash digest from a given Read.

Given a map of hash algorithms and their values, get the prefered algorithm and the hash calculated by it. Returns an Err if there is no match.