1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Block-cipher contracts.
use crateCipherDirection;
use Error;
/// Processes individual blocks using an initialized cipher.
///
/// This interface does not supply padding, chaining or authentication.
/// Import this trait to access an engine's block-processing methods.
/// Timing guarantees belong to the implementation, not this trait.
/// Installs parameters and selects the direction of a block cipher.
///
/// `P` describes the engine's accepted parameters. It may be a key container
/// implementing [`crate::KeyParams`] or a richer, algorithm-specific type.
/// Initialization and processing are separate traits so generic callers can
/// state exactly which capabilities they need.