Skip to main content

assert_module_approves

Function assert_module_approves 

Source
pub fn assert_module_approves(r: &Resolved) -> Result<(), CryptoError>
Expand description

Refuses with CryptoError::NotFips unless the module is in FIPS mode, with CryptoError::PolicyEmpty naming the first family r leaves empty, and otherwise unless every algorithm r names, each protocol version included, is Approved for the running module. Fails on the first cell that is not Approved; AlgorithmTested is not. It refuses every profile today, on both lines: no module’s evidence approves TLS 1.3 or TLS 1.2 (decision 0019).