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 as arrays |
8 | * Handles signatures as arrays |
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 18... | Line 20... | ||
18 | use phpseclib3\Math\BigInteger; |
20 | use phpseclib3\Math\BigInteger; |
19 | 21 | ||
20 | /** |
22 | /** |
21 | * Raw Signature Handler |
23 | * Raw Signature Handler |
22 | * |
24 | * |
- | 25 | * @package Common |
|
23 | * @author Jim Wigginton <terrafrost@php.net> |
26 | * @author Jim Wigginton <terrafrost@php.net> |
- | 27 | * @access public |
|
24 | */ |
28 | */ |
25 | abstract class Raw |
29 | abstract class Raw |
26 | { |
30 | { |
27 | /** |
31 | /** |
28 | * Loads a signature |
32 | * Loads a signature |
29 | * |
33 | * |
- | 34 | * @access public |
|
30 | * @param array $sig |
35 | * @param array $sig |
31 | * @return array|bool |
36 | * @return array|bool |
32 | */ |
37 | */ |
33 | public static function load($sig) |
38 | public static function load($sig) |
34 | { |
39 | { |
Line 47... | Line 52... | ||
47 | } |
52 | } |
48 | 53 | ||
49 | /** |
54 | /** |
50 | * Returns a signature in the appropriate format |
55 | * Returns a signature in the appropriate format |
51 | * |
56 | * |
- | 57 | * @access public |
|
52 | * @param \phpseclib3\Math\BigInteger $r |
58 | * @param \phpseclib3\Math\BigInteger $r |
53 | * @param \phpseclib3\Math\BigInteger $s |
59 | * @param \phpseclib3\Math\BigInteger $s |
54 | * @return string |
60 | * @return string |
55 | */ |
61 | */ |
56 | public static function save(BigInteger $r, BigInteger $s) |
62 | public static function save(BigInteger $r, BigInteger $s) |