Feat: Elliptic Curve Diffie Hellman Key Exchange, Ciphers: Error handling

This commit is contained in:
Ashish Bhanu Daulatabad 2021-04-10 22:03:38 +05:30
parent d87f29fe23
commit c2db976979
2 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,9 @@ class uint128_t {
public:
uint128_t() = default;
template <typename T, typename = typename std::enable_if<
std::is_integral<T>::value, T>::type>
explicit uint128_t(T low) : s(low), f(0) {}
/**
* @brief Parameterized constructor
* @param low lower part 8-bit unisgned integer

View File

@ -65,6 +65,10 @@ class uint256_t {
// Constructors
uint256_t() = default;
template <typename T, typename = typename std::enable_if<
std::is_integral<T>::value, T>::type>
explicit uint256_t(T low) : s(low), f(0) {}
/**
* @brief Parameterized constructor
* @param low lower part 8-bit unisgned integer