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

13 lines
279 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, plaintext []byte)
}