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