Index: net/data/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-length.pem |
diff --git a/net/data/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-length.pem b/net/data/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-length.pem |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b29cfb8c5b5257e9eb619c35fe8e36230df37b30 |
--- /dev/null |
+++ b/net/data/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-length.pem |
@@ -0,0 +1,25 @@ |
+Same test as rsa-pkcs1-sha1.pem except the length of the first SEQUENCE has |
+been increased by 2 (which makes it invalid). |
+ |
+-----BEGIN PUBLIC KEY----- |
+MIOfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClbkoOcBAXWJpRh9x+qEHRVvLsDjatUqRN/rH |
+mH3rZkdjFEFb/7bFitMDyg6EqiKOU3/Umq3KRy7MHzqv84LHf1c2VCAltWyuLbfXWce9jd8CSHL |
+I8Jwpw4lmOb/idGfEFrMLT8Ms18pKA4Thrb2TE7yLh4fINDOjP+yJJvZohNwIDAQAB |
+-----END PUBLIC KEY----- |
+ |
+-----BEGIN ALGORITHM----- |
+MA0GCSqGSIb3DQEBBQUA |
+-----END ALGORITHM----- |
+ |
+-----BEGIN DATA----- |
+zch9oiPXht87ReC7vHITJtHuKvgGzDFUdcxvDZxm4bYjcdRc4jkuGskoRMMQEC8Vag2NUsH0xAu |
+jqmUJV4bLdpdXplY7qVj+0LzJhOi1F6PV9RWyO4pB50qoZ2k/kN+wYabobfqu5kRywA5fIJRXKc |
+vr538Gznjgj0CY+6QfnWGTwDF+i2DUtghKy0LSnjgIo7w3LYXjMRcPy/fMctC3HClmSLOk0Q9BY |
+pXQgHqmJcqydE/Z6o/SI8QlNwKYKL0WvgJUbxMP0uM7k20mduCK7RtzMYt1CgFn0A== |
+-----END DATA----- |
+ |
+-----BEGIN SIGNATURE----- |
+a8OgZlaEKTCiR+MNWGS02Bkja6fGiWWGKtfbxOJK8o6Gu1MfAzWL5ft0d3xghvhQyu+JPw1vzC0 |
+MkewBNpO06gC4DNSarE7LX4kRr+U5raSo84I9HRPkctFJBUfGWcdhfz0kCH3bbytyCWFn/Al8qx |
+jppFj8tjTNzo7jWJTEhNc= |
+-----END SIGNATURE----- |