mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 13:17:36 +03:00
14 lines
446 B
Go
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
|
|
}
|