Documentation ¶
Index ¶
Constants ¶
View Source
const ( Ed25519 = "ed25519" Curve25519xSalsa20Poly1305 = "curve25519xsalsa20poly1305" )
Available asymmetric crypto algorithms. The values must be lower case.
View Source
const ( InvalidKeySize = "Invalid key size" UnsupportedSignAlgo = "Unsupported signing algorithm" InvalidSignature = "Invalid signature" )
Variables ¶
This section is empty.
Functions ¶
func MathRandSeed ¶ added in v0.1.1
func MathRandSeed()
Seed math/rand's default generator with a random value, once.
func RandInt64 ¶ added in v0.1.1
func RandInt64() int64
RandInt64 returns a random int64 value. The returned value can be negative.
func RandUint64 ¶ added in v0.1.1
func RandUint64() uint64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.