Trait oasis_core_runtime::common::crypto::mrae::deoxysii::Opener

source ·
pub trait Opener: Send + Sync {
    // Required method
    fn box_open(
        &self,
        nonce: &[u8; 15],
        ciphertext: Vec<u8>,
        additional_data: Vec<u8>,
        peers_public_key: &PublicKey,
    ) -> Result<Vec<u8>>;
}
Expand description

An abstract Deoxys-II-256-128 box opener.

Required Methods§

source

fn box_open( &self, nonce: &[u8; 15], ciphertext: Vec<u8>, additional_data: Vec<u8>, peers_public_key: &PublicKey, ) -> Result<Vec<u8>>

Unboxes (“opens”) the provided additional data and ciphertext.

Implementors§