Documentation ¶
Index ¶
Constants ¶
View Source
const SeedSize = 32
SeedSize is the required length of seeds for New.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is a ChaCha20 PRNG for a DC-net run. It implements io.Reader.
func New ¶
New creates a ChaCha20 PRNG seeded by a 32-byte key and a run iteration. The returned reader is not safe for concurrent access. This will panic if the length of seed is not SeedSize bytes.
Click to show internal directories.
Click to hide internal directories.