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

Class: Crypt_RSA_MathLoader

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

Class Overview


Crypt_RSA_MathLoader class.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • Alexander Valyalkin 2005

Methods


Inherited Variables

Inherited Methods


Class Details

[line 56]
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 78]

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   —  Name of wrapper

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:28:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.