File indexing completed on 2025-01-26 05:24:55
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Crypt 0017 * @subpackage Math 0018 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0019 * @license http://framework.zend.com/license/new-bsd New BSD License 0020 * @version $Id$ 0021 */ 0022 0023 /** 0024 * Support for arbitrary precision mathematics in PHP. 0025 * 0026 * Interface for a wrapper across any PHP extension supporting arbitrary 0027 * precision maths. 0028 * 0029 * @category Zend 0030 * @package Zend_Crypt 0031 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0032 * @license http://framework.zend.com/license/new-bsd New BSD License 0033 */ 0034 interface Zend_Crypt_Math_BigInteger_Interface 0035 { 0036 0037 public function init($operand, $base = 10); 0038 public function add($left_operand, $right_operand); 0039 public function subtract($left_operand, $right_operand); 0040 public function compare($left_operand, $right_operand); 0041 public function divide($left_operand, $right_operand); 0042 public function modulus($left_operand, $modulus); 0043 public function multiply($left_operand, $right_operand); 0044 public function pow($left_operand, $right_operand); 0045 public function powmod($left_operand, $right_operand, $modulus); 0046 public function sqrt($operand); 0047 public function binaryToInteger($operand); 0048 public function integerToBinary($operand); 0049 public function hexToDecimal($operand); 0050 0051 }