Crypt_RSA
[ class tree: Crypt_RSA ] [ index: Crypt_RSA ] [ all elements ]

Element index for package Crypt_RSA

[ b ] [ c ] [ d ] [ e ] [ f ] [ g ] [ i ] [ k ] [ l ] [ m ] [ n ] [ p ] [ r ] [ s ] [ t ] [ v ] [ w ]

b

bin2int
in file GMP.php, method Crypt_RSA_Math_GMP::bin2int()
    Transforms binary representation of large integer into its native form.
bin2int
in file BigInt.php, method Crypt_RSA_Math_BigInt::bin2int()
    Transforms binary representation of large integer into its native form.
bin2int
in file BCMath.php, method Crypt_RSA_Math_BCMath::bin2int()
    Transforms binary representation of large integer into its native form.
bitLen
in file GMP.php, method Crypt_RSA_Math_GMP::bitLen()
    Returns bit length of number $num
bitLen
in file BCMath.php, method Crypt_RSA_Math_BCMath::bitLen()
    Returns bit length of number $num
bitLen
in file BigInt.php, method Crypt_RSA_Math_BigInt::bitLen()
    Returns bit length of number $num
bitOr
in file BCMath.php, method Crypt_RSA_Math_BCMath::bitOr()
    Calculates bitwise or of $num1 and $num2, starting from bit $start_pos for number $num1
bitOr
in file BigInt.php, method Crypt_RSA_Math_BigInt::bitOr()
    Calculates bitwise or of $num1 and $num2, starting from bit $start_pos for number $num1
bitOr
in file GMP.php, method Crypt_RSA_Math_GMP::bitOr()
    Calculates bitwise or of $num1 and $num2, starting from bit $start_pos for number $num1
BCMath.php
procedural page BCMath.php
BigInt.php
procedural page BigInt.php
top

c

check_error
in file web_interface.php, function check_error()
cmpAbs
in file GMP.php, method Crypt_RSA_Math_GMP::cmpAbs()
    Compares abs($num1) to abs($num2).
cmpAbs
in file BigInt.php, method Crypt_RSA_Math_BigInt::cmpAbs()
    Compares abs($num1) to abs($num2).
cmpAbs
in file BCMath.php, method Crypt_RSA_Math_BCMath::cmpAbs()
    Compares abs($num1) to abs($num2).
createSign
in file RSA.php, method Crypt_RSA::createSign()
    Creates sign for document $document, using $this->_private_key or $private_key as private key and $this->_hash_func or $hash_func as hash function.
create_sign
in file web_interface.php, function create_sign()
Crypt_RSA
in file RSA.php, class Crypt_RSA
    Crypt_RSA class, derived from Crypt_RSA_ErrorHandler
Crypt_RSA
in file RSA.php, method Crypt_RSA::Crypt_RSA()
    Crypt_RSA constructor.
Crypt_RSA_ErrorHandler
in file ErrorHandler.php, class Crypt_RSA_ErrorHandler
    Crypt_RSA_ErrorHandler class.
CRYPT_RSA_ERROR_EXP_GE_MOD
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_EXP_GE_MOD
    key modulus must be greater than key exponent
CRYPT_RSA_ERROR_MISSING_KEY_LEN
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_MISSING_KEY_LEN
    missing $key_len parameter in Crypt_RSA_KeyPair::generate($key_len) function
CRYPT_RSA_ERROR_NEED_PRV_KEY
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_NEED_PRV_KEY
    key, used for signing, must be private
CRYPT_RSA_ERROR_NEED_PUB_KEY
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_NEED_PUB_KEY
    key, used for sign validating, must be public
CRYPT_RSA_ERROR_NO_CLASS
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_NO_CLASS
    cannot find math wrapper class in the math wrapper file
CRYPT_RSA_ERROR_NO_EXT
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_NO_EXT
    cannot load required extension for math wrapper
CRYPT_RSA_ERROR_NO_FILE
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_NO_FILE
    cannot find file, containing requested math wrapper
CRYPT_RSA_ERROR_NO_WRAPPERS
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_NO_WRAPPERS
    cannot load any math wrappers.
CRYPT_RSA_ERROR_WRONG_HASH_FUNC
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_WRONG_HASH_FUNC
    wrong name of hash function passed to Crypt_RSA::setParams() function
