blake2b-opt
blake2b-opt copied to clipboard
Optimized, portable implementations of BLAKE2b
On an [Exherbo](https://exherbo.org/) install with an i5 M-series CPU, I cannot get `./configure --pic && make shared` to successfully build. I do not currently have another environment to test this...
The new code works correctly on 64-bit systems even if the address of blake2b_sigma doesn't fit into 32 bits, and it's PIC safe.
I've tried to compile the code on OSX system. However, the compilation failed with the following error: ``` clang -cc1as: fatal error: error in backend: 32-bit absolute addressing is not...
In reference implementation, `keylen` is xor'ed to the second byte of `h`. This patch implements the same logic here.