pub struct Verifier<'a> { /* private fields */ }
Expand description

A type which can be used to verify the integrity and authenticity of data given the signature.

Implementations

A type which verifies cryptographic signatures of data.

Creates a new Verifier.

This cannot be used with Ed25519 or Ed448 keys. Please refer to Verifier::new_without_digest.

OpenSSL documentation at EVP_DigestVerifyInit.

Creates a new Verifier without a digest.

This is the only way to create a Verifier for Ed25519 or Ed448 keys.

OpenSSL documentation at EVP_DigestVerifyInit.

Returns the RSA padding mode in use.

This is only useful for RSA keys.

This corresponds to EVP_PKEY_CTX_get_rsa_padding.

Sets the RSA padding mode.

This is only useful for RSA keys.

This corresponds to EVP_PKEY_CTX_set_rsa_padding.

Sets the RSA PSS salt length.

This is only useful for RSA keys.

This corresponds to EVP_PKEY_CTX_set_rsa_pss_saltlen.

Sets the RSA MGF1 algorithm.

This is only useful for RSA keys.

This corresponds to EVP_PKEY_CTX_set_rsa_mgf1_md.

Feeds more data into the Verifier.

Please note that PureEdDSA (Ed25519 and Ed448 keys) do not support streaming. Use Verifier::verify_oneshot instead.

OpenSSL documentation at EVP_DigestUpdate.

Determines if the data fed into the Verifier matches the provided signature.

OpenSSL documentation at EVP_DigestVerifyFinal.

Determines if the data given in buf matches the provided signature.

OpenSSL documentation at EVP_DigestVerify.

Trait Implementations

Executes the destructor for this type. Read more
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
Like write, except that it writes from a slice of buffers. Read more
🔬This is a nightly-only experimental API. (can_vector)
Determines if this Writer has an efficient write_vectored implementation. Read more
Attempts to write an entire buffer into this writer. Read more
🔬This is a nightly-only experimental API. (write_all_vectored)
Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Creates a “by reference” adapter for this instance of Write. Read more

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.