Add support for Dual EC DRBG from SP800-90. Include updates to algorithm
tests and POST code.
diff --git a/fips/fips_test_suite.c b/fips/fips_test_suite.c
index 6046ae0..4230c05 100644
--- a/fips/fips_test_suite.c
+++ b/fips/fips_test_suite.c
@@ -698,6 +698,9 @@
{NID_aes_256_xts, "AES-256-XTS"},
{NID_des_ede3_cbc, "DES-EDE3-CBC"},
{NID_des_ede3_ecb, "DES-EDE3-ECB"},
+ {NID_X9_62_prime256v1, "P-256"},
+ {NID_secp384r1, "P-384"},
+ {NID_secp521r1, "P-521"},
{0, NULL}
};
@@ -788,6 +791,13 @@
sprintf(asctmp, "%s DF", lookup_id(subid));
exstr = asctmp;
}
+ else if (subid >> 16)
+ {
+ sprintf(asctmp, "%s %s",
+ lookup_id(subid >> 16),
+ lookup_id(subid & 0xFFFF));
+ exstr = asctmp;
+ }
else
exstr = lookup_id(subid);
break;