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
//! [`KeyProvider`] trait for long-lived ML-KEM keys.
use async_trait;
use crate;
use crateResult;
use crateKeyId;
/// Public key material returned by a provider.
pub type PublicKeyMaterial = PublicKey;
/// Supplies public keys for encryption and private-key operations for decryption.
///
/// Storage code never observes where private keys live. Implementations must
/// keep private key material outside object storage. A provider loaded from a
/// recipient file can encrypt; decapsulation fails until the private key is
/// loaded on the machine that decrypts.