Struct openssl::derive::Deriver[][src]

pub struct Deriver<'a>(_, _);
Expand description

A type used to derive a shared secret between two keys.

Implementations

Creates a new Deriver using the provided private key.

This corresponds to EVP_PKEY_derive_init.

Sets the peer key used for secret derivation.

This corresponds to EVP_PKEY_derive_set_peer:

Returns the size of the shared secret.

It can be used to size the buffer passed to Deriver::derive.

This corresponds to EVP_PKEY_derive.

Derives a shared secret between the two keys, writing it into the buffer.

Returns the number of bytes written.

This corresponds to EVP_PKEY_derive.

A convenience function which derives a shared secret and returns it in a new buffer.

This simply wraps Deriver::len and Deriver::derive.

Trait Implementations

Executes the destructor for this type. 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

Performs the conversion.

Performs the conversion.

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.