OpenWebNet password: Difference between revisions
Content added Content deleted
(New post.) |
m (Minor formatting of code.) |
||
Line 77: | Line 77: | ||
int64_t own_password_calculation(const int64_t& password, const std::string& nonce) { |
int64_t own_password_calculation(const int64_t& password, const std::string& nonce) { |
||
const int64_t m1 = 0xFFFF' |
const int64_t m1 = 0xFFFF'FFFF; |
||
const int64_t m8 = 0xFFFF' |
const int64_t m8 = 0xFFFF'FFF8; |
||
const int64_t m16 = 0xFFFF' |
const int64_t m16 = 0xFFFF'FFF0; |
||
const int64_t m128 = 0xFFFF' |
const int64_t m128 = 0xFFFF'FF80; |
||
const int64_t m16777216 = 0xFF00' |
const int64_t m16777216 = 0xFF00'0000; |
||
bool flag = true; |
bool flag = true; |