Subversion Repositories oidplus

Rev

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
 * EC Public Key
4
 * EC Public Key
5
 *
5
 *
-
 
6
 * @category  Crypt
-
 
7
 * @package   EC
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 24... Line 26...
24
use phpseclib3\Math\BigInteger;
26
use phpseclib3\Math\BigInteger;
25
 
27
 
26
/**
28
/**
27
 * EC Public Key
29
 * EC Public Key
28
 *
30
 *
-
 
31
 * @package EC
29
 * @author  Jim Wigginton <terrafrost@php.net>
32
 * @author  Jim Wigginton <terrafrost@php.net>
-
 
33
 * @access  public
30
 */
34
 */
31
class PublicKey extends EC implements Common\PublicKey
35
class PublicKey extends EC implements Common\PublicKey
32
{
36
{
33
    use Common\Traits\Fingerprint;
37
    use Common\Traits\Fingerprint;
34
 
38
 
35
    /**
39
    /**
36
     * Verify a signature
40
     * Verify a signature
37
     *
41
     *
38
     * @see self::verify()
42
     * @see self::verify()
-
 
43
     * @access public
39
     * @param string $message
44
     * @param string $message
40
     * @param string $signature
45
     * @param string $signature
41
     * @return mixed
46
     * @return mixed
42
     */
47
     */
43
    public function verify($message, $signature)
48
    public function verify($message, $signature)