diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-20 11:51:59 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-20 11:51:59 -0800 |
commit | ae8623e3afb5fe6f6693f0b5b520735a7afce12f (patch) | |
tree | 233193e8bf54c4720403bbf079f9a579bd62fbe9 /include | |
parent | 76b5c686460ed5fe4c93dc0e268d99dc9eb988b6 (diff) | |
download | volse-hubzilla-ae8623e3afb5fe6f6693f0b5b520735a7afce12f.tar.gz volse-hubzilla-ae8623e3afb5fe6f6693f0b5b520735a7afce12f.tar.bz2 volse-hubzilla-ae8623e3afb5fe6f6693f0b5b520735a7afce12f.zip |
encrypt/decrypt function not found
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto.php | 7 |
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)) { |