uquic/handshake/crypto_setup_interface.go
2017-01-14 18:45:14 +07:00

14 lines
446 B
Go

package handshake
import "github.com/lucas-clemente/quic-go/protocol"
// CryptoSetup is a crypto setup
type CryptoSetup interface {
HandleCryptoStream() error
Open(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) ([]byte, error)
Seal(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) []byte
DiversificationNonce() []byte
LockForSealing()
UnlockForSealing()
HandshakeComplete() bool
}