summaryrefslogtreecommitdiffstats
path: root/Modules/_blake2/blake2b_impl.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31933: fix blake2 multi-byte params on big endian platforms (GH-4250) ↵Miss Islington (bot)2017-11-031-2/+4
| | | | | | | | | | | | | | | (#4262) All Blake2 params have to be encoded in little-endian byte order. For the two multi-byte integer params, leaf_length and node_offset, that means that assigning a native-endian integer to them appears to work on little-endian platforms, but gives the wrong result on big-endian. The current libb2 API doesn't make that very clear, and @sneves is working on new API functions in the GH issue above. In the meantime, we can work around the problem by explicitly assigning little-endian values to the parameter block. See https://github.com/BLAKE2/libb2/issues/12. (cherry picked from commit dcfb0e3c04f1b29a0d09bb0a81dcd5ee5a5fef1a)
* more PY_LONG_LONG to long longBenjamin Peterson2016-09-081-2/+2
|
* Silence two warnings in blake2. key_length is between 0 and 64 (block size).Christian Heimes2016-09-071-1/+1
|
* Issue #26798: Add BLAKE2 (blake2b and blake2s) to hashlib.Christian Heimes2016-09-061-0/+460