[New-bugs-announce] [issue31933] some Blake2 parameters are encoded backwards on big-endian platforms

Jack O'Connor report at bugs.python.org
Fri Nov 3 08:27:26 EDT 2017


New submission from Jack O'Connor <oconnor663 at gmail.com>:

See https://github.com/BLAKE2/libb2/issues/12.

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.

----------
messages: 305473
nosy: oconnor663
priority: normal
severity: normal
status: open
title: some Blake2 parameters are encoded backwards on big-endian platforms
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31933>
_______________________________________


More information about the New-bugs-announce mailing list