Documentation
¶
Overview ¶
Package crypto contains cryptographic utilities.
Index ¶
Constants ¶
View Source
const DefaultPSKLength = 32
DefaultPSKLength is the default length of a PSK.
Variables ¶
View Source
var ValidPSKChars = []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
ValidPSKChars is the set of valid characters for a PSK.
Functions ¶
This section is empty.
Types ¶
type PSK ¶
type PSK []byte
PSK is a pre-shared key.
func GeneratePSKWithLength ¶
GeneratePSKWithLength generates a PSK with a given length.
func MustGeneratePSK ¶
func MustGeneratePSK() PSK
MustGeneratePSK generates a PSK and panics on error.
Click to show internal directories.
Click to hide internal directories.