Skip to content

Commit

Permalink
style: consistent code style
Browse files Browse the repository at this point in the history
  • Loading branch information
真人 authored and riobard committed Mar 31, 2017
1 parent a15ffef commit 5850909
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 5850909

Please sign in to comment.