This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This implementation of Salsa20 is ported from the reference implementation | |
* by D. J. Bernstein, which can be found at: | |
* http://cr.yp.to/snuffle/salsa20/ref/salsa20.c | |
* | |
* This work is hereby released into the Public Domain. To view a copy of the public domain dedication, | |
* visit http://creativecommons.org/licenses/publicdomain/ or send a letter to | |
* Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
blake2s_mix() { | |
local A_NAME="$1" | |
local A="$2" | |
local B_NAME="$3" | |
local B="$4" | |
local C_NAME="$5" | |
local C="$6" | |
local D_NAME="$7" |