Trait OreEncrypt

Source
pub trait OreEncrypt<T: OreCipher> {
    type LeftOutput: OreOutput;
    type FullOutput: OreOutput;

    // Required methods
    fn encrypt_left(&self, cipher: &T) -> Result<Self::LeftOutput, OreError>;
    fn encrypt(&self, input: &T) -> Result<Self::FullOutput, OreError>;
}

Required Associated Types§

Required Methods§

Source

fn encrypt_left(&self, cipher: &T) -> Result<Self::LeftOutput, OreError>

Source

fn encrypt(&self, input: &T) -> Result<Self::FullOutput, OreError>

Implementations on Foreign Types§

Source§

impl<T: OreCipher> OreEncrypt<T> for f64

Source§

type LeftOutput = Left<T, 8>

Source§

type FullOutput = CipherText<T, 8>

Source§

fn encrypt_left(&self, cipher: &T) -> Result<Self::LeftOutput, OreError>

Source§

fn encrypt(&self, cipher: &T) -> Result<Self::FullOutput, OreError>

Source§

impl<T: OreCipher> OreEncrypt<T> for u32

Source§

type LeftOutput = Left<T, 4>

Source§

type FullOutput = CipherText<T, 4>

Source§

fn encrypt_left(&self, cipher: &T) -> Result<Self::LeftOutput, OreError>

Source§

fn encrypt(&self, cipher: &T) -> Result<Self::FullOutput, OreError>

Source§

impl<T: OreCipher> OreEncrypt<T> for u64

Implementors§