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 53... | Line 58... | ||
53 | } |
58 | } |
54 | 59 | ||
55 | /** |
60 | /** |
56 | * Returns a signature in the appropriate format |
61 | * Returns a signature in the appropriate format |
57 | * |
62 | * |
- | 63 | * @access public |
|
58 | * @param \phpseclib3\Math\BigInteger $r |
64 | * @param \phpseclib3\Math\BigInteger $r |
59 | * @param \phpseclib3\Math\BigInteger $s |
65 | * @param \phpseclib3\Math\BigInteger $s |
60 | * @return string |
66 | * @return string |
61 | */ |
67 | */ |
62 | public static function save(BigInteger $r, BigInteger $s) |
68 | public static function save(BigInteger $r, BigInteger $s) |