aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/crypto.php7
1 files changed, 6 insertions, 1 deletions
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)) {