diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-04-12 17:41:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-04-12 17:41:53 +0000 |
commit | 4bd1e895faa35a8d4810402fe3ba9d07c1166908 (patch) | |
tree | 076044a96d20e6b7a743646ecdf3bd3c5f404960 /fips/dsa | |
parent | 9b08dbe903397b1545d3b04c264ec745f2fdeb57 (diff) |
Update fips_pkey_signature_test: use fixed string if supplies tbs is
NULL. Always allocate signature buffer.
Update ECDSA selftest to use fips_pkey_signature_test. Add copyright notice
to file.
Diffstat (limited to 'fips/dsa')
-rw-r--r-- | fips/dsa/fips_dsa_selftest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fips/dsa/fips_dsa_selftest.c b/fips/dsa/fips_dsa_selftest.c index 9ddfa790cd..9646ae93da 100644 --- a/fips/dsa/fips_dsa_selftest.c +++ b/fips/dsa/fips_dsa_selftest.c @@ -144,8 +144,6 @@ static const unsigned char dsa_test_2048_priv_key[] = { 0xec,0x55,0xf6,0xcc }; -static const unsigned char str1[]="12345678901234567890"; - void FIPS_corrupt_dsa() { ++dsa_test_2048_q[0]; @@ -171,7 +169,7 @@ int FIPS_selftest_dsa() pk.type = EVP_PKEY_DSA; pk.pkey.dsa = dsa; - if (!fips_pkey_signature_test(&pk, str1, sizeof(str1) - 1, + if (!fips_pkey_signature_test(&pk, NULL, 0, NULL, 0, EVP_sha384(), 0, "DSA SHA384")) goto err; |