mirror of
https://github.com/python/cpython
synced 2024-11-02 11:04:01 +00:00
dcfb0e3c04
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. |
||
---|---|---|
.. | ||
clinic | ||
impl | ||
blake2b2s.py | ||
blake2b_impl.c | ||
blake2module.c | ||
blake2ns.h | ||
blake2s_impl.c |