Commit Graph

55 Commits

Author SHA1 Message Date
Paul van Brouwershaven
d1962b6c98 Switch TSA for tability 2022-06-30 18:12:34 +02:00
Paul van Brouwershaven
4fe43c0794 Use timestamp package for TSA 2022-06-30 18:05:16 +02:00
Paul van Brouwershaven
44ac3c7806 Check errors 2022-06-30 18:04:25 +02:00
Paul van Brouwershaven
dc48ea3133 Migrate to github 2022-06-29 21:09:28 +02:00
Paul van Brouwershaven
3caf640baa Retry with expected signature lenght 2022-06-29 21:07:59 +02:00
Paul van Brouwershaven
2ce268ea4d Fix fpr PDF 2.0 xref tables 2022-06-29 21:04:33 +02:00
tigp
c0f2009983 Use 1 for certification 2018-08-13 18:29:29 +02:00
tigp
ac2be7b9c2 set certificate type to 1 if not provided 2018-07-16 00:12:09 +02:00
tigp
89b4a16334 Enumerate signature type from 1 instead of 0 2018-07-15 23:26:04 +02:00
tigp
9e782e9dd9 Revert "Use CertType zero value as nothing"
This reverts commit e8214eecbf.
2018-07-09 02:01:38 +02:00
tigp
e8214eecbf Use CertType zero value as nothing 2018-07-09 02:00:50 +02:00
tigp
7d7627a52f refactor permission names 2018-06-29 18:48:55 +02:00
tigp
6b914d1698 WIP - use another API for signing 2018-06-29 18:12:49 +02:00
tigp
af18f0bd57 Use uint for CertType for better compatibility 2018-06-24 19:34:55 +02:00
Paul van Brouwershaven
eaa47cac54 verify.Verify to verify.File, err format 2018-05-18 11:21:34 +02:00
tigp
be30b42458 Move failed files to testfiles/failed folder 2018-05-01 23:24:56 +02:00
tigp
cac6f30626 Add name for parallel test 2018-05-01 18:48:50 +02:00
tigp
dc9afd860d Test in parallel. Remove logging 2018-05-01 17:33:39 +02:00
tigp
6694f59c89 Remove verification response logging 2018-05-01 16:26:22 +02:00
tigp
0acb66fd3b Remove tmp file if test failed 2018-05-01 16:14:53 +02:00
tigp
770e29316e Verify output file instead of input file 2018-05-01 16:13:12 +02:00
tigp
9458dd650e Add verification to tests 2018-05-01 15:53:44 +02:00
tigp
ee5a588d2e Fix xref start position 2018-05-01 15:06:48 +02:00
Jeroen Bobbeldijk
db697b3d49 Use static file in code for benchmark to prevent too much seeking on an actual file which is slow in OSX. 2017-10-08 10:29:58 +02:00
Jeroen Bobbeldijk
8f1562c545 Less TSA, fix benchmark 2017-09-30 15:51:01 +02:00
Jeroen Bobbeldijk
bb93a21027 Calculate chain length, certificate length and signature length, only open file once in benchmark 2017-09-30 15:44:50 +02:00
Jeroen Bobbeldijk
07ae3c8eaa Write tmpfile to tmp folder 2017-09-30 15:00:37 +02:00
Jeroen Bobbeldijk
6d97abe800 Change tests to use ioutil.Discard 2017-09-30 14:56:11 +02:00
Jeroen Bobbeldijk
f0835162fc Add test for signing filenames 2017-09-30 14:36:25 +02:00
Jeroen Bobbeldijk
d333ee9650 Remove TSA from benchmark, improve speed of placeholder generation, try to fix open files 2017-09-30 14:32:38 +02:00
Jeroen Bobbeldijk
679656fb8d Changed file to writer/reader 2017-09-23 16:37:39 +02:00
Jeroen Bobbeldijk
08040f9140 Tests and benchmark 2017-09-23 15:30:32 +02:00
Jeroen Bobbeldijk
837dcc0ea2 Add tests for helpers 2017-09-23 15:03:44 +02:00
Jeroen Bobbeldijk
7179508c8c Add benchmark 2017-09-23 14:10:24 +02:00
Jeroen Bobbeldijk
b9033432de Close file after test 2017-09-17 16:33:16 +02:00
Jeroen Bobbeldijk
8c60336e04 Dont parse twice in test, fix some bugs with special pdfs 2017-09-17 15:24:57 +02:00
Jeroen Bobbeldijk
b8f3cee07c Add signing test 2017-09-17 13:41:32 +02:00
Jeroen Bobbeldijk
bf2aa2ea02 Add testfiles folder, add reader test 2017-09-17 13:26:39 +02:00
Jeroen Bobbeldijk
3d7049d4e8 Fix up stream 2017-09-17 12:33:49 +02:00
Jeroen Bobbeldijk
fa31007f97 Add proper predictor, switch between up/sub, fix up sub 2017-09-17 11:15:42 +02:00
Jeroen Bobbeldijk
e9e71178d7 Add encoding 2017-09-17 11:00:06 +02:00
Jeroen Bobbeldijk
b06975647c Fix Index 2017-09-10 17:37:42 +02:00
Jeroen Bobbeldijk
d3dbbaa81b Xref stream progress 2017-09-10 17:26:01 +02:00
Jeroen Bobbeldijk
1c9a9d60b1 Move fetching of revocation data, guess size of signature 2017-07-23 13:10:35 +02:00
Jeroen Bobbeldijk
a0393425ce Fix TSA 2017-07-19 21:33:58 +02:00
Jeroen Bobbeldijk
e36ea4269a Download TSA certificates and embed their OCSP/CRL 2017-07-14 21:08:37 +02:00
Jeroen Bobbeldijk
e51daf9a81 Check if signature actually fits in file 2017-07-13 21:59:39 +02:00
Jeroen Bobbeldijk
3928b7d813 Creation of chain, add chain to signing, fetch OCSP/CRL for chain 2017-07-13 21:55:38 +02:00
Jeroen Bobbeldijk
c8e53c9bcf Add revocation information 2017-07-13 20:30:18 +02:00
Paul van Brouwershaven
c327f686d5 Added a dedicated revocation subpackage
The newly created dedicated revocation package is used to encode and
decode revocation information. Signing and verification can now use the
same structures.

While the InfoArchival stucsture can now be created this stucture is currenlty
not embedded into the document. Test cases for obtaining and embedding revocation
information into the InfoArchival struct are also availible.
2017-07-12 20:53:06 +02:00