spideroak-crypto 0.7.0

SpiderOak's cryptography library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Operations on blocks.

#![forbid(unsafe_code)]

use generic_array::{ArrayLength, GenericArray};

/// Implemented by types that operate on blocks.
///
/// For example, block ciphers or the Merkle-Damgård
/// construction.
pub trait BlockSize {
    /// The size in bytes of the block.
    type BlockSize: ArrayLength;
}

/// A block.
pub type Block<S> = GenericArray<u8, <S as BlockSize>::BlockSize>;