From fc853a6e2265d0a07d4e3efb714743a9a3b1c2dc Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Thu, 7 Apr 2016 17:02:07 +0200 Subject: [PATCH] add AEAD interface --- crypto/AEAD.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 crypto/AEAD.go diff --git a/crypto/AEAD.go b/crypto/AEAD.go new file mode 100644 index 000000000..d68041796 --- /dev/null +++ b/crypto/AEAD.go @@ -0,0 +1,8 @@ +package crypto + +import "io" + +// An AEAD implements QUIC's authenticated encryption and associated data +type AEAD interface { + Open(associatedData []byte, ciphertext io.Reader) (io.Reader, error) +}