CRYPT_RSA_ERROR_WRONG_KEY
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_WRONG_KEY
    wrong key object passed to function (it must be an object of Crypt_RSA_Key class)
CRYPT_RSA_ERROR_WRONG_KEY_TYPE
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_WRONG_KEY_TYPE
    invalid key type passed to function (it must be 'public' or 'private')
CRYPT_RSA_ERROR_WRONG_PARAMS
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_WRONG_PARAMS
    parameters must be passed to function as associative array
CRYPT_RSA_ERROR_WRONG_TAIL
in file ErrorHandler.php, constant CRYPT_RSA_ERROR_WRONG_TAIL
    error tail of decrypted text. Maybe, wrong decryption key?
Crypt_RSA_Key
in file Key.php, method Crypt_RSA_Key::Crypt_RSA_Key()
    Crypt_RSA_Key constructor.
Crypt_RSA_Key
in file Key.php, class Crypt_RSA_Key
    Crypt_RSA_Key class, derived from Crypt_RSA_ErrorHandler
Crypt_RSA_KeyPair
in file KeyPair.php, class Crypt_RSA_KeyPair
    Crypt_RSA_KeyPair class, derived from Crypt_RSA_ErrorHandler
Crypt_RSA_KeyPair
in file KeyPair.php, method Crypt_RSA_KeyPair::Crypt_RSA_KeyPair()
    Crypt_RSA_KeyPair constructor.
Crypt_RSA_MathLoader
in file MathLoader.php, class Crypt_RSA_MathLoader
    Crypt_RSA_MathLoader class.
Crypt_RSA_Math_BCMath
in file BCMath.php, method Crypt_RSA_Math_BCMath::Crypt_RSA_Math_BCMath()
    Crypt_RSA_Math_BCMath constructor.
Crypt_RSA_Math_BCMath
in file BCMath.php, class Crypt_RSA_Math_BCMath
    Crypt_RSA_Math_BCMath class.
Crypt_RSA_Math_BigInt
in file BigInt.php, class Crypt_RSA_Math_BigInt
    Crypt_RSA_Math_BigInt class.
Crypt_RSA_Math_BigInt
in file BigInt.php, method Crypt_RSA_Math_BigInt::Crypt_RSA_Math_BigInt()
    Crypt_RSA_Math_BigInt constructor.
Crypt_RSA_Math_GMP
in file GMP.php, method Crypt_RSA_Math_GMP::Crypt_RSA_Math_GMP()
    Crypt_RSA_Math_GMP constructor.
Crypt_RSA_Math_GMP
in file GMP.php, class Crypt_RSA_Math_GMP
    Crypt_RSA_Math_GMP class.
top

d

dec
in file BCMath.php, method Crypt_RSA_Math_BCMath::dec()
    Calculates $num - 1
dec
in file GMP.php, method Crypt_RSA_Math_GMP::dec()
    Calculates $num - 1
dec
in file BigInt.php, method Crypt_RSA_Math_BigInt::dec()
    Calculates $num - 1
decrypt
in file web_interface.php, function decrypt()
decrypt
in file RSA.php, method Crypt_RSA::decrypt()
    Decrypts $enc_data by the key $this->_dec_key or $key.
decryptBinary
in file RSA.php, method Crypt_RSA::decryptBinary()
    Decrypts $enc_data by the key $this->_dec_key or $key.
top

e

$errstr
in file BCMath.php, variable Crypt_RSA_Math_BCMath::$errstr
    error description
$errstr
in file GMP.php, variable Crypt_RSA_Math_GMP::$errstr
    error description
$errstr
in file BigInt.php, variable Crypt_RSA_Math_BigInt::$errstr
    error description
ErrorHandler.php
procedural page ErrorHandler.php
encrypt
in file web_interface.php, function encrypt()
encrypt
in file RSA.php, method Crypt_RSA::encrypt()
    Ecnrypts $plain_data by the key $this->_enc_key or $key.
encryptBinary
in file RSA.php, method Crypt_RSA::encryptBinary()
    Ecnrypts $plain_data by the key $this->_enc_key or $key.
top

f

factory
in file KeyPair.php, method Crypt_RSA_KeyPair::factory()
    Crypt_RSA_KeyPair factory.
