Rev 846 | Rev 1042 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 846 | Rev 874 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | /** |
3 | /** |
4 | * DSA Public Key |
4 | * DSA Public Key |
5 | * |
5 | * |
- | 6 | * @category Crypt |
|
- | 7 | * @package DSA |
|
6 | * @author Jim Wigginton <terrafrost@php.net> |
8 | * @author Jim Wigginton <terrafrost@php.net> |
7 | * @copyright 2015 Jim Wigginton |
9 | * @copyright 2015 Jim Wigginton |
8 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
10 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
9 | * @link http://phpseclib.sourceforge.net |
11 | * @link http://phpseclib.sourceforge.net |
10 | */ |
12 | */ |
Line 16... | Line 18... | ||
16 | use phpseclib3\Crypt\DSA\Formats\Signature\ASN1 as ASN1Signature; |
18 | use phpseclib3\Crypt\DSA\Formats\Signature\ASN1 as ASN1Signature; |
17 | 19 | ||
18 | /** |
20 | /** |
19 | * DSA Public Key |
21 | * DSA Public Key |
20 | * |
22 | * |
- | 23 | * @package DSA |
|
21 | * @author Jim Wigginton <terrafrost@php.net> |
24 | * @author Jim Wigginton <terrafrost@php.net> |
- | 25 | * @access public |
|
22 | */ |
26 | */ |
23 | class PublicKey extends DSA implements Common\PublicKey |
27 | class PublicKey extends DSA implements Common\PublicKey |
24 | { |
28 | { |
25 | use Common\Traits\Fingerprint; |
29 | use Common\Traits\Fingerprint; |
26 | 30 | ||
27 | /** |
31 | /** |
28 | * Verify a signature |
32 | * Verify a signature |
29 | * |
33 | * |
30 | * @see self::verify() |
34 | * @see self::verify() |
- | 35 | * @access public |
|
31 | * @param string $message |
36 | * @param string $message |
32 | * @param string $signature |
37 | * @param string $signature |
33 | * @return mixed |
38 | * @return mixed |
34 | */ |
39 | */ |
35 | public function verify($message, $signature) |
40 | public function verify($message, $signature) |