Platform check in FIPS_mode_set.
This commit is contained in:
parent
319e19db9c
commit
d7dc9a7ce3
1 changed files with 10 additions and 0 deletions
|
@ -255,6 +255,16 @@ int FIPS_mode_set(int onoff)
|
|||
goto end;
|
||||
}
|
||||
|
||||
#ifdef OPENSSL_IA32_SSE2
|
||||
if ((OPENSSL_ia32cap & (1<<25|1<<26)) != (1<<25|1<<26))
|
||||
{
|
||||
FIPSerr(FIPS_F_FIPS_MODE_SET,FIPS_R_UNSUPPORTED_PLATFORM);
|
||||
fips_selftest_fail = 1;
|
||||
ret = 0;
|
||||
goto end;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(fips_signature_witness() != FIPS_signature)
|
||||
{
|
||||
FIPSerr(FIPS_F_FIPS_MODE_SET,FIPS_R_CONTRADICTING_EVIDENCE);
|
||||
|
|
Loading…
Reference in a new issue