Subversion Repositories oidplus

Rev

Rev 1143 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1143 Rev 1162
Line 66... Line 66...
66
 * @param string $privkey
66
 * @param string $privkey
67
 * @param string $pubkey
67
 * @param string $pubkey
68
 * @return string
68
 * @return string
69
 * @throws Exception
69
 * @throws Exception
70
 */
70
 */
71
function oidplus_json_sign(string $json_content, string $privkey, string $pubkey) {
71
function oidplus_json_sign(string $json_content, string $privkey, string $pubkey): string {
72
        require_once __DIR__.'/vendor/autoload.php';
72
        require_once __DIR__.'/vendor/autoload.php';
73
 
73
 
74
        $jws = new \SBrook\JWS\JwsRsa();
74
        $jws = new \SBrook\JWS\JwsRsa();
75
 
75
 
76
        // Load JSON
76
        // Load JSON