forked from quic-go/quic-go
13 lines
278 B
Go
13 lines
278 B
Go
package crypto
|
|
|
|
import (
|
|
"bytes"
|
|
"io"
|
|
)
|
|
|
|
// An AEAD implements QUIC's authenticated encryption and associated data
|
|
type AEAD interface {
|
|
Open(associatedData []byte, ciphertext io.Reader) (*bytes.Reader, error)
|
|
Seal(b *bytes.Buffer, associatedData []byte, r *bytes.Reader)
|
|
}
|