Documentation ¶
Overview ¶
Package sioutil implements some I/O utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRandom ¶ added in v0.3.0
MustRandom returns n randomly generated bytes. It panics if it fails to read n random bytes from its entropy source.
MustRandom uses crypto/rand.Reader as cryptographically secure random number generator (CSPRNG).
func NativeAES ¶ added in v0.3.0
func NativeAES() bool
NativeAES returns true when the executing CPU provides AES-GCM hardware instructions and an optimized assembler implementation is available.
It is strongly recommended to only use AES-GCM when NativeAES() returns true. Otherwise, the AES-GCM implementation may be vulnerable to timing attacks. See: https://golang.org/pkg/crypto/aes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.