use (a modified version of) the standard library TLS implementation

This commit is contained in:
Marten Seemann
2019-02-07 23:13:14 +08:00
parent 4ed0ef4b9c
commit 500717066e
67 changed files with 7174 additions and 16258 deletions

View File

@@ -86,7 +86,7 @@ func feFromBytes(dst *fieldElement, src *[32]byte) {
h6 := load3(src[20:]) << 7
h7 := load3(src[23:]) << 5
h8 := load3(src[26:]) << 4
h9 := load3(src[29:]) << 2
h9 := (load3(src[29:]) & 0x7fffff) << 2
var carry [10]int64
carry[9] = (h9 + 1<<24) >> 25