summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-05 10:21:54 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-05 10:22:18 +0200
commit66d7bc420dece151b462b21d6bcd8c1ef53660b5 (patch)
tree0bcae78bd3c1077fd60abedca9b52ebf9d1d7318
parent35233f57c4b5c6b23c6ee245f08148818e11952c (diff)
downloadgnutls-66d7bc420dece151b462b21d6bcd8c1ef53660b5.tar.gz
tests: enhanced OID tests with OIDs for RSA-PSS
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--tests/oids.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/oids.c b/tests/oids.c
index 2afc0a6379..1e997f954e 100644
--- a/tests/oids.c
+++ b/tests/oids.c
@@ -58,6 +58,12 @@ void doit(void)
SELF_TEST_SIG(GNUTLS_SIGN_RSA_SHA1);
SELF_TEST_SIG(GNUTLS_SIGN_RSA_SHA256);
+ /* RSA-PSS uses a single OID which is independent
+ * of the signature parameters, such as the digest.
+ * As such we cannot test all variants.
+ */
+ SELF_TEST_SIG(GNUTLS_SIGN_RSA_PSS_SHA256);
+
SELF_TEST_SIG(GNUTLS_SIGN_ECDSA_SHA1);
SELF_TEST_SIG(GNUTLS_SIGN_ECDSA_SHA256);
SELF_TEST_SIG(GNUTLS_SIGN_ECDSA_SHA512);
@@ -65,6 +71,7 @@ void doit(void)
SELF_TEST_PK(GNUTLS_PK_RSA);
SELF_TEST_PK(GNUTLS_PK_DSA);
SELF_TEST_PK(GNUTLS_PK_EC);
+ SELF_TEST_PK(GNUTLS_PK_RSA_PSS);
SELF_TEST_DIG(GNUTLS_DIG_MD5);
SELF_TEST_DIG(GNUTLS_DIG_SHA1);