From ec8419fc7968002224036153c8bc36d8120a5bb5 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 8 Apr 2012 01:40:11 -0700 Subject: [PATCH] Warn about throwing. --- src/ECIES.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ECIES.cpp b/src/ECIES.cpp index c3ba79481..94e477054 100644 --- a/src/ECIES.cpp +++ b/src/ECIES.cpp @@ -32,6 +32,9 @@ // 3) Encrypted: Original plaintext // 4) Encrypted: Rest of block/padding +// ECIES operations throw on any error such as a corrupt message or incorrect +// key. They *must* be called in try/catch blocks. + // Algorithmic choices: #define ECIES_KEY_HASH SHA512 // Hash used to expand shared secret #define ECIES_KEY_LENGTH (512/8) // Size of expanded shared secret