diff --git a/shadowaead/cipher.go b/shadowaead/cipher.go index 952d5b27..19410df9 100644 --- a/shadowaead/cipher.go +++ b/shadowaead/cipher.go @@ -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())