Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandom ¶
NewRandom generates a random salt of the specified length and returns it as a Salt type. If an error occurs while generating the salt or the generated salt length does not match the specified length, a panic is raised with an error message.
func Pad ¶
Pad pads the data to the specified block size, if data is already the right size, this is a no-op
func SecureCompare ¶
func SeededRandomData ¶
Types ¶
type SeededPRNG ¶
type SeededPRNG struct {
// contains filtered or unexported fields
}
func NewSeededPRNG ¶
func NewSeededPRNG(seed []byte, discard uint) *SeededPRNG
func (*SeededPRNG) FillBuffer ¶
func (g *SeededPRNG) FillBuffer(buff []byte)
func (*SeededPRNG) GetBytes ¶
func (g *SeededPRNG) GetBytes(n int) []byte
Click to show internal directories.
Click to hide internal directories.