spideroak-crypto 0.8.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 hybrid_array::{Array, ArraySize};

/// 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: ArraySize;
}

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