Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | used (un)marshalB64 in tests | Rasmus Dahlberg | 2020-11-17 | 1 | -2/+2 | |
| | | | | The base64 wrappers use (un)marshal internally. | |||||
* | added type tests | Rasmus Dahlberg | 2020-11-17 | 4 | -44/+342 | |
| | | | | | | | | | | As a result these changes were made: - Simplified a few New* functions - Allowed empty inclusion and consistency proofs, which is in contrast to not being able to marshal them due to `tls:"minlen:1"`. For example, an inclusion proof will be empty for a Merkle tree of size 1. - Disallowed empty signatures and chains in a leaf's Appendix - Removed unnecessary examples | |||||
* | fixed redundant tree head checking | Rasmus Dahlberg | 2020-11-17 | 4 | -21/+15 | |
| | ||||||
* | fixed structure to include trillian_tests.go | Rasmus Dahlberg | 2020-11-16 | 2 | -70/+115 | |
| | | | | Moved trillian test helpers and added TODO functions. | |||||
* | added TODOs | Rasmus Dahlberg | 2020-11-16 | 1 | -0/+2 | |
| | ||||||
* | added get-entries handler tests | Rasmus Dahlberg | 2020-11-16 | 1 | -0/+146 | |
| | | | | Ensures that the respective error handling functions are invoked. | |||||
* | added get-consistency-proof handler tests | Rasmus Dahlberg | 2020-11-16 | 1 | -0/+121 | |
| | | | | Ensures that the respective error handling functions are invoked. | |||||
* | added get-proof-by-hash handler tests | Rasmus Dahlberg | 2020-11-16 | 2 | -2/+127 | |
| | | | | Ensures that the respective error handling functions are invoked. | |||||
* | added add-entry handler tests | Rasmus Dahlberg | 2020-11-16 | 1 | -0/+169 | |
| | | | | Ensures that the respective error handling functions are invoked. | |||||
* | added test data | Rasmus Dahlberg | 2020-11-16 | 2 | -15/+43 | |
| | ||||||
* | move test helpers to testdata package | Rasmus Dahlberg | 2020-11-11 | 4 | -58/+87 | |
| | ||||||
* | added doc | Rasmus Dahlberg | 2020-11-11 | 1 | -0/+2 | |
| | ||||||
* | added get-anchors handler tests | Rasmus Dahlberg | 2020-11-11 | 1 | -0/+30 | |
| | ||||||
* | added test that checks for a context deadline | Rasmus Dahlberg | 2020-11-11 | 1 | -1/+26 | |
| | ||||||
* | added get-sth handler tests | Rasmus Dahlberg | 2020-11-11 | 1 | -5/+109 | |
| | ||||||
* | removed code snippets that we don't need for now | Rasmus Dahlberg | 2020-11-11 | 1 | -32/+1 | |
| | ||||||
* | added start on gomock tests | Rasmus Dahlberg | 2020-11-10 | 1 | -0/+202 | |
| | | | | Based on github.com/google/certificate-transparency-go/trillian/ctfe | |||||
* | minor refactoring | Rasmus Dahlberg | 2020-11-10 | 2 | -53/+41 | |
| | ||||||
* | replaced sync.Once with init() | Rasmus Dahlberg | 2020-11-10 | 2 | -5/+1 | |
| | ||||||
* | added test data | Rasmus Dahlberg | 2020-11-10 | 1 | -0/+18 | |
| | ||||||
* | renamed ParseDerChainToList to ParseDerChain | Rasmus Dahlberg | 2020-11-05 | 2 | -7/+7 | |
| | | | | | The input need not be a chain: it could be any list of DER-encoded certificates. | |||||
* | added client-side get-anchors code (2) | Rasmus Dahlberg | 2020-11-05 | 1 | -2/+10 | |
| | | | | Missed one file. | |||||
* | added client-side get-anchors code | Rasmus Dahlberg | 2020-11-05 | 1 | -0/+38 | |
| | ||||||
* | refactored ParseDerChain() | Rasmus Dahlberg | 2020-11-05 | 1 | -16/+7 | |
| | | | | Could be simplified now that we have a ParseDerChainToList() method. | |||||
* | fixed get-entries output and client-side verification | Rasmus Dahlberg | 2020-11-05 | 6 | -29/+95 | |
| | ||||||
* | added client-side get-entries | Rasmus Dahlberg | 2020-11-05 | 2 | -2/+78 | |
| | ||||||
* | signature scheme is missing in get-entry response | Rasmus Dahlberg | 2020-11-05 | 1 | -0/+1 | |
| | ||||||
* | allowed client configuration without certificate chain (2) | Rasmus Dahlberg | 2020-11-05 | 3 | -5/+12 | |
| | | | | Missed a few files. | |||||
* | allowed client configuration without certificate chain | Rasmus Dahlberg | 2020-11-05 | 1 | -2/+1 | |
| | ||||||
* | added error handling for public key parsing | Rasmus Dahlberg | 2020-11-05 | 4 | -11/+19 | |
| | ||||||
* | moved package from stfe/server/descriptor to stfe/descriptor | Rasmus Dahlberg | 2020-11-05 | 8 | -10/+5 | |
| | ||||||
* | improved readiability | Rasmus Dahlberg | 2020-11-05 | 1 | -1/+7 | |
| | ||||||
* | removed unnecessary variable | Rasmus Dahlberg | 2020-11-05 | 1 | -15/+10 | |
| | ||||||
* | refactored trillian response checking | Rasmus Dahlberg | 2020-11-05 | 2 | -47/+37 | |
| | | | | Added a few checks that might be redundant, but better safe than sorry. | |||||
* | renamed verify.go to crypto.go | Rasmus Dahlberg | 2020-11-05 | 1 | -0/+0 | |
| | | | | | Chains and signatures are verified here, but signatures are also produced. | |||||
* | added doc | Rasmus Dahlberg | 2020-11-05 | 1 | -1/+3 | |
| | ||||||
* | renamed x509.go to verify.go | Rasmus Dahlberg | 2020-11-05 | 1 | -0/+0 | |
| | ||||||
* | moved publlic x509 helpers into a separate package | Rasmus Dahlberg | 2020-11-05 | 4 | -131/+143 | |
| | ||||||
* | refactored signing/verification parts that are log specific | Rasmus Dahlberg | 2020-11-05 | 3 | -31/+32 | |
| | | | | These methods are now private and attached to LogParameters. | |||||
* | moved sth and sdi metrics into the signer component | Rasmus Dahlberg | 2020-11-05 | 2 | -12/+10 | |
| | ||||||
* | renamed appHandler to handler | Rasmus Dahlberg | 2020-11-05 | 2 | -11/+11 | |
| | ||||||
* | minor refactor of request-response code path | Rasmus Dahlberg | 2020-11-05 | 2 | -57/+61 | |
| | | | | | Mainly attaching log-specific functionality to LogParameters, and returning pointers to struct (as opposed to struct). | |||||
* | created new structs more densely | Rasmus Dahlberg | 2020-11-05 | 1 | -46/+12 | |
| | ||||||
* | unified base64-encoding of paths for printing | Rasmus Dahlberg | 2020-11-05 | 1 | -12/+11 | |
| | ||||||
* | simplified encoding and decoding | Rasmus Dahlberg | 2020-11-05 | 4 | -67/+52 | |
| | | | | | Go's "encoding/json" already takes care of encoding and decoding byte slices as base64. As such, it need not be done explicitly by us. | |||||
* | added prometheus metrics | Rasmus Dahlberg | 2020-11-04 | 4 | -1/+50 | |
| | ||||||
* | double-checked encoding of ed25519 signature | Rasmus Dahlberg | 2020-11-04 | 1 | -1/+0 | |
| | ||||||
* | moved extended key usage to log parameters | Rasmus Dahlberg | 2020-11-04 | 2 | -1/+3 | |
| | ||||||
* | allowed configuration of max-range and max-chain | Rasmus Dahlberg | 2020-11-04 | 3 | -6/+8 | |
| | ||||||
* | added certificate chain length checking | Rasmus Dahlberg | 2020-11-04 | 2 | -5/+10 | |
| |