From 0140052a356cdcfe0e2da25aee6b8c376815528c Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Tue, 10 Jul 2018 20:10:22 +0300 Subject: Make the OPE scheme return CRYPTO_OPE_ERROR on error. Instead of UINT64_MAX. --- src/lib/crypt_ops/crypto_ope.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/crypt_ops/crypto_ope.h') 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); -- cgit v1.2.3-54-g00ecf