mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-19 03:25:16 +00:00
cbcc3ea132
This updates kcp and uses our own fork which: 1. Keys sessions not just by remote address, but by remote address + conversation id 2. Allows not to close connections that were passed directly to the library. 3. Resets cache key if the session gets terminated. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4339 LGTM: calmh
20 lines
361 B
Go
20 lines
361 B
Go
// +build !amd64 noasm
|
|
|
|
package xor
|
|
|
|
func xorBytes(dst, src0, src1 []byte, size int) {
|
|
bytesNoSIMD(dst, src0, src1, size)
|
|
}
|
|
|
|
func xorMatrix(dst []byte, src [][]byte) {
|
|
matrixNoSIMD(dst, src)
|
|
}
|
|
|
|
func xorSrc0(dst, src0, src1 []byte) {
|
|
bytesNoSIMD(dst, src0, src1, len(src0))
|
|
}
|
|
|
|
func xorSrc1(dst, src0, src1 []byte) {
|
|
bytesNoSIMD(dst, src0, src1, len(src1))
|
|
}
|