From ae8623e3afb5fe6f6693f0b5b520735a7afce12f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 20 Feb 2018 11:51:59 -0800 Subject: encrypt/decrypt function not found --- include/crypto.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/crypto.php b/include/crypto.php index f9cf20deb..11654564e 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -128,6 +128,9 @@ function other_encapsulate($data,$pubkey,$alg) { $oaep = true; $subalg = substr($alg,0,-5); } + else { + $subalg = $alg; + } $fn = strtoupper($subalg) . '_encrypt'; @@ -232,7 +235,9 @@ function other_unencapsulate($data,$prvkey,$alg) { $oaep = true; $subalg = substr($alg,0,-5); } - + else { + $subalg = $alg; + } $fn = strtoupper($subalg) . '_decrypt'; if(function_exists($fn)) { -- cgit v1.2.3