Module self_tests

Source
Available on crate feature self_tests only.
Expand description

This module defines self-tests. Running tests in this module (i.e., calling self_tests()) at runtime can help with FIPS 140-3 compliance.

Functionsยง

ffdhe_crypto_algo_self_test
Known answer Cryptographic Algorithm Self Test (CAST) for FFDHE. This is required by FIPS 140-3 IG D.F:
self_tests
Run all the self_tests. If any test fails, this function will panic.
tls12_sha256_prf_test_1tls12
TLS 1.2 SHA256 PRF test
tls12_sha256_prf_test_2tls12
TLS 1.2 SHA256 PRF test with "extended master secret"
tls12_sha384_prf_test_1tls12
TLS 1.2 SHA384 PRF test
tls12_sha384_prf_test_2tls12
TLS 1.2 SHA384 PRF test with "extended master secret"
tls13_kdf_test_case_1
TLS 1.3 KDF test case 1.
tls13_kdf_test_case_2
TLS 1.3 KDF test case 2.
tls13_kdf_test_case_3
TLS 1.3 KDF test case 3.