phpDocumentor Security
[ class tree: Security ] [ index: Security ] [ all elements ]

Class: Security_DSA

Source Location: /DSA.php

Class Security_DSA

Class Overview

Security_DSA

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/bsd-license.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Located in /DSA.php [line 32]



		
				Author(s):
		
Information Tags:
Copyright:  

(c) 2004 Daiji Hriata All Right Reserved.

Author: Daiji Hriata (DSA verify logic in Auth_TypeKey) Author: ishinao <[email protected]> (repackage to Security_DSA) $Id$

MODIFICATION 2006-11-19 Katsumi Saito <[email protected]>

= how to use = if (Security_DSA::verify($message, $sig, $sigKey)) { echo 'verify success'; } else { echo 'verify failed'; }

License:  New BSD License

Methods

[ Top ]
Method Summary
boolean   verify()   DSA verify
void   _bindecBcmath()   binary decode using bcmath extension
void   _bindecGmp()   binary decode using gmp extension
void   _exgcdBcmath()   exgcd using bcmath extension
void   _hexdecBcmath()   hex decode using bcmath extension
void   _invertBcmath()   invert using bcmath extension
void   _powmodBcmath()   powmod using bcmath extension
void   _verifyByBcmath()   verify using bcmath extension
void   _verifyByGmp()   verify using gmp extendsions

[ Top ]
Methods
verify  [line 43]

  boolean verify( string $message, string $sig, array $sigKeys  )

DSA verify

Parameters:
string   $message:  message
string   $sig:  signature
array   $sigKeys:  key

API Tags:
Return:  if success

Information Tags:
Exception:  Exception if extension not exists

[ Top ]
_bindecBcmath  [line 168]

  void _bindecBcmath( $bin  )

binary decode using bcmath extension

Parameters:
   $bin: 


[ Top ]
_bindecGmp  [line 99]

  void _bindecGmp( $bin  )

binary decode using gmp extension

Parameters:
   $bin: 


[ Top ]
_exgcdBcmath  [line 200]

  void _exgcdBcmath( $x, $y  )

exgcd using bcmath extension

Parameters:
   $x: 
   $y: 


[ Top ]
_hexdecBcmath  [line 156]

  void _hexdecBcmath( $hex  )

hex decode using bcmath extension

Parameters:
   $hex: 


[ Top ]
_invertBcmath  [line 180]

  void _invertBcmath( $x, $y  )

invert using bcmath extension

Parameters:
   $x: 
   $y: 


[ Top ]
_powmodBcmath  [line 225]

  void _powmodBcmath( $x, $y, $mod  )

powmod using bcmath extension

Parameters:
   $x: 
   $y: 
   $mod: 


[ Top ]
_verifyByBcmath  [line 111]

  void _verifyByBcmath( $message, $sig, $sigKeys  )

verify using bcmath extension

Parameters:
   $message: 
   $sig: 
   $sigKeys: 


[ Top ]
_verifyByGmp  [line 57]

  void _verifyByGmp( $message, $sig, $sigKeys  )

verify using gmp extendsions

Parameters:
   $message: 
   $sig: 
   $sigKeys: 


[ Top ]

Documentation generated on Mon, 09 Jul 2007 21:56:09 +0900 by phpDocumentor 1.3.2