Files
quic-go/crypto/AEAD.go
2016-04-10 20:23:51 +02:00

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)
}