From 1ed93c5d7d367d660bb336f938f6939fc3f677f5 Mon Sep 17 00:00:00 2001 From: squaresmini Date: Fri, 22 Nov 2024 11:39:57 +0100 Subject: [PATCH] Fix value EVP_PKEY_OP_TYPE_CRYPT as declared by OpenSSL --- lib/resty/evp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resty/evp.lua b/lib/resty/evp.lua index 40c4545..01b8d61 100644 --- a/lib/resty/evp.lua +++ b/lib/resty/evp.lua @@ -27,7 +27,7 @@ local CONST = { EVP_PKEY_ALG_CTRL = 0x1000, EVP_PKEY_CTRL_RSA_PADDING = 0x1000 + 1, - EVP_PKEY_OP_TYPE_CRYPT = 768, + EVP_PKEY_OP_TYPE_CRYPT = 1536, EVP_PKEY_CTRL_RSA_OAEP_MD = 0x1000 + 9 } _M.CONST = CONST