mirror of https://github.com/XTLS/Xray-core
Fix
parent
6ec0291d4e
commit
a055120ab1
|
@ -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