From: bors Date: Wed, 11 Jan 2017 01:33:03 +0000 (+0000) Subject: Auto merge of #38960 - arielb1:blake-endian, r=michaelwoerister X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e4fee525e04838dabc82beed5ae1a06051be53fd;p=rust.git Auto merge of #38960 - arielb1:blake-endian, r=michaelwoerister Use little-endian encoding for Blake2 hashing on all architectures Like many hash functions, the blake2 hash is mathematically defined on a sequence of 64-bit words. As Rust's hash interface operates on sequences of octets, some encoding must be used to bridge that difference. The Blake2 RFC (RFC 7693) specifies that: ``` Byte (octet) streams are interpreted as words in little-endian order, with the least-significant byte first. ``` So use that encoding consistently. Fixes #38891. Beta-nominating since this is a regression since 1.15. r? @michaelwoerister --- e4fee525e04838dabc82beed5ae1a06051be53fd