Skip to content

Commit

Permalink
Merge pull request shadowsocks#30 from hawkingrei/master
Browse files Browse the repository at this point in the history
style: consistent code style
  • Loading branch information
riobard authored Mar 31, 2017
2 parents 57ca340 + 14ae784 commit d34f7f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shadowaead/cipher.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ func (a *metaCipher) SaltSize() int {
func (a *metaCipher) Encrypter(salt []byte) (cipher.AEAD, error) {
subkey := make([]byte, a.KeySize())
hkdfSHA1(a.psk, salt, []byte("ss-subkey"), subkey)
aead, err := a.makeAEAD(subkey)
return aead, err
return a.makeAEAD(subkey)
}
func (a *metaCipher) Decrypter(salt []byte) (cipher.AEAD, error) {
subkey := make([]byte, a.KeySize())
Expand Down

0 comments on commit d34f7f6

Please sign in to comment.