[][src]Trait dsf_core::crypto::Encrypter

pub trait Encrypter {
    type Error;
    fn encrypt(
        &mut self,
        id: &Id,
        key: &SecretKey,
        data: &mut [u8]
    ) -> Result<(), Self::Error>; }

Encrypter trait, used to encrypt data for a given service

Associated Types

type Error

Loading content...

Required methods

fn encrypt(
    &mut self,
    id: &Id,
    key: &SecretKey,
    data: &mut [u8]
) -> Result<(), Self::Error>

Loading content...

Implementors

Loading content...