mirror of https://github.com/XTLS/Xray-core
mKCP: Fix key derivation for obfuscation (#5106)
Fixes https://github.com/XTLS/Xray-core/issues/5096pull/5102/merge
parent
ab1fa13ebe
commit
2b82366148
|
@ -9,5 +9,5 @@ import (
|
|||
|
||||
func NewAEADAESGCMBasedOnSeed(seed string) cipher.AEAD {
|
||||
hashedSeed := sha256.Sum256([]byte(seed))
|
||||
return crypto.NewAesGcm(hashedSeed[:])
|
||||
return crypto.NewAesGcm(hashedSeed[:16])
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue