change AEAD interface to return bytes.Reader instead of io.Reader

This commit is contained in:
Lucas Clemente
2016-04-08 10:22:52 +02:00
parent 27c422a92b
commit 7296d4e55e
4 changed files with 18 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ type NullAEAD struct{}
var _ AEAD = &NullAEAD{}
// Open and verify the ciphertext
func (*NullAEAD) Open(associatedData []byte, r io.Reader) (io.Reader, error) {
func (*NullAEAD) Open(associatedData []byte, r io.Reader) (*bytes.Reader, error) {
ciphertext, err := ioutil.ReadAll(r)
if err != nil {
return nil, err