mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Feat: Elliptic Curve Diffie Hellman Key Exchange, Ciphers: Error handling
This commit is contained in:
parent
d87f29fe23
commit
c2db976979
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user