Struct encrypted_sled::EncryptionCipher [−][src]
pub struct EncryptionCipher<C> where
C: StreamCipher + NewCipher, { /* fields omitted */ }Implementations
pub fn new_from_slices(
key: &[u8],
nonce: &[u8],
mode: EncryptionMode
) -> Result<Self, InvalidLength>
Trait Implementations
Auto Trait Implementations
impl<C> RefUnwindSafe for EncryptionCipher<C> where
C: RefUnwindSafe,
<<C as NewCipher>::KeySize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<<C as NewCipher>::NonceSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<C> Send for EncryptionCipher<C> where
C: Send,
impl<C> Sync for EncryptionCipher<C> where
C: Sync,
impl<C> Unpin for EncryptionCipher<C> where
C: Unpin,
<<C as NewCipher>::KeySize as ArrayLength<u8>>::ArrayType: Unpin,
<<C as NewCipher>::NonceSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<C> UnwindSafe for EncryptionCipher<C> where
C: UnwindSafe,
<<C as NewCipher>::KeySize as ArrayLength<u8>>::ArrayType: UnwindSafe,
<<C as NewCipher>::NonceSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more