mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
change temporary variable to lower camel case (#427)
Co-authored-by: Chinsyo <chinsyo@sina.cn>
This commit is contained in:
parent
1d1f207f0f
commit
c4c750d03f
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func NewAEADAESGCMBasedOnSeed(seed string) cipher.AEAD {
|
func NewAEADAESGCMBasedOnSeed(seed string) cipher.AEAD {
|
||||||
HashedSeed := sha256.Sum256([]byte(seed))
|
hashedSeed := sha256.Sum256([]byte(seed))
|
||||||
aesBlock := common.Must2(aes.NewCipher(HashedSeed[:16])).(cipher.Block)
|
aesBlock := common.Must2(aes.NewCipher(hashedSeed[:16])).(cipher.Block)
|
||||||
return common.Must2(cipher.NewGCM(aesBlock)).(cipher.AEAD)
|
return common.Must2(cipher.NewGCM(aesBlock)).(cipher.AEAD)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user