gmp: Support of SHA-3 RSA signatures
[strongswan.git] / src / libstrongswan / tests / suites / test_hasher.c
index 067abf0..de285ca 100644 (file)
@@ -87,29 +87,33 @@ typedef struct {
 }hasher_sig_scheme_t;
 
 static hasher_sig_scheme_t sig_schemes[] = {
-       { SIGN_UNKNOWN,               HASH_UNKNOWN  },
-       { SIGN_RSA_EMSA_PKCS1_NULL,   HASH_UNKNOWN  },
-       { SIGN_RSA_EMSA_PKCS1_MD5,    HASH_MD5      },
-       { SIGN_RSA_EMSA_PKCS1_SHA1,   HASH_SHA1     },
-       { SIGN_RSA_EMSA_PKCS1_SHA224, HASH_SHA224   },
-       { SIGN_RSA_EMSA_PKCS1_SHA256, HASH_SHA256   },
-       { SIGN_RSA_EMSA_PKCS1_SHA384, HASH_SHA384   },
-       { SIGN_RSA_EMSA_PKCS1_SHA512, HASH_SHA512   },
-       { SIGN_ECDSA_WITH_SHA1_DER,   HASH_SHA1     },
-       { SIGN_ECDSA_WITH_SHA256_DER, HASH_SHA256   },
-       { SIGN_ECDSA_WITH_SHA384_DER, HASH_SHA384   },
-       { SIGN_ECDSA_WITH_SHA512_DER, HASH_SHA512   },
-       { SIGN_ECDSA_WITH_NULL,       HASH_UNKNOWN  },
-       { SIGN_ECDSA_256,             HASH_SHA256   },
-       { SIGN_ECDSA_384,             HASH_SHA384   },
-       { SIGN_ECDSA_521,             HASH_SHA512   },
-       { SIGN_BLISS_WITH_SHA2_256,   HASH_SHA256   },
-       { SIGN_BLISS_WITH_SHA2_384,   HASH_SHA384   },
-       { SIGN_BLISS_WITH_SHA2_512,   HASH_SHA512   },
-       { SIGN_BLISS_WITH_SHA3_256,   HASH_SHA3_256 },
-       { SIGN_BLISS_WITH_SHA3_384,   HASH_SHA3_384 },
-       { SIGN_BLISS_WITH_SHA3_512,   HASH_SHA3_512 },
-       { 30,                                             HASH_UNKNOWN  }
+       { SIGN_UNKNOWN,               HASH_UNKNOWN    },
+       { SIGN_RSA_EMSA_PKCS1_NULL,   HASH_UNKNOWN    },
+       { SIGN_RSA_EMSA_PKCS1_MD5,    HASH_MD5        },
+       { SIGN_RSA_EMSA_PKCS1_SHA1,   HASH_SHA1       },
+       { SIGN_RSA_EMSA_PKCS1_SHA2_224, HASH_SHA224   },
+       { SIGN_RSA_EMSA_PKCS1_SHA2_256, HASH_SHA256   },
+       { SIGN_RSA_EMSA_PKCS1_SHA2_384, HASH_SHA384   },
+       { SIGN_RSA_EMSA_PKCS1_SHA2_512, HASH_SHA512   },
+       { SIGN_RSA_EMSA_PKCS1_SHA3_224, HASH_SHA3_224 },
+       { SIGN_RSA_EMSA_PKCS1_SHA3_256, HASH_SHA3_256 },
+       { SIGN_RSA_EMSA_PKCS1_SHA3_384, HASH_SHA3_384 },
+       { SIGN_RSA_EMSA_PKCS1_SHA3_512, HASH_SHA3_512 },
+       { SIGN_ECDSA_WITH_SHA1_DER,   HASH_SHA1       },
+       { SIGN_ECDSA_WITH_SHA256_DER, HASH_SHA256     },
+       { SIGN_ECDSA_WITH_SHA384_DER, HASH_SHA384     },
+       { SIGN_ECDSA_WITH_SHA512_DER, HASH_SHA512     },
+       { SIGN_ECDSA_WITH_NULL,       HASH_UNKNOWN    },
+       { SIGN_ECDSA_256,             HASH_SHA256     },
+       { SIGN_ECDSA_384,             HASH_SHA384     },
+       { SIGN_ECDSA_521,             HASH_SHA512     },
+       { SIGN_BLISS_WITH_SHA2_256,   HASH_SHA256     },
+       { SIGN_BLISS_WITH_SHA2_384,   HASH_SHA384     },
+       { SIGN_BLISS_WITH_SHA2_512,   HASH_SHA512     },
+       { SIGN_BLISS_WITH_SHA3_256,   HASH_SHA3_256   },
+       { SIGN_BLISS_WITH_SHA3_384,   HASH_SHA3_384   },
+       { SIGN_BLISS_WITH_SHA3_512,   HASH_SHA3_512   },
+       { 30,                                             HASH_UNKNOWN    }
 };
 
 START_TEST(test_hasher_from_sig_scheme)