Fully encrypt control data

This commit is contained in:
loki
2021-07-05 20:58:53 +02:00
parent a52f547726
commit a587338701
3 changed files with 108 additions and 18 deletions
+1 -1
View File
@@ -881,7 +881,7 @@ struct endian_helper<T, std::enable_if_t<
static inline T big(T x) {
if(!x) return x;
if constexpr(endianness<T>::big) {
if constexpr(endianness<T>::little) {
auto *data = reinterpret_cast<uint8_t *>(&*x);
std::reverse(data, data + sizeof(*x));