Update aead/poly1305
This commit is contained in:
parent
5be294a6e2
commit
7685c12c0f
|
@ -29,7 +29,7 @@
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/aead/poly1305"
|
name = "github.com/aead/poly1305"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "6cf43fdfd7a228cf3003ae23d10ddbf65e85997b"
|
revision = "969857f48f7ae439b6d2449ed1dcd9aaabc49c67"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
@ -148,7 +148,7 @@
|
||||||
"poly1305",
|
"poly1305",
|
||||||
"salsa20/salsa"
|
"salsa20/salsa"
|
||||||
]
|
]
|
||||||
revision = "f70185d77e8278766928032ee1355e3da47e7181"
|
revision = "d6449816ce06963d9d136eee5a56fca5b0616e7e"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
"ipv6",
|
"ipv6",
|
||||||
"lex/httplex"
|
"lex/httplex"
|
||||||
]
|
]
|
||||||
revision = "61147c48b25b599e5b561d2e9c4f3e1ef489ca41"
|
revision = "500e7a4f953ddaf55d316b4d3adc516aa0379622"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
@ -176,7 +176,7 @@
|
||||||
"windows/svc/eventlog",
|
"windows/svc/eventlog",
|
||||||
"windows/svc/mgr"
|
"windows/svc/mgr"
|
||||||
]
|
]
|
||||||
revision = "3b87a42e500a6dc65dae1a55d0b641295971163e"
|
revision = "2281fa97ef7b0c26324634d5a22f04babdac8713"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "golang.org/x/text"
|
name = "golang.org/x/text"
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.7
|
- "1.8.x"
|
||||||
- 1.8
|
- "1.9.x"
|
||||||
|
- "1.10.x"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TRAVIS_GOARCH=amd64
|
- TRAVIS_GOARCH=amd64
|
||||||
|
@ -13,4 +14,8 @@ before_install:
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
script:
|
||||||
|
- diff -au <(gofmt -d .) <(printf "")
|
||||||
|
- go test -v ./...
|
|
@ -138,7 +138,7 @@ func update(msg []byte, flag uint32, h, r *[5]uint32) {
|
||||||
r0, r1, r2, r3, r4 := uint64(r[0]), uint64(r[1]), uint64(r[2]), uint64(r[3]), uint64(r[4])
|
r0, r1, r2, r3, r4 := uint64(r[0]), uint64(r[1]), uint64(r[2]), uint64(r[3]), uint64(r[4])
|
||||||
R1, R2, R3, R4 := r1*5, r2*5, r3*5, r4*5
|
R1, R2, R3, R4 := r1*5, r2*5, r3*5, r4*5
|
||||||
|
|
||||||
for len(msg) > 0 {
|
for len(msg) >= TagSize {
|
||||||
// h += msg
|
// h += msg
|
||||||
h0 += binary.LittleEndian.Uint32(msg[0:]) & 0x3ffffff
|
h0 += binary.LittleEndian.Uint32(msg[0:]) & 0x3ffffff
|
||||||
h1 += (binary.LittleEndian.Uint32(msg[3:]) >> 2) & 0x3ffffff
|
h1 += (binary.LittleEndian.Uint32(msg[3:]) >> 2) & 0x3ffffff
|
||||||
|
|
Loading…
Reference in New Issue