mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 05:07:36 +03:00
14 lines
314 B
Go
14 lines
314 B
Go
package crypto
|
|
|
|
import "github.com/lucas-clemente/quic-go/internal/protocol"
|
|
|
|
// NewNullAEAD creates a NullAEAD
|
|
func NewNullAEAD(p protocol.Perspective, v protocol.VersionNumber) AEAD {
|
|
if v == protocol.VersionTLS {
|
|
return &nullAEADFNV64a{}
|
|
}
|
|
return &nullAEADFNV128a{
|
|
perspective: p,
|
|
version: v,
|
|
}
|
|
}
|