hash/tiger: use read_array to avoid alignment issues
This commit is contained in:
parent
f93e7da88f
commit
9428d5ee60
@ -347,14 +347,9 @@ tiger::operator() (cruft::view<u08 const *> data) noexcept
|
|||||||
while (bytes.size () >= 64) {
|
while (bytes.size () >= 64) {
|
||||||
auto [head08, tail] = bytes.split (8 * 8);
|
auto [head08, tail] = bytes.split (8 * 8);
|
||||||
bytes = tail;
|
bytes = tail;
|
||||||
auto head64 = head08.cast<u64 const*> ();
|
|
||||||
|
|
||||||
std::array<u64,8> x;
|
std::array<u64,8> x;
|
||||||
std::copy (
|
read_array (head08, x);
|
||||||
std::begin (head64),
|
|
||||||
std::end (head64),
|
|
||||||
std::begin (x)
|
|
||||||
);
|
|
||||||
|
|
||||||
u64 aa = a, bb = b, cc = c;
|
u64 aa = a, bb = b, cc = c;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user