aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-20 11:51:59 -0800
committerzotlabs <mike@macgirvin.com>2018-02-20 11:51:59 -0800
commitae8623e3afb5fe6f6693f0b5b520735a7afce12f (patch)
tree233193e8bf54c4720403bbf079f9a579bd62fbe9 /include/crypto.php
parent76b5c686460ed5fe4c93dc0e268d99dc9eb988b6 (diff)
downloadvolse-hubzilla-ae8623e3afb5fe6f6693f0b5b520735a7afce12f.tar.gz
volse-hubzilla-ae8623e3afb5fe6f6693f0b5b520735a7afce12f.tar.bz2
volse-hubzilla-ae8623e3afb5fe6f6693f0b5b520735a7afce12f.zip
encrypt/decrypt function not found
Diffstat (limited to 'include/crypto.php')
-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)) {