mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-05 20:48:22 +08:00
Feat: Elliptic Curve Diffie Hellman Key Exchange, Ciphers: Error handling
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user