aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* used (un)marshalB64 in testsRasmus Dahlberg2020-11-171-2/+2
| | | | The base64 wrappers use (un)marshal internally.
* added type testsRasmus Dahlberg2020-11-174-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 checkingRasmus Dahlberg2020-11-174-21/+15
|
* fixed structure to include trillian_tests.goRasmus Dahlberg2020-11-162-70/+115
| | | | Moved trillian test helpers and added TODO functions.
* added TODOsRasmus Dahlberg2020-11-161-0/+2
|
* added get-entries handler testsRasmus Dahlberg2020-11-161-0/+146
| | | | Ensures that the respective error handling functions are invoked.
* added get-consistency-proof handler testsRasmus Dahlberg2020-11-161-0/+121
| | | | Ensures that the respective error handling functions are invoked.
* added get-proof-by-hash handler testsRasmus Dahlberg2020-11-162-2/+127
| | | | Ensures that the respective error handling functions are invoked.
* added add-entry handler testsRasmus Dahlberg2020-11-161-0/+169
| | | | Ensures that the respective error handling functions are invoked.
* added test dataRasmus Dahlberg2020-11-162-15/+43
|
* move test helpers to testdata packageRasmus Dahlberg2020-11-114-58/+87
|
* added docRasmus Dahlberg2020-11-111-0/+2
|
* added get-anchors handler testsRasmus Dahlberg2020-11-111-0/+30
|
* added test that checks for a context deadlineRasmus Dahlberg2020-11-111-1/+26
|
* added get-sth handler testsRasmus Dahlberg2020-11-111-5/+109
|
* removed code snippets that we don't need for nowRasmus Dahlberg2020-11-111-32/+1
|
* added start on gomock testsRasmus Dahlberg2020-11-101-0/+202
| | | | Based on github.com/google/certificate-transparency-go/trillian/ctfe
* minor refactoringRasmus Dahlberg2020-11-102-53/+41
|
* replaced sync.Once with init()Rasmus Dahlberg2020-11-102-5/+1
|
* added test dataRasmus Dahlberg2020-11-101-0/+18
|
* renamed ParseDerChainToList to ParseDerChainRasmus Dahlberg2020-11-052-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 Dahlberg2020-11-051-2/+10
| | | | Missed one file.
* added client-side get-anchors codeRasmus Dahlberg2020-11-051-0/+38
|
* refactored ParseDerChain()Rasmus Dahlberg2020-11-051-16/+7
| | | | Could be simplified now that we have a ParseDerChainToList() method.
* fixed get-entries output and client-side verificationRasmus Dahlberg2020-11-056-29/+95
|
* added client-side get-entriesRasmus Dahlberg2020-11-052-2/+78
|
* signature scheme is missing in get-entry responseRasmus Dahlberg2020-11-051-0/+1
|
* allowed client configuration without certificate chain (2)Rasmus Dahlberg2020-11-053-5/+12
| | | | Missed a few files.
* allowed client configuration without certificate chainRasmus Dahlberg2020-11-051-2/+1
|
* added error handling for public key parsingRasmus Dahlberg2020-11-054-11/+19
|
* moved package from stfe/server/descriptor to stfe/descriptorRasmus Dahlberg2020-11-058-10/+5
|
* improved readiabilityRasmus Dahlberg2020-11-051-1/+7
|
* removed unnecessary variableRasmus Dahlberg2020-11-051-15/+10
|
* refactored trillian response checkingRasmus Dahlberg2020-11-052-47/+37
| | | | Added a few checks that might be redundant, but better safe than sorry.
* renamed verify.go to crypto.goRasmus Dahlberg2020-11-051-0/+0
| | | | | Chains and signatures are verified here, but signatures are also produced.
* added docRasmus Dahlberg2020-11-051-1/+3
|
* renamed x509.go to verify.goRasmus Dahlberg2020-11-051-0/+0
|
* moved publlic x509 helpers into a separate packageRasmus Dahlberg2020-11-054-131/+143
|
* refactored signing/verification parts that are log specificRasmus Dahlberg2020-11-053-31/+32
| | | | These methods are now private and attached to LogParameters.
* moved sth and sdi metrics into the signer componentRasmus Dahlberg2020-11-052-12/+10
|
* renamed appHandler to handlerRasmus Dahlberg2020-11-052-11/+11
|
* minor refactor of request-response code pathRasmus Dahlberg2020-11-052-57/+61
| | | | | Mainly attaching log-specific functionality to LogParameters, and returning pointers to struct (as opposed to struct).
* created new structs more denselyRasmus Dahlberg2020-11-051-46/+12
|
* unified base64-encoding of paths for printingRasmus Dahlberg2020-11-051-12/+11
|
* simplified encoding and decodingRasmus Dahlberg2020-11-054-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 metricsRasmus Dahlberg2020-11-044-1/+50
|
* double-checked encoding of ed25519 signatureRasmus Dahlberg2020-11-041-1/+0
|
* moved extended key usage to log parametersRasmus Dahlberg2020-11-042-1/+3
|
* allowed configuration of max-range and max-chainRasmus Dahlberg2020-11-043-6/+8
|
* added certificate chain length checkingRasmus Dahlberg2020-11-042-5/+10
|