make signing methods variable and signable

This commit is contained in:
zotlabs
2017-07-25 15:59:58 -07:00
parent ddecbf052e
commit c24cfbc62a
3 changed files with 13 additions and 2 deletions

View File

@@ -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);