Add fips_mode check for kernel.

Akso add a separate function so we can detect that kernel and crypto
lib is in different FIPS state (only for testing).
This commit is contained in:
Milan Broz
2025-11-13 21:56:05 +01:00
parent 7fba92260a
commit ccc0c69cd7
3 changed files with 24 additions and 1 deletions

View File

@@ -408,5 +408,5 @@ int crypt_backend_memeq(const void *m1, const void *m2, size_t n)
bool crypt_fips_mode(void)
{
return false;
return crypt_fips_mode_kernel();
}