Ben Toews
5d9823faaf
update docs
2018-06-20 16:11:47 -06:00
Ben Toews
9fe075e0b6
make timestamp checking implicit in SignedData verification
2018-06-20 15:53:59 -06:00
Ben Toews
43a267063f
let caller specify full x509.VerifyOptions instead of just roots
...
The main reason is that it allows the caller to specify a CurrentTime other
than now if they want. Another added benefit though is that it allows the
caller to include other intermediates that aren't part of the signature.
2018-06-20 12:09:54 -06:00
Ben Toews
f9030be47d
fix some docs
2018-06-20 07:02:48 -06:00
Ben Toews
903e0b812c
Merge pull request #3 from mastahyeti/fix-signature-algorithm
...
Infer digest/signature algos from public key type instead of cert sig
2018-05-30 12:20:26 -06:00
Ben Toews
cfd35458f2
infer digest/signature algos from public key type instead of cert sig
2018-05-23 12:57:58 -06:00
Ben Toews
ea1778197f
talk about timestamping in readme
2018-05-23 12:20:13 -06:00
Ben Toews
4bbfa61868
high level methods for verifying timestamps
2018-05-17 12:52:13 -06:00
Ben Toews
ff21787e30
check that ts response matches request
2018-05-15 08:00:40 -06:00
Ben Toews
afd0a82318
high level methods for adding timestamps
2018-05-15 07:36:46 -06:00
Ben Toews
4e4c84a7da
drop support for Go <1.10
2018-05-14 12:04:17 -06:00
Ben Toews
ca1b0c15f0
backwards compatible PKIFreeText (MarshalWithParams is new in Go 1.10)
2018-05-10 13:56:50 -06:00
Ben Toews
84daa31972
break timestamp stuff into its own package
2018-05-10 13:41:02 -06:00
Ben Toews
c546472472
move oids into their own package
2018-05-10 12:16:30 -06:00
Ben Toews
38952c3387
add TimeStampResp type
2018-05-10 12:04:09 -06:00
Ben Toews
7bfe76d734
add build various go versions to build matrix
2018-05-09 17:15:23 -06:00
Ben Toews
faeb8178ed
add TimeStampReq type
2018-05-09 17:02:41 -06:00
Ben Toews
dc7e40c1fb
protocol: add basic parsing support for TSTInfo content
2018-05-09 12:49:58 -06:00
Ben Toews
f7ca628f60
add outlook fixture
2017-11-30 10:50:06 -07:00
Ben Toews
2ba78fa68f
return sd certs regardless of verification success
2017-11-28 16:03:23 -07:00
Ben Toews
9b38d47476
specify some key usages
2017-11-28 13:04:36 -07:00
Ben Toews
47c125ff43
Merge pull request #1 from mastahyeti/intermedidates
...
Add/verify intermediates/roots
2017-11-28 10:04:19 -07:00
Ben Toews
d9a1d52c51
more thorough testing of chain verification
2017-11-28 10:00:53 -07:00
Ben Toews
03d7b05a90
specify trusted roots for verification
2017-11-27 16:46:39 -07:00
Ben Toews
196d48671f
allow intermediates to be added in addition to leaf cert
2017-11-27 16:22:30 -07:00
Ben Toews
737ea9eaba
fix some other stuff now that I understand compound vs primitive
2017-11-22 11:27:24 -07:00
Ben Toews
e744cf833f
work around wonky gpgsm attached signature behavior
...
gpgsm wraps the embedded data in an extra layer of OCTET STRING.
2017-11-22 11:00:00 -07:00
Ben Toews
4ab5286871
don't use Go master for CI
2017-11-21 09:06:24 -07:00
Ben Toews
b5d4c88921
add license/readmme
2017-11-21 08:51:58 -07:00
Ben Toews
8c44e1c8e8
methods for signing
2017-11-21 08:35:56 -07:00
Ben Toews
05aed43318
methods for creating protocol types
2017-11-20 16:08:10 -07:00
Ben Toews
0fc8e3cc0d
cms verification
2017-11-20 14:19:34 -07:00
Ben Toews
43f45fcfc1
rename stuff
2017-11-17 12:50:55 -07:00
Ben Toews
cb2a305a35
using new GO features, so only do >=1.9 in CI
2017-11-17 12:39:08 -07:00
Ben Toews
02a43d512e
move stuff around. make stuff public
2017-11-17 12:33:19 -07:00
Ben Toews
c79ca75f72
reimplement some stuff
2017-11-17 12:18:25 -07:00
Ben Toews
cd12b49f8c
rip out encrypt/decrypt code
2017-11-16 11:50:23 -07:00
Andrew Smith
a009d8d7de
Merge pull request #17 from addie9000/master
...
Fix indefinite form parsing to parse nested indefinite form correctly.
2017-06-13 13:12:21 -07:00
addie9000
d25ebd6320
Fix indefinite form parsing to parse nested indefinite form correctly.
2017-04-11 17:57:15 +09:00
Andrew Smith
eb67e7e564
Merge pull request #13 from mozilla-services/detachedsig
...
Support S/MIME detached signatures, and improve tests
2017-02-08 20:19:05 -05:00
Julien Vehent
8a6582218f
Support S/MIME detached signatures, and improve tests
2016-12-29 16:38:43 -05:00
Andrew Smith
cedaa6c8ea
Merge pull request #12 from groob/aes_128_rijandel
...
Add support for aes128-CBC
2016-12-02 17:11:50 -05:00
Victor Vrantchan
cf19b20986
add support for aes128-CBC
...
OID 2.16.840.1.101.3.4.1.2
2016-11-11 21:15:30 -05:00
Andrew Smith
3befe47e6c
Add build status to README
2016-07-24 20:16:40 -04:00
Andrew Smith
9345b23033
Update travis.yml release -> 1.6
...
I believe I was lied to. (or followed out of date advice)
2016-07-24 20:10:21 -04:00
Andrew Smith
d7d5606acf
Add travis.yml
2016-07-24 20:01:56 -04:00
Andrew Smith
1ebb4aef17
Fix an unstaged git hunk.
...
From a676cd56a6
2016-07-24 19:56:04 -04:00
Andrew Smith
a676cd56a6
Fix signers without AuthenticatedAttributes
...
According to the specification, when AuthenticatedAttributes isn't included the pkcs7 content should be used.
Fixes #9
2016-07-24 13:33:28 -04:00
Stevie Hryciw
d831569429
AES-128-GCM support in Encrypt() and Decrypt() ( #8 )
...
* Added AES-128-GCM support to Encrypt() and Decrypt()
2016-07-19 17:45:17 -04:00
Victor
9ab43480af
Correctly marshal degenerate certificates ( #7 )
...
Fixes an issue where more than one certificate would not be marshalled correctly.
This is now tested against openssl
* correctly marshal degenerate certificates
* update DegenerateCertificates test
* add marshalCertificateBytes function and test against openssl
2016-06-05 13:43:14 -04:00