[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
Copyright: | Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
License: | http://framework.zend.com/license/new-bsd New BSD License |
Version: | $Id: DiffieHellman.php 24593 2012-01-05 20:35:02Z matthew $ |
File Size: | 380 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 2 files include/Zend/Crypt/Math.php include/Zend/Crypt/DiffieHellman/Exception.php |
Zend_Crypt_DiffieHellman:: (15 methods):
__construct()
generateKeys()
setPublicKey()
getPublicKey()
computeSecretKey()
getSharedSecretKey()
setPrime()
getPrime()
setGenerator()
getGenerator()
setPrivateKey()
getPrivateKey()
hasPrivateKey()
setBigIntegerMath()
_generatePrivateKey()
Class: Zend_Crypt_DiffieHellman - X-Ref
PHP implementation of the Diffie-Hellman public key encryption algorithm.__construct($prime, $generator, $privateKey = null, $privateKeyType = self::NUMBER) X-Ref |
Constructor; if set construct the object using the parameter array to set values for Prime, Generator and Private. If a Private Key is not set, one will be generated at random. param: string $prime param: string $generator param: string $privateKey param: string $privateKeyType return: void |
generateKeys() X-Ref |
Generate own public key. If a private number has not already been set, one will be generated at this stage. return: Zend_Crypt_DiffieHellman |
setPublicKey($number, $type = self::NUMBER) X-Ref |
Setter for the value of the public number param: string $number param: string $type return: Zend_Crypt_DiffieHellman |
getPublicKey($type = self::NUMBER) X-Ref |
Returns own public key for communication to the second party to this transaction. param: string $type return: string |
computeSecretKey($publicKey, $type = self::NUMBER, $output = self::NUMBER) X-Ref |
Compute the shared secret key based on the public key received from the the second party to this transaction. This should agree to the secret key the second party computes on our own public key. Once in agreement, the key is known to only to both parties. By default, the function expects the public key to be in binary form which is the typical format when being transmitted. If you need the binary form of the shared secret key, call getSharedSecretKey() with the optional parameter for Binary output. param: string $publicKey param: string $type return: mixed |
getSharedSecretKey($type = self::NUMBER) X-Ref |
Return the computed shared secret key from the DiffieHellman transaction param: string $type return: string |
setPrime($number) X-Ref |
Setter for the value of the prime number param: string $number return: Zend_Crypt_DiffieHellman |
getPrime() X-Ref |
Getter for the value of the prime number return: string |
setGenerator($number) X-Ref |
Setter for the value of the generator number param: string $number return: Zend_Crypt_DiffieHellman |
getGenerator() X-Ref |
Getter for the value of the generator number return: string |
setPrivateKey($number, $type = self::NUMBER) X-Ref |
Setter for the value of the private number param: string $number param: string $type return: Zend_Crypt_DiffieHellman |
getPrivateKey($type = self::NUMBER) X-Ref |
Getter for the value of the private number param: string $type return: string |
hasPrivateKey() X-Ref |
Check whether a private key currently exists. return: boolean |
setBigIntegerMath($extension = null) X-Ref |
Setter to pass an extension parameter which is used to create a specific BigInteger instance for a specific extension type. Allows manual setting of the class in case of an extension problem or bug. param: string $extension return: void |
_generatePrivateKey() X-Ref |
In the event a private number/key has not been set by the user, or generated by ext/openssl, a best attempt will be made to generate a random key. Having a random number generator installed on linux/bsd is highly recommended! The alternative is not recommended for production unless without any other option. return: string |
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |