From c24cfbc62af111f18576cfde8e4e920e66c57ff5 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 25 Jul 2017 15:59:58 -0700 Subject: make signing methods variable and signable --- include/crypto.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/crypto.php') 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); -- cgit v1.2.3