Copy implementation from https://github.com/BLAKE2/BLAKE2, add runtime detection of SSE2 and add the switch function. Signed-off-by: David Sterba <dsterba@suse.com>