Documentation ¶
Overview ¶
Package crypto provides functions to for cryptography and random numbers.
Index ¶
Constants ¶
View Source
const (
// RNGLengthDefault is the number of bytes used for generating nonces.
RNGLengthDefault = 32
)
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificateSerialNumber ¶
GenerateCertificateSerialNumber generates a random serial number for an X.509 certificate.
func GenerateRandomBytes ¶
GenerateRandomBytes reads length bytes from getrandom(2) if available, /dev/urandom otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.