factory
in file Key.php, method Crypt_RSA_Key::factory()
    Crypt_RSA_Key factory.
factory
in file RSA.php, method Crypt_RSA::factory()
    Crypt_RSA factory.
fromString
in file Key.php, method Crypt_RSA_Key::fromString()
    Returns Crypt_RSA_Key object, unserialized from string representation of key.
top

g

GMP.php
procedural page GMP.php
gcd
in file BCMath.php, method Crypt_RSA_Math_BCMath::gcd()
    Finds greatest common divider (GCD) of $num1 and $num2
gcd
in file GMP.php, method Crypt_RSA_Math_GMP::gcd()
    Finds greatest common divider (GCD) of $num1 and $num2
gcd
in file BigInt.php, method Crypt_RSA_Math_BigInt::gcd()
    Finds greatest common divider (GCD) of $num1 and $num2
generate
in file KeyPair.php, method Crypt_RSA_KeyPair::generate()
    Generates new Crypt_RSA key pair with length $key_len.
generate_key_pair
in file web_interface.php, function generate_key_pair()
    ********************************************************
getErrorHandler
in file ErrorHandler.php, method Crypt_RSA_ErrorHandler::getErrorHandler()
    returns name of current error handler, or null if there is no error handler
getErrorList
in file ErrorHandler.php, method Crypt_RSA_ErrorHandler::getErrorList()
    Returns list of all errors, pushed to error list by $this->pushError()
getExponent
in file Key.php, method Crypt_RSA_Key::getExponent()
    Returns exponent part of the key as binary string, which can be used to construct new Crypt_RSA_Key object.
getKeyLength
in file Key.php, method Crypt_RSA_Key::getKeyLength()
    Calculates bit length of the key
getKeyLength
in file KeyPair.php, method Crypt_RSA_KeyPair::getKeyLength()
    Returns length of each key in the key pair
getKeyType
in file Key.php, method Crypt_RSA_Key::getKeyType()
    Returns key type (public, private)
getLastError
in file ErrorHandler.php, method Crypt_RSA_ErrorHandler::getLastError()
    Returns last error from errors list or false, if list is empty
getModulus
in file Key.php, method Crypt_RSA_Key::getModulus()
    Returns modulus part of the key as binary string, which can be used to construct new Crypt_RSA_Key object.
getPrivateKey
in file KeyPair.php, method Crypt_RSA_KeyPair::getPrivateKey()
    Returns private key from the pair
getPublicKey
in file KeyPair.php, method Crypt_RSA_KeyPair::getPublicKey()
    Returns public key from the pair
getRand
in file GMP.php, method Crypt_RSA_Math_GMP::getRand()
    Generates random number wich bit length $bits_cnt, using $random_generator as random generator function.
getRand
in file BCMath.php, method Crypt_RSA_Math_BCMath::getRand()
    Generates random number wich bit length $bits_cnt, using $random_generator as random generator function.
getRand
in file BigInt.php, method Crypt_RSA_Math_BigInt::getRand()
    Generates random number wich bit length $bits_cnt, using $random_generator as random generator function.
getWrapperName
in file BigInt.php, method Crypt_RSA_Math_BigInt::getWrapperName()
    Returns name of current wrapper
getWrapperName
in file BCMath.php, method Crypt_RSA_Math_BCMath::getWrapperName()
    Returns name of current wrapper
getWrapperName
in file GMP.php, method Crypt_RSA_Math_GMP::getWrapperName()
    Returns name of current wrapper
get_session_var
in file web_interface.php, function get_session_var()
top

i

int2bin
in file GMP.php, method Crypt_RSA_Math_GMP::int2bin()
    Transforms large integer into binary representation.
int2bin
in file BCMath.php, method Crypt_RSA_Math_BCMath::int2bin()
    Transforms large integer into binary representation.
int2bin
in file BigInt.php, method Crypt_RSA_Math_BigInt::int2bin()
    Transforms large integer into binary representation.
invmod
in file GMP.php, method Crypt_RSA_Math_GMP::invmod()
    Finds inverse number $inv for $num by modulus $mod, such as: $inv * $num = 1 (mod $mod)
