forked from quic-go/quic-go
change AEAD interface to return bytes.Reader instead of io.Reader
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user