about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-01-10 16:24:06 +0200
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-01-10 20:43:32 +0200
commita89475d7ec8556d7d51f690e75a948f19787114b (patch)
treeb8f9e6fdf06f635fc255df158729931143687d1b /src/test/run-pass/thinlto
parent7ef1a69d2e05d86e0893763d2c86677e9c5f3d99 (diff)
downloadrust-a89475d7ec8556d7d51f690e75a948f19787114b.tar.gz
rust-a89475d7ec8556d7d51f690e75a948f19787114b.zip
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.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions