aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_ope.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2018-07-10 20:10:22 +0300
committerNick Mathewson <nickm@torproject.org>2018-07-17 15:57:46 -0400
commit0140052a356cdcfe0e2da25aee6b8c376815528c (patch)
tree2983b9e2454b77ca89605f12bbd2fc0a30f4cb70 /src/lib/crypt_ops/crypto_ope.h
parentd8b71609cb9c2ce15b6a26d11b2bcdedf15b915e (diff)
downloadtor-0140052a356cdcfe0e2da25aee6b8c376815528c.tar.gz
tor-0140052a356cdcfe0e2da25aee6b8c376815528c.zip
Make the OPE scheme return CRYPTO_OPE_ERROR on error.
Instead of UINT64_MAX.
Diffstat (limited to 'src/lib/crypt_ops/crypto_ope.h')
-rw-r--r--src/lib/crypt_ops/crypto_ope.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_ope.h b/src/lib/crypt_ops/crypto_ope.h
index 823524f84e..19ec3e495e 100644
--- a/src/lib/crypt_ops/crypto_ope.h
+++ b/src/lib/crypt_ops/crypto_ope.h
@@ -26,6 +26,8 @@
*/
#define OPE_INPUT_MAX (1<<18)
+#define CRYPTO_OPE_ERROR UINT64_MAX
+
typedef struct crypto_ope_c crypto_ope_t;
crypto_ope_t *crypto_ope_new(const uint8_t *key);