aboutsummaryrefslogtreecommitdiff
path: root/crypto_test.go
Commit message (Collapse)AuthorAgeFilesLines
* major refactor based on README.md and TODOsRasmus Dahlberg2021-02-251-125/+0
| | | | | | Updated types, improved units tests, isolated most test data to have it in one place, renamed and created new files to improve readability, and fixed a bunch of minor TODOs.
* fixed unexpected reflect behaviorRasmus Dahlberg2021-02-181-2/+2
| | | | | | | | | | | | After tls.Unmarshal() an empty slice is not assigned the nil value, but rather a slice of zero length. It is in contrast to NewTreeHeadV1(), which assigns a nil value. Therefore, reflect.DeepEqual() considers them to be different. Fixed by assigning an empty tree head extension as `make([]byte, 0)`, and not looking for nil values but rather zero-length values with len(). Further read: "Note that a non-nil empty slice and a nil slice [...] are not deeply equal." (https://golang.org/pkg/reflect/#DeepEqual).
* started replacing x509 with namespaceRasmus Dahlberg2021-01-271-171/+0
|
* added expired certificateRasmus Dahlberg2020-12-021-1/+1
|
* made a few tests more robust and found errorRasmus Dahlberg2020-11-301-2/+1
|
* added verifySignature testsRasmus Dahlberg2020-11-271-1/+66
|
* added buildChainFromDerList testsRasmus Dahlberg2020-11-271-1/+98
|
* added tests for sdi and sth issuanceRasmus Dahlberg2020-11-171-2/+116
|
* fixed typoRasmus Dahlberg2020-11-171-1/+1
|
* added test placeholdersRasmus Dahlberg2020-11-171-0/+21