1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00

change temporary variable to lower camel case (#427)

Co-authored-by: Chinsyo <chinsyo@sina.cn>
This commit is contained in:
Chinsyo 2020-11-17 15:14:48 +08:00 committed by GitHub
parent 1d1f207f0f
commit c4c750d03f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
} }