invmod
in file BigInt.php, method Crypt_RSA_Math_BigInt::invmod()
    Finds inverse number $inv for $num by modulus $mod, such as: $inv * $num = 1 (mod $mod)
invmod
in file BCMath.php, method Crypt_RSA_Math_BCMath::invmod()
    Finds inverse number $inv for $num by modulus $mod, such as: $inv * $num = 1 (mod $mod)
isError
in file ErrorHandler.php, method Crypt_RSA_ErrorHandler::isError()
    Returns true if list of errors is not empty, else returns false
isValid
in file Key.php, method Crypt_RSA_Key::isValid()
    Validates key This function can be called statically: $is_valid = Crypt_RSA_Key::isValid($key)
isZero
in file GMP.php, method Crypt_RSA_Math_GMP::isZero()
    Returns true, if $num is equal to zero. Else returns false
isZero
in file BigInt.php, method Crypt_RSA_Math_BigInt::isZero()
    Returns true, if $num is equal to zero. Else returns false
isZero
in file BCMath.php, method Crypt_RSA_Math_BCMath::isZero()
    Returns true, if $num is equal to zero. Else returns false
top

k

Key.php
procedural page Key.php
KeyPair.php
procedural page KeyPair.php
top

l

loadWrapper
in file MathLoader.php, method Crypt_RSA_MathLoader::loadWrapper()
    Loads RSA math wrapper with name $wrapper_name.
top

m

MathLoader.php
procedural page MathLoader.php
mul
in file GMP.php, method Crypt_RSA_Math_GMP::mul()
    Calculates $num1 * $num2
mul
in file BigInt.php, method Crypt_RSA_Math_BigInt::mul()
    Calculates $num1 * $num2
mul
in file BCMath.php, method Crypt_RSA_Math_BCMath::mul()
    Calculates $num1 * $num2
top

n

nextPrime
in file GMP.php, method Crypt_RSA_Math_GMP::nextPrime()
    Finds next strong pseudoprime number, following after $num
nextPrime
in file BigInt.php, method Crypt_RSA_Math_BigInt::nextPrime()
    Finds next strong pseudoprime number, following after $num
nextPrime
in file BCMath.php, method Crypt_RSA_Math_BCMath::nextPrime()
    Finds next strong pseudoprime number, following after $num
top

p

powmod
in file GMP.php, method Crypt_RSA_Math_GMP::powmod()
    Calculates pow($num, $pow) (mod $mod)
powmod
in file BCMath.php, method Crypt_RSA_Math_BCMath::powmod()
    Calculates pow($num, $pow) (mod $mod)
powmod
in file BigInt.php, method Crypt_RSA_Math_BigInt::powmod()
    Calculates pow($num, $pow) (mod $mod)
print_layout
in file web_interface.php, function print_layout()
pushError
in file ErrorHandler.php, method Crypt_RSA_ErrorHandler::pushError()
    pushes error object $error to the error list
top

r

RSA.php
procedural page RSA.php
top

s

setErrorHandler
in file ErrorHandler.php, method Crypt_RSA_ErrorHandler::setErrorHandler()
    sets error handler to function with name $func_name.
setParams
in file RSA.php, method Crypt_RSA::setParams()
    Accepts any combination of available parameters as associative array:
setRandomGenerator
in file KeyPair.php, method Crypt_RSA_KeyPair::setRandomGenerator()
    Sets name of random generator function for key generation.
subint
in file GMP.php, method Crypt_RSA_Math_GMP::subint()
    Returns part of number $num, starting at bit position $start with length $length
subint
in file BCMath.php, method Crypt_RSA_Math_BCMath::subint()
    Returns part of number $num, starting at bit position $start with length $length
subint
in file BigInt.php, method Crypt_RSA_Math_BigInt::subint()
    Returns part of number $num, starting at bit position $start with length $length
top

t

toString
in file Key.php, method Crypt_RSA_Key::toString()
    Returns string representation of key
top

v

validateSign
in file RSA.php, method Crypt_RSA::validateSign()
    Validates $signature for document $document with public key $this->_public_key or $public_key and hash function $this->_hash_func or $hash_func.
validate_sign
in file web_interface.php, function validate_sign()
top

w

web_interface.php
procedural page web_interface.php
top

Documentation generated on Mon, 11 Mar 2019 14:20:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.