Skip to content

Commit

Permalink
change temporary variable to lower camel case (v2fly#427)
Browse files Browse the repository at this point in the history
Co-authored-by: Chinsyo <[email protected]>
  • Loading branch information
chinsyo and chinsyo authored Nov 17, 2020
1 parent 1d1f207 commit c4c750d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/internet/kcp/cryptreal.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func NewAEADAESGCMBasedOnSeed(seed string) cipher.AEAD {
HashedSeed := sha256.Sum256([]byte(seed))
aesBlock := common.Must2(aes.NewCipher(HashedSeed[:16])).(cipher.Block)
hashedSeed := sha256.Sum256([]byte(seed))
aesBlock := common.Must2(aes.NewCipher(hashedSeed[:16])).(cipher.Block)
return common.Must2(cipher.NewGCM(aesBlock)).(cipher.AEAD)
}

0 comments on commit c4c750d

Please sign in to comment.