core_crypto/e2e_identity/
mod.rs

1mod crypto;
2pub(crate) mod device_status;
3mod error;
4pub(crate) mod id;
5pub(crate) mod identity;
6mod pki_env;
7pub(crate) use crypto::E2eiSignatureKeypair;
8pub use pki_env::NewCrlDistributionPoints;
9pub(crate) use pki_env::restore_pki_env;
10#[cfg(not(test))]
11mod enrollment;
12#[cfg(test)]
13pub(crate) mod enrollment;
14pub mod types;
15
16pub use enrollment::E2eiEnrollment;
17pub use error::{Error, Result};
18
19type Json = Vec<u8>;
20
21#[derive(Debug, Clone, Copy, PartialEq, Eq)]
22/// Supporting struct for CRL registration result
23pub struct CrlRegistration {
24    /// Whether this CRL modifies the old CRL (i.e. has a different revocated cert list)
25    pub dirty: bool,
26    /// Optional expiration timestamp
27    pub expiration: Option<u64>,
28}
29
30/// A unique identifier for an enrollment a consumer can use to fetch it from the keystore when he
31/// wants to resume the process
32pub(crate) type EnrollmentHandle = Vec<u8>;