From 4a06378d672cd355e337b2456096e76f698cf163 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 14 Nov 2018 18:19:35 -0800 Subject: crypto fix --- include/crypto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crypto.php b/include/crypto.php index fc1029e55..39bfd8d43 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -225,7 +225,7 @@ function crypto_unencapsulate($data,$prvkey) { if(! $data) return; - $alg = ((is_array($data) && array_key_exists('encrypted',$data)) ? $data['alg'] : ''); + $alg = ((is_array($data) && (array_key_exists('encrypted',$data) || array_key_exists('iv',$data))) ? $data['alg'] : ''); if(! $alg) { return $data; } -- cgit v1.2.3