utils

package
v0.0.0-...-264f9d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2StrUnsafe

func Bytes2StrUnsafe(b []byte) string

func GenerateCertificate

func GenerateCertificate(dnsName string) (cert tls.Certificate, err error)

GenerateCertificate generates an ecdsa certificate with given dnsName. This should only use in test.

func InitQUICSrkFromIfaceMac

func InitQUICSrkFromIfaceMac() ([32]byte, net.Interface, error)

A helper func to init quic stateless reset key. It use the first non-zero interface mac + sha256 hash.

func Str2BytesUnsafe

func Str2BytesUnsafe(s string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL