[−][src]Function salsa20::hsalsa20
pub fn hsalsa20(
key: &Key,
input: &GenericArray<u8, U16>
) -> GenericArray<u8, U32>
This is supported on
feature="hsalsa20"
only.The HSalsa20 function defined in the paper "Extending the Salsa20 nonce"
https://cr.yp.to/snuffle/xsalsa-20110204.pdf
HSalsa20 takes 512-bits of input:
- Constants (
u32
x 4) - Key (
u32
x 8) - Nonce (
u32
x 4)
It produces 256-bits of output suitable for use as a Salsa20 key