pub struct ProviderIdentity {
pub name: &'static str,
pub fips_mode: bool,
pub module_cert: Option<&'static str>,
}Expand description
Identity of the active CryptoProvider — surfaced into receipts so an
offline auditor can see which module produced a signature.
IMPORTANT: fips_mode / module_cert are a producer claim, not a
validated attestation. The default (dalek) build reports fips_mode = false; a FIPS build (S05) reports true and a build-configured cert
string. Nothing here measures or proves the running module — see ADR-0027.
Fields§
§name: &'static strStable provider name, e.g. "dalek" or "aws-lc-fips".
fips_mode: boolWhether this provider is the FIPS-mode adapter. false on the default
build. A producer claim only (ADR-0027).
module_cert: Option<&'static str>CMVP certificate reference for the validated module, when known
(build-configured). None on the default build. A producer claim only;
cellos does not validate the cert at runtime.
Trait Implementations§
Source§impl Clone for ProviderIdentity
impl Clone for ProviderIdentity
Source§fn clone(&self) -> ProviderIdentity
fn clone(&self) -> ProviderIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderIdentity
impl Debug for ProviderIdentity
impl Eq for ProviderIdentity
Source§impl PartialEq for ProviderIdentity
impl PartialEq for ProviderIdentity
Source§fn eq(&self, other: &ProviderIdentity) -> bool
fn eq(&self, other: &ProviderIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProviderIdentity
Auto Trait Implementations§
impl Freeze for ProviderIdentity
impl RefUnwindSafe for ProviderIdentity
impl Send for ProviderIdentity
impl Sync for ProviderIdentity
impl Unpin for ProviderIdentity
impl UnsafeUnpin for ProviderIdentity
impl UnwindSafe for ProviderIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more