3 require_once 'Crypt/RSA.php';
6 * Crypt_RSA stores a Math_BigInteger with value 0, which triggers a bug
7 * in Math_BigInteger's wakeup function which spews notices to log or output.
8 * This wrapper replaces it with a version that survives serialization.
10 class SafeCrypt_RSA extends Crypt_RSA
12 function __construct()
14 parent::__construct();
15 $this->zero = new SafeMath_BigInteger();