1
0
Fork 0
forked from External/ergo

bump x/crypto dependency

This commit is contained in:
Shivaram Lingamneni 2020-09-06 01:22:12 -04:00
parent f589a673a7
commit 4d940a5dc0
4 changed files with 4 additions and 11 deletions

View file

@ -16,15 +16,6 @@ func (b *storageBuf) asBytes() *[maxRate]byte {
return (*[maxRate]byte)(unsafe.Pointer(b))
}
//go:nocheckptr
//
// xorInUnaligned intentionally reads the input buffer as an unaligned slice of
// integers. The language spec is not clear on whether that is allowed.
// See:
// https://golang.org/issue/37644
// https://golang.org/issue/37298
// https://golang.org/issue/35381
// xorInUnaligned uses unaligned reads and writes to update d.a to contain d.a
// XOR buf.
func xorInUnaligned(d *state, buf []byte) {