Security/crypto: fix enable_fips test failure on rawhide
Currently, this test doesn't pass on Fedora-44 [1]. Fix it by using the same code as RHEL-10. Now the test passes on Fedora-44 [2] and also Fedora-42 [3].
[2] https://artifacts.osci.redhat.com/testing-farm/46a0507e-db18-489f-89da-948212057c15/
[3] https://artifacts.osci.redhat.com/testing-farm/f5d376b3-5fc5-4f3e-bff7-736dcb15b308/
Edited by Coiby Xu