Function ffdhe_crypto_algo_self_test

Source
pub fn ffdhe_crypto_algo_self_test()
Available on crate feature self_tests only.
Expand description

Known answer Cryptographic Algorithm Self Test (CAST) for FFDHE. This is required by FIPS 140-3 IG D.F:

The CAST for a solution complying with path (1) above shall consist of verifying the correctness of the computation of the shared secret Z in at least two of the schemes listed in Section 6 of SP 800-56Arev3: one CAST for the Finite Field Cryptography (FFC) methods and one CAST for the Elliptic Curve Cryptography methods, if both the FFC and ECC methods are implemented; otherwise, just one. No separate CASTs are required to test Diffie-Hellman and MQV schemes.