aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/cc_enc.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-12-19 16:09:17 -0500
committerJack Lloyd <[email protected]>2015-12-19 16:09:17 -0500
commit0fae1884079518e4f6d1c049cc7f341cd96c8a65 (patch)
tree41e3a8aea10b7381c0e2cfd4ee019745215876ac /src/cli/cc_enc.cpp
parentb3da432772628fdb3eed9cf5dabb54eda0097d2b (diff)
Remove all remaining uses of throwing a std:: exception directly
See GH #340 and 6b9a3a5 for background
Diffstat (limited to 'src/cli/cc_enc.cpp')
-rw-r--r--src/cli/cc_enc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/cc_enc.cpp b/src/cli/cc_enc.cpp
index 25c9b960b..35932b487 100644
--- a/src/cli/cc_enc.cpp
+++ b/src/cli/cc_enc.cpp
@@ -75,7 +75,7 @@ uint64_t encrypt_cc_number(uint64_t cc_number,
const Botan::BigInt c = Botan::FPE::fe1_encrypt(n, cc_ranked, key, tweak);
if(c.bits() > 50)
- throw std::runtime_error("FPE produced a number too large");
+ throw Botan::Internal_Error("FPE produced a number too large");
uint64_t enc_cc = 0;
for(size_t i = 0; i != 7; ++i)