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

@@ -1,8 +1,11 @@
package crypto
import "io"
import (
"bytes"
"io"
)
// An AEAD implements QUIC's authenticated encryption and associated data
type AEAD interface {
Open(associatedData []byte, ciphertext io.Reader) (io.Reader, error)
Open(associatedData []byte, ciphertext io.Reader) (*bytes.Reader, error)
}