aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/scalarproduct.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scalarproduct/scalarproduct.h')
-rw-r--r--src/scalarproduct/scalarproduct.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scalarproduct/scalarproduct.h b/src/scalarproduct/scalarproduct.h
index 43a866cf1..9304c0c7e 100644
--- a/src/scalarproduct/scalarproduct.h
+++ b/src/scalarproduct/scalarproduct.h
@@ -48,6 +48,13 @@ extern "C"
48 */ 48 */
49#define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/8 +1) 49#define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/8 +1)
50 50
51/**
52 * Log an error message at log-level 'level' that indicates
53 * a failure of the command 'cmd' with the message given
54 * by gcry_strerror(rc).
55 */
56#define LOG_GCRY(level, cmd, rc) do { LOG(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while(0)
57
51/////////////////////////////////////////////////////////////////////////////// 58///////////////////////////////////////////////////////////////////////////////
52// Scalar Product Message Types 59// Scalar Product Message Types
53/////////////////////////////////////////////////////////////////////////////// 60///////////////////////////////////////////////////////////////////////////////