Skip to content

Commit ddf21c5

Browse files
committed
Rename sha algorithm::bytes to ::endian.
1 parent e4fa7a2 commit ddf21c5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/bitcoin/system/hash/sha/algorithm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class algorithm
415415
/// -----------------------------------------------------------------------
416416

417417
template <bool Swap>
418-
INLINE static xint128_t bytes(xint128_t message) NOEXCEPT;
418+
INLINE static xint128_t endian(xint128_t message) NOEXCEPT;
419419
INLINE static void shuffle(xint128_t& state0, xint128_t& state1) NOEXCEPT;
420420
INLINE static void unshuffle(xint128_t& state0, xint128_t& state1) NOEXCEPT;
421421
INLINE static void prepare(xint128_t& message0, xint128_t message1) NOEXCEPT;

include/bitcoin/system/impl/hash/sha/algorithm_native.ipp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace sha {
3333
TEMPLATE
3434
template <bool Swap>
3535
INLINE xint128_t CLASS::
36-
bytes(xint128_t message) NOEXCEPT
36+
endian(xint128_t message) NOEXCEPT
3737
{
3838
if constexpr (Swap && !is_big_endian)
3939
return byteswap<uint32_t>(message);
@@ -89,10 +89,10 @@ native_rounds(xint128_t& lo, xint128_t& hi, const block_t& block) NOEXCEPT
8989
{
9090
const auto& wblock = array_cast<xint128_t>(block);
9191

92-
auto message0 = bytes<Swap>(load(wblock[0]));
93-
auto message1 = bytes<Swap>(load(wblock[1]));
94-
auto message2 = bytes<Swap>(load(wblock[2]));
95-
auto message3 = bytes<Swap>(load(wblock[3]));
92+
auto message0 = endian<Swap>(load(wblock[0]));
93+
auto message1 = endian<Swap>(load(wblock[1]));
94+
auto message2 = endian<Swap>(load(wblock[2]));
95+
auto message3 = endian<Swap>(load(wblock[3]));
9696

9797
const auto start_lo = lo;
9898
const auto start_hi = hi;

0 commit comments

Comments
 (0)