Subversion Repositories oidplus

Rev

Rev 874 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 874 Rev 1042
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
-
 
12
 * @author    Jim Wigginton <terrafrost@php.net>
10
 * @author    Jim Wigginton <terrafrost@php.net>
13
 * @copyright 2016 Jim Wigginton
11
 * @copyright 2016 Jim Wigginton
14
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
12
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
15
 * @link      http://phpseclib.sourceforge.net
13
 * @link      http://phpseclib.sourceforge.net
16
 */
14
 */
Line 21... Line 19...
21
use phpseclib3\Math\BigInteger;
19
use phpseclib3\Math\BigInteger;
22
 
20
 
23
/**
21
/**
24
 * SSH2 Signature Handler
22
 * SSH2 Signature Handler
25
 *
23
 *
26
 * @package Common
-
 
27
 * @author  Jim Wigginton <terrafrost@php.net>
24
 * @author  Jim Wigginton <terrafrost@php.net>
28
 * @access  public
-
 
29
 */
25
 */
30
abstract class SSH2
26
abstract class SSH2
31
{
27
{
32
    /**
28
    /**
33
     * Loads a signature
29
     * Loads a signature
34
     *
30
     *
35
     * @access public
-
 
36
     * @param string $sig
31
     * @param string $sig
37
     * @return mixed
32
     * @return mixed
38
     */
33
     */
39
    public static function load($sig)
34
    public static function load($sig)
40
    {
35
    {
Line 58... Line 53...
58
    }
53
    }
59
 
54
 
60
    /**
55
    /**
61
     * Returns a signature in the appropriate format
56
     * Returns a signature in the appropriate format
62
     *
57
     *
63
     * @access public
-
 
64
     * @param \phpseclib3\Math\BigInteger $r
58
     * @param \phpseclib3\Math\BigInteger $r
65
     * @param \phpseclib3\Math\BigInteger $s
59
     * @param \phpseclib3\Math\BigInteger $s
66
     * @return string
60
     * @return string
67
     */
61
     */
68
    public static function save(BigInteger $r, BigInteger $s)
62
    public static function save(BigInteger $r, BigInteger $s)