Subversion Repositories oidplus

Rev

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

Rev 846 Rev 874
Line 5... Line 5...
5
 *
5
 *
6
 * PHP version 5
6
 * PHP version 5
7
 *
7
 *
8
 * Handles signatures in the format used by SSH2
8
 * Handles signatures in the format used by SSH2
9
 *
9
 *
-
 
10
 * @category  Crypt
-
 
11
 * @package   Common
10
 * @author    Jim Wigginton <terrafrost@php.net>
12
 * @author    Jim Wigginton <terrafrost@php.net>
11
 * @copyright 2016 Jim Wigginton
13
 * @copyright 2016 Jim Wigginton
12
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
14
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
13
 * @link      http://phpseclib.sourceforge.net
15
 * @link      http://phpseclib.sourceforge.net
14
 */
16
 */
Line 19... Line 21...
19
use phpseclib3\Math\BigInteger;
21
use phpseclib3\Math\BigInteger;
20
 
22
 
21
/**
23
/**
22
 * SSH2 Signature Handler
24
 * SSH2 Signature Handler
23
 *
25
 *
-
 
26
 * @package Common
24
 * @author  Jim Wigginton <terrafrost@php.net>
27
 * @author  Jim Wigginton <terrafrost@php.net>
-
 
28
 * @access  public
25
 */
29
 */
26
abstract class SSH2
30
abstract class SSH2
27
{
31
{
28
    /**
32
    /**
29
     * Loads a signature
33
     * Loads a signature
30
     *
34
     *
-
 
35
     * @access public
31
     * @param string $sig
36
     * @param string $sig
32
     * @return mixed
37
     * @return mixed
33
     */
38
     */
34
    public static function load($sig)
39
    public static function load($sig)
35
    {
40
    {
Line 64... Line 69...
64
    }
69
    }
65
 
70
 
66
    /**
71
    /**
67
     * Returns a signature in the appropriate format
72
     * Returns a signature in the appropriate format
68
     *
73
     *
-
 
74
     * @access public
69
     * @param \phpseclib3\Math\BigInteger $r
75
     * @param \phpseclib3\Math\BigInteger $r
70
     * @param \phpseclib3\Math\BigInteger $s
76
     * @param \phpseclib3\Math\BigInteger $s
71
     * @param string $curve
77
     * @param string $curve
72
     * @return string
78
     * @return string
73
     */
79
     */