-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpretty_test_vectors.go
167 lines (155 loc) · 7.96 KB
/
pretty_test_vectors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
// Copyright 2021-2024 Contributors to the Veraison project.
// SPDX-License-Identifier: Apache-2.0
package psatoken
// automatically generated from P1ClaimsAll.diag
var testEncodedP1ClaimsAll = `
aa3a000124f7715053415f494f545f50524f46494c455f313a000124f81a
7fffffff3a000124f91930003a000124fa58200000000000000000000000
0000000000000000000000000000000000000000003a000124fb58200000
000000000000000000000000000000000000000000000000000000000000
3a000124fc6d313233343536373839303132333a000124fd81a202582003
030303030303030303030303030303030303030303030303030303030303
030558200404040404040404040404040404040404040404040404040404
0404040404043a000124ff58200101010101010101010101010101010101
0101010101010101010101010101013a0001250058210102020202020202
020202020202020202020202020202020202020202020202023a00012501
782e68747470733a2f2f7665726169736f6e2e6578616d706c652f76312f
6368616c6c656e67652d726573706f6e7365
`
// automatically generated from P1ClaimsAllNoSwMeasurements.diag
var testEncodedP1ClaimsAllNoSwMeasurements = `
aa3a000124f7715053415f494f545f50524f46494c455f313a000124f81a
7fffffff3a000124f91930003a000124fa58200000000000000000000000
0000000000000000000000000000000000000000003a000124fb58200000
000000000000000000000000000000000000000000000000000000000000
3a000124fc6d313233343536373839303132333a000124fe013a000124ff
582001010101010101010101010101010101010101010101010101010101
010101013a00012500582101020202020202020202020202020202020202
02020202020202020202020202023a00012501782e68747470733a2f2f76
65726169736f6e2e6578616d706c652f76312f6368616c6c656e67652d72
6573706f6e7365
`
// automatically generated from P1ClaimsMandatoryOnly.diag
var testEncodedP1ClaimsMandatoryOnly = `
a73a000124f81a7fffffff3a000124f91930003a000124fa582000000000
000000000000000000000000000000000000000000000000000000003a00
0124fb582000000000000000000000000000000000000000000000000000
000000000000003a000124fd81a202582003030303030303030303030303
030303030303030303030303030303030303030558200404040404040404
0404040404040404040404040404040404040404040404043a000124ff58
200101010101010101010101010101010101010101010101010101010101
0101013a0001250058210102020202020202020202020202020202020202
02020202020202020202020202
`
// automatically generated from P1ClaimsMandatoryOnlyNoSwMeasurements.diag
var testEncodedP1ClaimsMandatoryOnlyNoSwMeasurements = `
a73a000124f81a7fffffff3a000124f91930003a000124fa582000000000
000000000000000000000000000000000000000000000000000000003a00
0124fb582000000000000000000000000000000000000000000000000000
000000000000003a000124fe013a000124ff582001010101010101010101
010101010101010101010101010101010101010101013a00012500582101
020202020202020202020202020202020202020202020202020202020202
0202
`
// automatically generated from P1ClaimsMissingMandatoryNonce.diag
var testEncodedP1ClaimsMissingMandatoryNonce = `
a93a000124f7715053415f494f545f50524f46494c455f313a000124f81a
7fffffff3a000124f91930003a000124fa58200000000000000000000000
0000000000000000000000000000000000000000003a000124fb58200000
000000000000000000000000000000000000000000000000000000000000
3a000124fc6d313233343536373839303132333a000124fd81a202582003
030303030303030303030303030303030303030303030303030303030303
030558200404040404040404040404040404040404040404040404040404
0404040404043a0001250058210102020202020202020202020202020202
020202020202020202020202020202023a00012501782e68747470733a2f
2f7665726169736f6e2e6578616d706c652f76312f6368616c6c656e6765
2d726573706f6e7365
`
// automatically generated from P2ClaimsAll.diag
var testEncodedP2ClaimsAll = `
aa1901097818687474703a2f2f61726d2e636f6d2f7073612f322e302e30
19095a1a7fffffff19095b19300019095c58200000000000000000000000
00000000000000000000000000000000000000000019095d480000000000
00000019095e73313233343536373839303132332d313233343519095f81
a20258200303030303030303030303030303030303030303030303030303
030303030303055820040404040404040404040404040404040404040404
04040404040404040404040a582001010101010101010101010101010101
010101010101010101010101010101011901005821010202020202020202
020202020202020202020202020202020202020202020202190960782e68
747470733a2f2f7665726169736f6e2e6578616d706c652f76312f636861
6c6c656e67652d726573706f6e7365
`
// automatically generated from P2ClaimsMandatoryOnly.diag
var testEncodedP2ClaimsMandatoryOnly = `
a71901097818687474703a2f2f61726d2e636f6d2f7073612f322e302e30
19095a1a7fffffff19095b19300019095c58200000000000000000000000
00000000000000000000000000000000000000000019095f81a202582003
030303030303030303030303030303030303030303030303030303030303
030558200404040404040404040404040404040404040404040404040404
0404040404040a5820010101010101010101010101010101010101010101
010101010101010101010119010058210102020202020202020202020202
02020202020202020202020202020202020202
`
// automatically generated from P2ClaimsMissingMandatoryNonce.diag
var testEncodedP2ClaimsMissingMandatoryNonce = `
a61901097818687474703a2f2f61726d2e636f6d2f7073612f322e302e30
19095a1a7fffffff19095b19300019095c58200000000000000000000000
00000000000000000000000000000000000000000019095f81a202582003
030303030303030303030303030303030303030303030303030303030303
030558200404040404040404040404040404040404040404040404040404
040404040404190100582101020202020202020202020202020202020202
0202020202020202020202020202
`
// automatically generated from P2ClaimsInvalidMultiNonce.diag
var testEncodedP2ClaimsInvalidMultiNonce = `
aa1901097818687474703a2f2f61726d2e636f6d2f7073612f322e302e30
19095a1a7fffffff19095b19300019095c58200000000000000000000000
00000000000000000000000000000000000000000019095d480000000000
00000019095e73313233343536373839303132332d313233343519095f81
a20258200303030303030303030303030303030303030303030303030303
030303030303055820040404040404040404040404040404040404040404
04040404040404040404040a825820010101010101010101010101010101
010101010101010101010101010101010158200202020202020202020202
020202020202020202020202020202020202020202190100582101020202
020202020202020202020202020202020202020202020202020202020219
0960782e68747470733a2f2f7665726169736f6e2e6578616d706c652f76
312f6368616c6c656e67652d726573706f6e7365
`
// automatically generated from P1ClaimsTFM.diag
var testEncodedP1ClaimsTFM = `
aa3a000124ff584000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
0000000000000000000000003a000124fb5820a0a1a2a3a4a5a6a7a8a9aa
abacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebf3a00012500582101fa
58755f658627ce5460f29b75296713248cae7ad9e2984b90280efcbcb502
483a000124fa5820aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbcccccccccccc
ccccdddddddddddddddd3a000124f8190bba3a000124f91930003a000124
fd82a501635350450465312e362e30055820bfe6d86f8826f4ff97fb96c4
e6fbc4993e4619fc565da26adf34c329489adc3806665348413235360258
20f79f1fe6aa0445d620a017d3d5c5215a20367fc135b6ad355beda66a21
b693a9a501644e5350450465302e302e30055820b360caf5c98c6b942a48
82fa9d4823efb166a9ef6a6e4aa37c1919ed1fccc0490666534841323536
025820087d13c68f32aaafb8c4fc0a2253445432009765e216fb85c398c9
580522c1bf3a00012501777777772e747275737465646669726d77617265
2e6f72673a000124f7715053415f494f545f50524f46494c455f313a0001
24fc73303630343536353237323832392d3130303130
`
// automatically generated from P2ClaimsTFM.diag
var testEncodedP2ClaimsTFM = `
aa0a58400000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000
000000000000000019095d5820a0a1a2a3a4a5a6a7a8a9aaabacadaeafb0
b1b2b3b4b5b6b7b8b9babbbcbdbebf190100582101fa58755f658627ce54
60f29b75296713248cae7ad9e2984b90280efcbcb5024819095c5820aaaa
aaaaaaaaaaaabbbbbbbbbbbbbbbbccccccccccccccccdddddddddddddddd
19095a190bba19095b19300019095f82a501635350450465312e362e3005
5820bfe6d86f8826f4ff97fb96c4e6fbc4993e4619fc565da26adf34c329
489adc38066653484132353602582096a2ec56c65120a60ce3a53ef8d208
2233772aacd5b17935a92be12ac577f685a501644e5350450465302e302e
30055820b360caf5c98c6b942a4882fa9d4823efb166a9ef6a6e4aa37c19
19ed1fccc0490666534841323536025820087d13c68f32aaafb8c4fc0a22
53445432009765e216fb85c398c9580522c1bf190960777777772e747275
737465646669726d776172652e6f72671901097818687474703a2f2f6172
6d2e636f6d2f7073612f322e302e3019095e733036303435363532373238
32392d3130303130
`