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

Side by Side Diff: net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecmqv-key.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: appease mscvc int --> bool cast Created 5 years, 4 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 uses the same test data as ecdsa-prime256v1-sha512.pem, HOWEVER the
2 algorithm OID for the public key has been changed from id-ecPublicKey
3 (1.2.840.10045.2.1) to id-ecMQV (1.3.132.1.13)
4
5 This test should fail because the public key's algorithm does not match that of
6 the signature algorithm.
7
8
9
10 -----BEGIN PUBLIC KEY-----
11 MFcwEQYFK4EEAQ0GCCqGSM49AwEHA0IABJywz2kwPa/HYdTkaHtOzwOebTSrlkr4CBDY1VikqNb
12 3LVEjOheIkgqG7gihlix576MX+3h54pfa0hRtuZX6HHg=
13 -----END PUBLIC KEY-----
14
15 $ openssl asn1parse -i < [PUBLIC KEY]
16 0:d=0 hl=2 l= 87 cons: SEQUENCE
17 2:d=1 hl=2 l= 17 cons: SEQUENCE
18 4:d=2 hl=2 l= 5 prim: OBJECT :1.3.132.1.13
19 11:d=2 hl=2 l= 8 prim: OBJECT :prime256v1
20 21:d=1 hl=2 l= 66 prim: BIT STRING
21
22
23
24 -----BEGIN ALGORITHM-----
25 MAoGCCqGSM49BAME
26 -----END ALGORITHM-----
27
28 $ openssl asn1parse -i < [ALGORITHM]
29 0:d=0 hl=2 l= 10 cons: SEQUENCE
30 2:d=1 hl=2 l= 8 prim: OBJECT :ecdsa-with-SHA512
31
32
33
34 -----BEGIN DATA-----
35 bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV
36 SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1
37 APuEMjWr/5jiQb37VTjD4=
38 -----END DATA-----
39
40
41
42 -----BEGIN SIGNATURE-----
43 A0cAMEQCIEufkeQoUocmGh0ckjz2Gc1SwXXP5/G+YKUljGEDSLo9AiAoxF+QHXHEGymGOOwNaoX
44 X/LDDO7/sWpyBCEa2OSiahA==
45 -----END SIGNATURE-----
46
47 $ openssl asn1parse -i < [SIGNATURE]
48 0:d=0 hl=2 l= 71 prim: BIT STRING
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698