summaryrefslogtreecommitdiffstats
path: root/fips/dsa
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-02-15 16:03:47 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-02-15 16:03:47 +0000
commit25c6542944821afc0693ca7027c769cc8775e90d (patch)
tree4c43805e7cbdfb46ee3807152e039d91bad64a09 /fips/dsa
parent14567b145199739656e2bf8dd34f5da71f785802 (diff)
Add non-FIPS algorithm blocking and selftest checking.
Diffstat (limited to 'fips/dsa')
-rw-r--r--fips/dsa/fips_dsa_sign.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fips/dsa/fips_dsa_sign.c b/fips/dsa/fips_dsa_sign.c
index ab28cdf7d1..16689309b9 100644
--- a/fips/dsa/fips_dsa_sign.c
+++ b/fips/dsa/fips_dsa_sign.c
@@ -84,6 +84,7 @@ DSA_SIG * FIPS_dsa_sign_ctx(DSA *dsa, EVP_MD_CTX *ctx)
DSA_SIG * FIPS_dsa_sign_digest(DSA *dsa, const unsigned char *dig, int dlen)
{
+ FIPS_selftest_check();
return dsa->meth->dsa_do_sign(dig, dlen, dsa);
}
@@ -101,6 +102,7 @@ int FIPS_dsa_verify_ctx(DSA *dsa, EVP_MD_CTX *ctx, DSA_SIG *s)
int FIPS_dsa_verify_digest(DSA *dsa,
const unsigned char *dig, int dlen, DSA_SIG *s)
{
+ FIPS_selftest_check();
return dsa->meth->dsa_do_verify(dig,dlen,s,dsa);
}