aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/crypto.php2
1 files changed, 1 insertions, 1 deletions
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;
}