forked from quic-go/quic-go
add AEAD interface
This commit is contained in:
8
crypto/AEAD.go
Normal file
8
crypto/AEAD.go
Normal file
@@ -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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user