[{"name":"Random.Salsa20","comment":" Random generator API for Salsa20. This should be used with [NoRedInk/elm-random-general](https://package.elm-lang.org/packages/NoRedInk/elm-random-general/latest/Random-General) to have a nice API for generating random, cryptographically secure, numbers.\n\nWarning: if you use this module directly (which you shouldn't, use elm-random-general), it is _your_ responsibility to make sure you don't call `peel` more than once on the same `State`\n\n@docs State, init, step, peel\n\n","unions":[{"name":"State","comment":" The internal state of the generator. Contains the key, nonce and a counter.\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"init","comment":" Initialize the generator. This stores the key and nonce inside the state, and sets the counter to 0.\n","type":"Salsa20.Key -> Salsa20.Nonce -> Random.Salsa20.State"},{"name":"peel","comment":" Gets an `Int` out of the current state. The result will be an unsigned 32 bit integer.\n","type":"Random.Salsa20.State -> Basics.Int"},{"name":"step","comment":" Increments the counter.\n","type":"Random.Salsa20.State -> Random.Salsa20.State"}],"binops":[]},{"name":"Salsa20","comment":"\n\n@docs salsa20\n\n\n# Key management\n\n@docs Key, toKey, Nonce, toNonce\n\n","unions":[],"aliases":[{"name":"Key","comment":" Encryption key.\n","args":[],"type":"Internal.Salsa20.Key"},{"name":"Nonce","comment":" Nonce. A random unique code that should be unique for each message.\n","args":[],"type":"Internal.Salsa20.Nonce"}],"values":[{"name":"salsa20","comment":" Encrypt/decrypt data using the Salsa20 function.\n\nThis function is symmetric, so it can be used for both encryption and decryption.\n\n","type":"Salsa20.Key -> Salsa20.Nonce -> Bytes.Bytes -> Bytes.Bytes"},{"name":"toKey","comment":" Build a key out of bytes. The key must be either 16 or 32 bytes long.\n","type":"Bytes.Bytes -> Maybe.Maybe Salsa20.Key"},{"name":"toNonce","comment":" Build a nonce out of bytes. The nonce must be either 8 bytes long.\n","type":"Bytes.Bytes -> Maybe.Maybe Salsa20.Nonce"}],"binops":[]}]