diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-07-10 20:10:22 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-17 15:57:46 -0400 |
commit | 0140052a356cdcfe0e2da25aee6b8c376815528c (patch) | |
tree | 2983b9e2454b77ca89605f12bbd2fc0a30f4cb70 /src/lib/crypt_ops/crypto_ope.h | |
parent | d8b71609cb9c2ce15b6a26d11b2bcdedf15b915e (diff) | |
download | tor-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.h | 2 |
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); |