Make randen_slow endian-correct
authorBenjamin Barenblat <bbaren@google.com>
Mon, 7 Feb 2022 16:54:21 +0000 (16:54 +0000)
committerBenjamin Barenblat <bbaren@debian.org>
Mon, 7 Feb 2022 16:54:21 +0000 (16:54 +0000)
commit9d77a30321725733734bc0871a31cd6b937f6b45
treeb46f6ee7f6c4b6cd57221de5bdb1d4b1a05c0e80
parent4ca171f8a8a544d5998b7e8d1c647c3277cae91d
Make randen_slow endian-correct

Forwarded: yes
Applied-Upstream: https://github.com/abseil/abseil-cpp/commit/33541e751039a8c4bd3a395dd1a3a0928885814a

Pay attention to the platform endianness when pulling bytes out of each
AES block, and use platform-endian round keys.

The author works at Google. Upstream applied this patch as Piper
revision 383878281 and exported it to GitHub; the Applied-Upstream URL
above points to the exported commit.

Gbp-Pq: Name big-endian-random2.diff
absl/random/internal/BUILD.bazel
absl/random/internal/randen_slow.cc