Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: net/data/verify_signed_data_unittest/rsa-pss-sha256-mgf1-sha512-salt33.pem

Issue 1209283004: Implement VerifySignedData() for ECDSA, RSA PKCS#1 and RSA PSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@parse_pss
Patch Set: nop? Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 This test exercises using a different hash function parameter to the mask gen
2 function (SHA-256 for the hash, but SHA-512 for the MGF1 hash).
3
4 This test data was constructed manually by calling signing functions from
5 OpenSSL code.
6
7 It constructs an RSASSA-PSS signature using:
8 * Key with modulus 1024 bit
9 * Salt length 33 bytes
10 * Digest function of SHA-256
11 * Mask gen function of MGF1 with SHA-512
12
13 -----BEGIN PUBLIC KEY-----
14 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClbkoOcBAXWJpRh9x+qEHRVvLsDjatUqRN/rH
15 mH3rZkdjFEFb/7bFitMDyg6EqiKOU3/Umq3KRy7MHzqv84LHf1c2VCAltWyuLbfXWce9jd8CSHL
16 I8Jwpw4lmOb/idGfEFrMLT8Ms18pKA4Thrb2TE7yLh4fINDOjP+yJJvZohNwIDAQAB
17 -----END PUBLIC KEY-----
18
19 -----BEGIN ALGORITHM-----
20 MEEGCSqGSIb3DQEBCjA0oA8wDQYJYIZIAWUDBAIBBQChHDAaBgkqhkiG9w0BAQgwDQYJYIZIAWU
21 DBAIDBQCiAwIBIQ==
22 -----END ALGORITHM-----
23
24 -----BEGIN DATA-----
25 VGVzdCBtZXNzYWdlIHRvIGJlIHNpZ25lZC4uLg==
26 -----END DATA-----
27
28 -----BEGIN SIGNATURE-----
29 WhvQdILm65Ooq7gn+WP7lsNr4eGKPgfeSVae+3phz7DA/Nrv9QLiWAYbK9moPfZFQR23u9nXiqp
30 g2TndvlqPgLaAEy8vNXs9rLiaZAzgNJZrkkczFMguoTcMOqKGtsxwHDardcCwtyN6otZD3Kny1+
31 dXbWH3yqwIu0SuvFlYdGs=
32 -----END SIGNATURE-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698