Struct openssl::md::Md

source ·
pub struct Md(_);
Expand description

A message digest algorithm.

Implementations§

Returns the Md corresponding to an Nid.

This corresponds to EVP_get_digestbynid.

Fetches an Md object corresponding to the specified algorithm name and properties.

Requires OpenSSL 3.0.0 or newer.

This corresponds to EVP_MD_fetch.

Methods from Deref<Target = MdRef>§

Returns the block size of the digest in bytes.

This corresponds to EVP_MD_block_size.

Returns the size of the digest in bytes.

This corresponds to EVP_MD_size.

Returns the Nid of the digest.

This corresponds to EVP_MD_type.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Executes the destructor for this type. Read more
The raw C type.
The type representing a reference to this type.
Constructs an instance of this type from its raw type.
Returns a raw pointer to the wrapped value.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.