1
0
Форк 0
дзеркало https://github.com/XTLS/Xray-core.git синхронізовано 2025-07-01 23:54:16 +00:00

Fix shadowsocks xchacha cipher nonce size

Цей коміт міститься в:
yuhan6665 2021-12-18 23:23:09 -05:00
джерело 63da3a5481
коміт 9ea1bf7c1d
3 змінених файлів з 4 додано та 8 видалено

@ -39,10 +39,6 @@ func GenerateIncreasingNonce(nonce []byte) BytesGenerator {
}
}
func GenerateInitialAEADNonce() BytesGenerator {
return GenerateIncreasingNonce([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF})
}
func GenerateAEADNonceWithSize(nonceSize int) BytesGenerator {
c := make([]byte, nonceSize)
for i := 0; i < nonceSize; i++ {