Commit Graph

15 Commits

Author SHA1 Message Date
Jan Dittberner 13300f06a0 Switch to ProtonMail's openpgp implementation
golang/x/crypto/openpgp is frozen. This commit switches to ProtonMail's fork
github.com/ProtonMail/go-crypto/openpgp to have a version that is used and
maintained by the upstream project.
2021-06-26 15:30:31 +02:00
Jan Dittberner 2e467b3d2e Configure golangci-lint and fix warnings 2021-01-09 11:24:40 +01:00
Jan Dittberner ecd1846975 Fix golangci-lint warnings 2021-01-08 20:18:43 +01:00
Jan Dittberner 2fdde4024d Implement X.509 signing 2021-01-08 18:41:29 +01:00
Jan Dittberner 6cd132b3f7 Finish implementation of openpgp signing 2021-01-08 10:14:11 +01:00
Jan Dittberner c8e6792622 WIP: implement openpgp signing 2021-01-05 20:25:29 +01:00
Jan Dittberner 9f0916b14a Refactor code structure
Move X.509 and Openpgp operations into custom packages. Implement more
robust input reading. Do not convert []byte to string unnecessarily.

Finish implementation of X.509 CRL creation.
2021-01-05 19:59:43 +01:00
Jan Dittberner 2de9771472 Start implementation of revoke action 2021-01-04 20:39:35 +01:00
Jan Dittberner 38566f35ef Refactor signer code into command and package 2021-01-04 14:15:19 +01:00
Jan Dittberner 3a2578ae55 Use correct timeouts and log methods 2021-01-04 08:15:49 +01:00
Jan Dittberner 9924771531 Refactor client I/O into protocol package 2020-04-19 22:29:58 +02:00
Jan Dittberner 80b3309c7c Use better maintained go.bug.st/serial
This commit switches to serial port library to the better maintained
go.bug.st/serial library.
2020-04-17 19:39:06 +02:00
Jan Dittberner 42d1e6e991 Refactor client into separate files
Add a main loop, move I/O code into io.go, move configuration into config.go.
Use shared.Decode24BitLength instead of manually decoding block lengths.
Fix response block decoding and checksum validation.
Add constants for commonly used byte values and use these in the signer and
the client.
2020-04-17 19:39:01 +02:00
Jan Dittberner 65855152ce Implement first client command
The client can now talk to the old Perl signer implementation. Running
socat has been documented in README.md. Commonly used I/O code has been
moved to the shared/io.go file.
2020-04-17 19:38:54 +02:00
Jan Dittberner a89275a8e4 Initial signer rewrite in Go 2018-10-31 11:17:51 +01:00