aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-11-07 09:11:06 -0500
committerJack Lloyd <[email protected]>2018-11-07 09:11:06 -0500
commitd7f0634af763484bca5ce1992d1c187a7e003e03 (patch)
treeb8ba76f42c13467c44136552117934f967248a7f /src/lib/pubkey
parent506fa234b9ffced313fae452d6d1f06dee51a796 (diff)
Avoid using std::invalid_argument
See #1726
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/ed25519/ed25519_fe.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/ed25519/ed25519_fe.h b/src/lib/pubkey/ed25519/ed25519_fe.h
index 87ab9caf3..7e0b4e6ab 100644
--- a/src/lib/pubkey/ed25519/ed25519_fe.h
+++ b/src/lib/pubkey/ed25519/ed25519_fe.h
@@ -29,7 +29,7 @@ class FE_25519
FE_25519(int init = 0)
{
if(init != 0 && init != 1)
- { throw std::invalid_argument("Invalid FE_25519 initial value"); }
+ { throw Invalid_Argument("Invalid FE_25519 initial value"); }
memset(m_fe, 0, 10 * sizeof(int32_t));
m_fe[0] = init;
}
@@ -37,7 +37,7 @@ class FE_25519
FE_25519(std::initializer_list<int32_t> x)
{
if(x.size() != 10)
- { throw std::invalid_argument("Invalid FE_25519 initializer list"); }
+ { throw Invalid_Argument("Invalid FE_25519 initializer list"); }
memcpy(m_fe, x.begin(), 10 * sizeof(int32_t));
}