From 2001c91cd4fe9af31b3fc581e803cdefec65e61b Mon Sep 17 00:00:00 2001 From: Ashish Bhanu Daulatabad Date: Sat, 10 Apr 2021 22:55:03 +0530 Subject: [PATCH] Feat: Elliptic Curve Diffie Hellman Key Exchange, Ciphers: Error handling-bit handling --- ciphers/uint256_t.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ciphers/uint256_t.hpp b/ciphers/uint256_t.hpp index 72dea6dff..979543019 100644 --- a/ciphers/uint256_t.hpp +++ b/ciphers/uint256_t.hpp @@ -646,7 +646,7 @@ class uint256_t { template ::value, T>::type> inline uint256_t operator&(const T &p) { - return uint256_t(p & s); + return *this & uint256_t(p); } inline uint256_t operator&(const uint256_t &p) { @@ -669,7 +669,7 @@ class uint256_t { template ::value, T>::type> inline uint256_t operator|(const T &p) { - return uint256_t(this->s | p); + return *this | uint256_t(p); } inline uint256_t operator|(const uint256_t &p) {