ECDHDecrypt

Trait ECDHDecrypt 

Source
pub trait ECDHDecrypt {
    // Required method
    fn decrypt(&self, ciphertext: &[u8], private_key: &[u8]) -> Result<Vec<u8>>;
}
Expand description

Trait for ECDH decryption operations.

This trait allows different ECDH implementations to be used polymorphically. Currently not used in the public API but available for extension.

Required Methods§

Source

fn decrypt(&self, ciphertext: &[u8], private_key: &[u8]) -> Result<Vec<u8>>

Decrypt ciphertext using a private key.

Implementors§