simplify AEAD.Seal

This commit is contained in:
Lucas Clemente
2016-04-10 20:33:24 +02:00
parent 893704e38f
commit 96ae3efa64
3 changed files with 3 additions and 5 deletions

View File

@@ -8,5 +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)
Seal(b *bytes.Buffer, associatedData []byte, plaintext []byte)
}