| Index: net/data/verify_signed_data_unittest/rsa-pss-sha256-salt10-using-pss-key-with-wrong-params.pem
|
| diff --git a/net/data/verify_signed_data_unittest/rsa-pss-sha256-salt10-using-pss-key-with-wrong-params.pem b/net/data/verify_signed_data_unittest/rsa-pss-sha256-salt10-using-pss-key-with-wrong-params.pem
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..646ac1fbe9aff65303a15840a5a860a0f17dc74e
|
| --- /dev/null
|
| +++ b/net/data/verify_signed_data_unittest/rsa-pss-sha256-salt10-using-pss-key-with-wrong-params.pem
|
| @@ -0,0 +1,74 @@
|
| +This is the same test as rsa-pss-sha256-salt10-using-pss-key-with-params.pem
|
| +except the hash in the PSS key's parameters has been changed from SHA-256 to
|
| +SHA-384.
|
| +
|
| +
|
| +
|
| +-----BEGIN PUBLIC KEY-----
|
| +MIHRMEEGCSqGSIb3DQEBCjA0oA8wDQYJYIZIAWUDBAICBQChHDAaBgkqhkiG9w0BAQgwDQYJYIZ
|
| +IAWUDBAIBBQCiAwIBCgOBiwAwgYcCgYEAvkmbXn8GyD+gKT4xRlyOtrWK+SC65Sp7W5v+t6py2x
|
| +JkES6z/UMdMaKn5QlBVmkpSUoOiR7VYTkYtLUbDR+5d4Oyas99DzhM+zX00oJPXdOAYjomvxgLY
|
| +5YcYZ3NsgyuQG8i9uJ2yAo3JZSQz+tywacahPGEbTMId7o+MQHsnHsCARE=
|
| +-----END PUBLIC KEY-----
|
| +
|
| +$ openssl asn1parse -i < [PUBLIC KEY]
|
| + 0:d=0 hl=3 l= 209 cons: SEQUENCE
|
| + 3:d=1 hl=2 l= 65 cons: SEQUENCE
|
| + 5:d=2 hl=2 l= 9 prim: OBJECT :rsassaPss
|
| + 16:d=2 hl=2 l= 52 cons: SEQUENCE
|
| + 18:d=3 hl=2 l= 15 cons: cont [ 0 ]
|
| + 20:d=4 hl=2 l= 13 cons: SEQUENCE
|
| + 22:d=5 hl=2 l= 9 prim: OBJECT :sha384
|
| + 33:d=5 hl=2 l= 0 prim: NULL
|
| + 35:d=3 hl=2 l= 28 cons: cont [ 1 ]
|
| + 37:d=4 hl=2 l= 26 cons: SEQUENCE
|
| + 39:d=5 hl=2 l= 9 prim: OBJECT :mgf1
|
| + 50:d=5 hl=2 l= 13 cons: SEQUENCE
|
| + 52:d=6 hl=2 l= 9 prim: OBJECT :sha256
|
| + 63:d=6 hl=2 l= 0 prim: NULL
|
| + 65:d=3 hl=2 l= 3 cons: cont [ 2 ]
|
| + 67:d=4 hl=2 l= 1 prim: INTEGER :0A
|
| + 70:d=1 hl=3 l= 139 prim: BIT STRING
|
| +
|
| +
|
| +
|
| +-----BEGIN ALGORITHM-----
|
| +MEEGCSqGSIb3DQEBCjA0oA8wDQYJYIZIAWUDBAIBBQChHDAaBgkqhkiG9w0BAQgwDQYJYIZIAWU
|
| +DBAIBBQCiAwIBCg==
|
| +-----END ALGORITHM-----
|
| +
|
| +$ openssl asn1parse -i < [ALGORITHM]
|
| + 0:d=0 hl=2 l= 65 cons: SEQUENCE
|
| + 2:d=1 hl=2 l= 9 prim: OBJECT :rsassaPss
|
| + 13:d=1 hl=2 l= 52 cons: SEQUENCE
|
| + 15:d=2 hl=2 l= 15 cons: cont [ 0 ]
|
| + 17:d=3 hl=2 l= 13 cons: SEQUENCE
|
| + 19:d=4 hl=2 l= 9 prim: OBJECT :sha256
|
| + 30:d=4 hl=2 l= 0 prim: NULL
|
| + 32:d=2 hl=2 l= 28 cons: cont [ 1 ]
|
| + 34:d=3 hl=2 l= 26 cons: SEQUENCE
|
| + 36:d=4 hl=2 l= 9 prim: OBJECT :mgf1
|
| + 47:d=4 hl=2 l= 13 cons: SEQUENCE
|
| + 49:d=5 hl=2 l= 9 prim: OBJECT :sha256
|
| + 60:d=5 hl=2 l= 0 prim: NULL
|
| + 62:d=2 hl=2 l= 3 cons: cont [ 2 ]
|
| + 64:d=3 hl=2 l= 1 prim: INTEGER :0A
|
| +
|
| +
|
| +
|
| +-----BEGIN DATA-----
|
| +x/UnD8pyX5vRn1GajXzKPMXAeQJAKfO65RD5sCFA/iOJCOT2wY8HqJxofIaEZpsfHbK6+SUaPIK
|
| +frMtJMIThbsnijViGgHSl1iIWZ91uUo0W/iyfPbTPr2xNzoyEOa84zqqqnOLsrnvI9KWlXjv5bf
|
| +nNV1xPnLMnlRuM3+QIcWg=
|
| +-----END DATA-----
|
| +
|
| +
|
| +
|
| +-----BEGIN SIGNATURE-----
|
| +A4GBABHhafL9QLB2Qbl2iiqxmWX7bCfxD88DI/zG0S608cBrMw3aoepQRAevop3p6+A3T+nR59D
|
| +/vV/Bzzo0RuQUVBXSqyT3ibNGTFxDola7wdaSz38EgB2sW7QBpKA6t9VyioYMGeGk3Hl8pULIID
|
| +zsLmAesMUfVn8u2gIrC5693u76
|
| +-----END SIGNATURE-----
|
| +
|
| +$ openssl asn1parse -i < [SIGNATURE]
|
| + 0:d=0 hl=3 l= 129 prim: BIT STRING
|
|
|