Documentation ¶
Overview ¶
Package spritz provides a pure Go implementation of the Spritz stream cipher and hash.
More details on the Spritz family of algorithms can be found here: http://people.csail.mit.edu/rivest/pubs/RS14.pdf.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsecurePasswordHash ¶
InsecurePasswordHash calculates a CPU- and memory-hard hash of the given password and salt. It takes two exponential parameters, M and T, which determine the memory and CPU costs. It also takes the length of the hash in bytes.
N.B.: THIS IS A TOTALLY EXPERIMENTAL ALGORITHM WHICH I WROTE BEFORE I'D HAD ANY COFFEE. DO NOT USE HACKY ALGORITHMS DESIGNED BY UNCAFFEINATED NON-CRYPTOGRAPHERS.
func NewStreamWithIV ¶
NewStreamWithIV returns a new instance of the Spritz cipher using the given key and initialization vector.
Types ¶
This section is empty.