go-mls
go-mls copied to clipboard
Add tree math functions and corresponding test vectors
Adds an implementation of the tree math functions described in the MLS spec, and test vector construction/verification according to the spec in the mls-implementations repo.
Note that test-vectors
and tree-math
are in subordinate packages. This feels a little silly, since they're really just one file each. But it will allow us to keep the application-facing API cleaner in the long run. I expect we will follow similar patterns with the remaining modules corresponding to test vectors (maybe combining key-schedule
and encryption
test vectors into one key-schedule
package).
Pull Request Test Coverage Report for Build 637207507
- 115 of 140 (82.14%) changed or added relevant lines in 2 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage increased (+82.1%) to 82.143%
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
---|---|---|---|
tree-math/tree-math.go | 67 | 78 | 85.9% |
test-vectors/test-vectors.go | 48 | 62 | 77.42% |
<!-- | Total: | 115 | 140 |
Totals | |
---|---|
Change from base Build 630150655: | 82.1% |
Covered Lines: | 115 |
Relevant Lines: | 140 |