aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs/cryptobox/cryptobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/constructs/cryptobox/cryptobox.cpp')
-rw-r--r--src/constructs/cryptobox/cryptobox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constructs/cryptobox/cryptobox.cpp b/src/constructs/cryptobox/cryptobox.cpp
index ba7553c55..20435fa59 100644
--- a/src/constructs/cryptobox/cryptobox.cpp
+++ b/src/constructs/cryptobox/cryptobox.cpp
@@ -135,7 +135,7 @@ std::string decrypt(const byte input[], u32bit input_len,
if(!same_mem(computed_mac, ciphertext + VERSION_CODE_LEN + PBKDF_SALT_LEN,
MAC_OUTPUT_LEN))
- throw Integrity_Failure("CryptoBox integrity failure");
+ throw Decoding_Error("CryptoBox integrity failure");
return pipe.read_all_as_string(0);
}