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 9... | Line 9... | ||
9 | * supports signature modes and so the application of server generated keys and key recovery is of limited |
9 | * supports signature modes and so the application of server generated keys and key recovery is of limited |
10 | * value" |
10 | * value" |
11 | * |
11 | * |
12 | * PHP version 5 |
12 | * PHP version 5 |
13 | * |
13 | * |
- | 14 | * @category Crypt |
|
- | 15 | * @package DSA |
|
14 | * @author Jim Wigginton <terrafrost@php.net> |
16 | * @author Jim Wigginton <terrafrost@php.net> |
15 | * @copyright 2015 Jim Wigginton |
17 | * @copyright 2015 Jim Wigginton |
16 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
18 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
17 | * @link http://phpseclib.sourceforge.net |
19 | * @link http://phpseclib.sourceforge.net |
18 | */ |
20 | */ |
Line 25... | Line 27... | ||
25 | use phpseclib3\Math\BigInteger; |
27 | use phpseclib3\Math\BigInteger; |
26 | 28 | ||
27 | /** |
29 | /** |
28 | * XML Formatted DSA Key Handler |
30 | * XML Formatted DSA Key Handler |
29 | * |
31 | * |
- | 32 | * @package DSA |
|
30 | * @author Jim Wigginton <terrafrost@php.net> |
33 | * @author Jim Wigginton <terrafrost@php.net> |
- | 34 | * @access public |
|
31 | */ |
35 | */ |
32 | abstract class XML |
36 | abstract class XML |
33 | { |
37 | { |
34 | /** |
38 | /** |
35 | * Break a public or private key down into its constituent components |
39 | * Break a public or private key down into its constituent components |
36 | * |
40 | * |
- | 41 | * @access public |
|
37 | * @param string $key |
42 | * @param string $key |
38 | * @param string $password optional |
43 | * @param string $password optional |
39 | * @return array |
44 | * @return array |
40 | */ |
45 | */ |
41 | public static function load($key, $password = '') |
46 | public static function load($key, $password = '') |
Line 113... | Line 118... | ||
113 | /** |
118 | /** |
114 | * Convert a public key to the appropriate format |
119 | * Convert a public key to the appropriate format |
115 | * |
120 | * |
116 | * See https://www.w3.org/TR/xmldsig-core/#sec-DSAKeyValue |
121 | * See https://www.w3.org/TR/xmldsig-core/#sec-DSAKeyValue |
117 | * |
122 | * |
- | 123 | * @access public |
|
118 | * @param \phpseclib3\Math\BigInteger $p |
124 | * @param \phpseclib3\Math\BigInteger $p |
119 | * @param \phpseclib3\Math\BigInteger $q |
125 | * @param \phpseclib3\Math\BigInteger $q |
120 | * @param \phpseclib3\Math\BigInteger $g |
126 | * @param \phpseclib3\Math\BigInteger $g |
121 | * @param \phpseclib3\Math\BigInteger $y |
127 | * @param \phpseclib3\Math\BigInteger $y |
122 | * @return string |
128 | * @return string |