Index: net/data/verify_signed_data_unittest/rsa-pss-sha256-mgf1-sha512-salt33.pem |
diff --git a/net/data/verify_signed_data_unittest/rsa-pss-sha256-mgf1-sha512-salt33.pem b/net/data/verify_signed_data_unittest/rsa-pss-sha256-mgf1-sha512-salt33.pem |
new file mode 100644 |
index 0000000000000000000000000000000000000000..18facd05461ee9d194f82303c45143684add6f37 |
--- /dev/null |
+++ b/net/data/verify_signed_data_unittest/rsa-pss-sha256-mgf1-sha512-salt33.pem |
@@ -0,0 +1,32 @@ |
+This test exercises using a different hash function parameter to the mask gen |
+function (SHA-256 for the hash, but SHA-512 for the MGF1 hash). |
+ |
+This test data was constructed manually by calling signing functions from |
+OpenSSL code. |
+ |
+It constructs an RSASSA-PSS signature using: |
+ * Key with modulus 1024 bit |
+ * Salt length 33 bytes |
+ * Digest function of SHA-256 |
+ * Mask gen function of MGF1 with SHA-512 |
+ |
+-----BEGIN PUBLIC KEY----- |
+MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClbkoOcBAXWJpRh9x+qEHRVvLsDjatUqRN/rH |
+mH3rZkdjFEFb/7bFitMDyg6EqiKOU3/Umq3KRy7MHzqv84LHf1c2VCAltWyuLbfXWce9jd8CSHL |
+I8Jwpw4lmOb/idGfEFrMLT8Ms18pKA4Thrb2TE7yLh4fINDOjP+yJJvZohNwIDAQAB |
+-----END PUBLIC KEY----- |
+ |
+-----BEGIN ALGORITHM----- |
+MEEGCSqGSIb3DQEBCjA0oA8wDQYJYIZIAWUDBAIBBQChHDAaBgkqhkiG9w0BAQgwDQYJYIZIAWU |
+DBAIDBQCiAwIBIQ== |
+-----END ALGORITHM----- |
+ |
+-----BEGIN DATA----- |
+VGVzdCBtZXNzYWdlIHRvIGJlIHNpZ25lZC4uLg== |
+-----END DATA----- |
+ |
+-----BEGIN SIGNATURE----- |
+WhvQdILm65Ooq7gn+WP7lsNr4eGKPgfeSVae+3phz7DA/Nrv9QLiWAYbK9moPfZFQR23u9nXiqp |
+g2TndvlqPgLaAEy8vNXs9rLiaZAzgNJZrkkczFMguoTcMOqKGtsxwHDardcCwtyN6otZD3Kny1+ |
+dXbWH3yqwIu0SuvFlYdGs= |
+-----END SIGNATURE----- |