implement sealing for NullAEAD

This commit is contained in:
Lucas Clemente
2016-04-10 20:23:51 +02:00
parent ab14684299
commit 893704e38f
3 changed files with 26 additions and 0 deletions

View File

@@ -8,4 +8,5 @@ import (
// 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)
}