Struct libes::Ecies

source ·
pub struct Ecies<K, E, A> { /* private fields */ }
Expand description

Generic ECIES instance

Implementations

Create a new ECIES<K, E, A> instance given a recipient_public_key compatible with K

Encrypt plaintext using the ECIES-MAC variant

Decrypt ciphertext using the ECIES-MAC variant, given the recipient_secret_key it was encrypted for

Encrypt plaintext using the ECIES-AEAD variant

Decrypt ciphertext using the ECIES-AEAD variant, given the recipient_secret_key it was encrypted for

Encrypt plaintext using the ECIES-SYN variant

Decrypt ciphertext using the ECIES-SYN variant, given the recipient_secret_key it was encrypted for

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.

Should always be Self
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.