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

Class: Crypt_RSA_MathLoader

Source Location: /Crypt_RSA-1.0.0/RSA/MathLoader.php

Class Overview


Crypt_RSA_MathLoader class.


Author(s):

Version:

  • @package_version@

Copyright:

  • 2005 Alexander Valyalkin

Methods


Inherited Variables

Inherited Methods


Class Details

[line 58]
Crypt_RSA_MathLoader class.

Provides static function:

  • loadWrapper($wrapper_name) - loads RSA math wrapper with name $wrapper_name or most suitable wrapper if $wrapper_name == 'default'
Example usage: // load BigInt wrapper $big_int_wrapper = &Crypt_RSA_MathLoader::loadWrapper('BigInt');

// load BCMath wrapper $bcmath_wrapper = &Crypt_RSA_MathLoader::loadWrapper('BCMath');

// load the most suitable wrapper $bcmath_wrapper = &Crypt_RSA_MathLoader::loadWrapper();



[ Top ]


Method Detail

loadWrapper   [line 79]

object Reference &loadWrapper( [string $wrapper_name = 'default'])

Loads RSA math wrapper with name $wrapper_name.

Implemented wrappers can be found at Crypt/RSA/Math folder. Read docs/Crypt_RSA/docs/math_wrappers.txt for details

This is a static function: // load BigInt wrapper $big_int_wrapper = &Crypt_RSA_MathLoader::loadWrapper('BigInt');

// load BCMath wrapper $bcmath_wrapper = &Crypt_RSA_MathLoader::loadWrapper('BCMath');

  • Return: to object of wrapper with name $wrapper_name on success or PEAR_Error object on error
  • Access: public

Parameters:

string   $wrapper_name   — 

[ Top ]


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