Check selftest status in all crypto operations and abort with

a fatal error on failure.
This commit is contained in:
Dr. Stephen Henson
2007-07-02 11:22:50 +00:00
parent a197212e0f
commit ffc35e73b4
6 changed files with 14 additions and 0 deletions

View File

@@ -377,6 +377,7 @@ static int dsa_do_verify(const unsigned char *dgst, FIPS_DSA_SIZE_T dgst_len, DS
static int dsa_init(DSA *dsa)
{
FIPS_selftest_check();
dsa->flags|=DSA_FLAG_CACHE_MONT_P;
return(1);
}