diff options
author | zotlabs <mike@macgirvin.com> | 2017-07-25 15:59:58 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-07-25 15:59:58 -0700 |
commit | c24cfbc62af111f18576cfde8e4e920e66c57ff5 (patch) | |
tree | f1f7454a202b959ba82712f8c300f3500195cdfb /include/crypto.php | |
parent | ddecbf052eabe92f61091bcd2541190b1037e466 (diff) | |
download | volse-hubzilla-c24cfbc62af111f18576cfde8e4e920e66c57ff5.tar.gz volse-hubzilla-c24cfbc62af111f18576cfde8e4e920e66c57ff5.tar.bz2 volse-hubzilla-c24cfbc62af111f18576cfde8e4e920e66c57ff5.zip |
make signing methods variable and signable
Diffstat (limited to 'include/crypto.php')
-rw-r--r-- | include/crypto.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/crypto.php b/include/crypto.php index 2c5545e9b..6ac3fd732 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -185,6 +185,16 @@ function crypto_methods() { } +function signing_methods() { + + + $r = [ 'sha256' ]; + call_hooks('signing_methods',$r); + return $r; + +} + + function aes_encapsulate($data,$pubkey) { if(! $pubkey) logger('aes_encapsulate: no key. data: ' . $data); |