-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathunit-tests.html
More file actions
executable file
·120 lines (104 loc) · 4.08 KB
/
Copy pathunit-tests.html
File metadata and controls
executable file
·120 lines (104 loc) · 4.08 KB
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
<html>
<head>
<title>C2PA test page</title>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th,
td {
border: 1px solid black;
padding: 10px;
}
</style>
</head>
<body>
<h1>Project test files</h1>
<p>The following files are created by the <a href="./sign-test-files.sh">sign-test-files.sh</a> script,
the test signer is listed in the corresponding <a href="./test-trust-list.json">test trust list</a>.</p>
<h2>Valid assets</h2>
<p>These files are valid (well-formed C2PA manifest from a trusted signer with a non-expired certificate).</p>
<h3>Image</h3>
<table>
<tr>
<td>JPG</td>
<td>PNG</td>
<td>WEBP</td>
<td>AVIF</td>
<td>SVG</td>
</tr>
<tr>
<td><img src="./media/cards_trusted.jpg" alt="trusted JPG" height="300"></td>
<td><img src="./media/cards_trusted.png" alt="trusted PNG" height="300"></td>
<td><img src="./media/cards_trusted.webp" alt="trusted WEBP" height="300"></td>
<td><img src="./media/cards_trusted.avif" alt="trusted AVIF" height="300"></td>
<td><img src="./media/cards_trusted.svg" alt="trusted SVG" height="200"></td>
</tr>
</table>
<h3>Video</h3>
<table>
<tr>
<td>MP4</td>
</tr>
<tr>
<td>
<video width="320" height="240" controls>
<source src="./media/cards_trusted.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</td>
</tr>
</table>
<h3>Audio</h3>
<table>
<tr>
<td>MP3</td>
<td>WAV</td>
</tr>
<tr>
<td>
<audio controls>
<source src="./media/cicadas_trusted.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</td>
<td>
<audio controls>
<source src="./media/cicadas_trusted.wav" type="audio/wav">
Your browser does not support the audio element.
</audio>
</td>
</tr>
</table>
<h2>Validity period tests</h2>
<p>These files are well-formed C2PA manifest from a trusted signer. Time-stamped
manifests should remain valid if the signer certificate is expired; others, no.</p>
<table>
<tr>
<td>Valid: expired cert, time-stamped by trusted TSA</td>
<td>Valid: no timestamp but still valid cert</td>
<td>Invalid: expired cert, no time stamp</td>
<td>Invalid: expired cert, time-stamped by untrusted TSA</td>
<!-- TODO: modified timestamp -->
<!-- TODO: multiple TSA timestamps (does c2patool support that?) -->
<!-- TODO: expired at time of signing (does c2patool support that?) -->
</tr>
<tr>
<td><img src="./media/cards_expired_with_timestamp.jpg" alt="expired with timestamp JPG" height="300"></td>
<td><img src="./media/cards_trusted_without_timestamp.jpg" alt="valid without timestamp JPG" height="300">
</td>
<td><img src="./media/cards_expired_without_timestamp.jpg" alt="expired without timestamp JPG" height="300">
</td>
<td><img src="./media/cards_expired_with_untrusted_timestamp.jpg" alt="expired with untrusted timestamp JPG"
height="300"></td>
</tr>
</table>
<h2>Untrusted assets</h2>
<p>This file is valid (well-formed C2PA manifest) but the signer is unknown.</p>
<img src="./media/cards_untrusted.jpg" alt="untrusted JPG" height="300">
<h2>Invalid assets</h2>
<p>This file is invalid (modified).</p>
<img src="./media/cards_invalid.jpg" alt="invalid JPG" height="300">
</body>
<html>