/plugin/fedauth/Auth/OpenID/ |
H A D | CryptUtil.php | 43 $bytes = ''; 58 $bytes = ''; 60 $bytes .= pack('L', mt_rand()); 62 $bytes = substr($bytes, 0, $num_bytes); 64 $bytes = fread($f, $num_bytes); 66 return $bytes;
|
/plugin/openid/Auth/OpenID/ |
H A D | BigMath.php | 58 $bytes = []; 61 array_unshift($bytes, $this->mod($long, 256)); 65 if ($bytes && ($bytes[0] > 127)) { 66 array_unshift($bytes, 0); 70 foreach ($bytes as $byte) { 94 $bytes = array_merge(unpack('C*', $str)); 98 if ($bytes && ($bytes[0] > 127)) { 104 foreach ($bytes as $byte) { 149 $nbytes = Auth_OpenID::bytes($rbytes) - 1; 151 $nbytes = Auth_OpenID::bytes($rbytes); [all …]
|
H A D | CryptUtil.php | 57 $bytes = ''; 59 $bytes .= pack('L', mt_rand()); 61 $bytes = substr($bytes, 0, $num_bytes); 63 $bytes = fread($f, $num_bytes); 65 return $bytes;
|
/plugin/geophp/vendor/funiq/geophp/src/ |
H A D | geoPHP.php | 344 fwrite($mem, $input, 11); // Write 11 bytes - we can detect the vast majority of formats in the first 11 bytes 348 $bytes = unpack("c*", $bin); 350 // If bytes is empty, then we were passed empty input 351 if (empty($bytes)) { 356 if ($bytes[1] == 9 || $bytes[1] == 10 || $bytes[1] == 32) { 362 if ($bytes[1] == 1 || $bytes[ [all...] |
/plugin/nssize/ |
H A D | syntax.php | 38 $bytes = $this->_du($conf[$c]); 39 $nssize = $this->_formatSize($bytes); 40 $alert = ($bytes>$this->getConf('alert_size')); 43 $total = $total+$bytes; 85 * @param int $bytes 87 function _formatSize( $bytes ){ argument 89 for( $i = 0; $bytes >= 1024 && $i < ( count( $types ) -1 ); $bytes /= 1024, $i++ ); 90 return( round( $bytes, 2 ) . " " . $types[$i] );
|
/plugin/gtime/gtlib/tsp/ |
H A D | GTPublicationsFile.php | 79 public function __construct(array $bytes) { argument 81 if (empty($bytes)) { 85 $this->content = $bytes; 177 $bytes = GTUtil::read($file); 179 return new GTPublicationsFile($bytes); 394 $contentInfo->decode(ASN1DER::decode($bytes)); 517 $bytes = GTBase32::decode($publicationString); 519 $result = GTUtil::readLong($bytes, 0); 536 $bytes = GTUtil::addCrc32($bytes); 538 return GTBase32::encodeWithDashes($bytes); [all …]
|
H A D | GTHashEntry.php | 55 * @param array $bytes bytes to compute output for 58 public function computeOutput(array $bytes) { argument 62 $hash->update($bytes);
|
/plugin/pureldap/vendor/freedsx/sasl/src/FreeDSx/Sasl/Security/ |
H A D | DigestMD5SecurityLayer.php | 115 # At the very least we are expect 16 bytes. 10 for the actual MAC, 4 for the seqnum, 2 for the msgtype. 117 throw new SaslException('The data to decrypt must be at least 16 bytes.'); 186 # The first 10 bytes of the MAC block is used. Extract the last 6 bytes, as that gets tacked onto the end. 256 throw new SaslException('Expected at least 16 bytes of data for the MAC.'); 277 * number of padding bytes, such that total length of the encrypted part of the message is a multiple of the 293 * The MAC block is 16 bytes: the first 10 bytes of the HMAC-MD5 [RFC2104] of the message, a 2-byte message type 364 * We need to manually expand the 7-byte DES keys to 8-bytes. This shifts the first 7 bytes int [all...] |
/plugin/pureldap/vendor/freedsx/asn1/src/FreeDSx/Asn1/Type/ |
H A D | BitStringType.php | 66 $bytes = ''; 69 $bytes .= chr(bindec($piece)); 72 return $bytes; 78 * @param string $bytes 82 public static function fromBinary($bytes, ?int $minLength = null) argument 86 $length = strlen($bytes); 88 $bitstring .= sprintf('%08d', decbin(ord($bytes[$i])));
|
/plugin/ipban/ip-lib/src/Address/ |
H A D | IPv6.php | 37 protected $bytes; variable in IPLib\\Address\\IPv6 69 $this->bytes = null; 156 * @param int[]|array $bytes 163 if (count($bytes) === 16) { 169 $byte = $bytes[$i]; 270 if ($this->bytes === null) { 271 $bytes = array(); 273 $bytes[] = $word >> 8; 274 $bytes[] = $word & 0xff; 276 $this->bytes = $bytes; [all …]
|
/plugin/davcal/vendor/sabre/dav/bin/ |
H A D | naturalselection | 24 bytes = getbytesleft(cacheDir,threshold) 25 if (bytes>0): 26 print "Bytes to go before we hit threshold:", bytes 28 print "Threshold exceeded with:", -bytes, "bytes" 50 if left < -bytes : 51 left = -bytes
|
/plugin/ipban/ip-lib/src/Range/ |
H A D | Pattern.php | 134 $bytes = $this->toAddress->getBytes(); 135 $bytes = array_slice($bytes, 0, -$this->asterisksCount * 2); 136 $bytes = array_pad($bytes, 16, 1); 137 $address = IPv6::fromBytes($bytes); 319 $bytes = array(255, 255, 255, 255); 322 $bytes = array(0, 0, 0, 0); 325 $bytes = array_pad(array_fill(0, 4 - $this->asterisksCount, 255), 4, 0); 329 return IPv4::fromBytes($bytes);
|
H A D | Subnet.php | 321 $bytes = array(); 324 $bytes[] = 255; 328 $bytes[] = bindec(str_pad(str_repeat('1', $prefix), 8, '0')); 330 $bytes = array_pad($bytes, 4, 0); 332 return IPv4::fromBytes($bytes);
|
/plugin/swiftmail/Swift/Message/ |
H A D | Mime.php | 293 while (false !== $bytes = $part_stream->read()) $this->cache->write("append", $bytes); 316 while (false !== $bytes = $qp_os->read()) 317 $this->cache->write("body", $bytes); 328 while (false !== $bytes = $b64_os->read()) 329 $this->cache->write("body", $bytes); 340 while (false !== $bytes = $data->read(8192)) 341 $this->cache->write("body", $bytes); 352 while (false !== $bytes = $os->read()) 353 $this->cache->write("body", $bytes); 364 while (false !== $bytes = $os->read()) [all …]
|
/plugin/gtime/gtlib/util/ |
H A D | GTBaseX.php | 117 * @param array $bytes the bytes to encode 124 …public function encode($bytes, $offset = null, $length = null, $separator = null, $frequency = nul… argument 126 if (empty($bytes)) { 130 if (!is_array($bytes)) { 139 $length = count($bytes); 145 if ($offset < 0 || $offset > count($bytes)) { 149 if ($length < 0 || $offset + $length > count($bytes)) { 184 $next = ($j < $length ? $bytes[$offset + $j] : 0);
|
H A D | GTUtil.php | 114 * @param array $bytes byte array that contains the bytes to write 119 public static function write($file, array $bytes) { argument 125 if ($bytes == null) { 129 if (!is_array($bytes)) { 139 if (!fwrite($fp, GTUtil::fromByteArray($bytes))) { 565 public static function addCrc32(array $bytes) { argument 567 $checksum = crc32(GTUtil::fromByteArray($bytes)); 578 array_push($bytes, $byte); 581 return $bytes;
|
H A D | GTBase64.php | 40 * @param array $bytes an array containing the bytes to encode. 45 public static function encode(array $bytes, $offset = null, $length = null) { argument 46 return self::getInstance()->encode($bytes, $offset, $length);
|
/plugin/pgn4web/pgn4web/ |
H A D | pgn-encoder.php | 300 $bytes = strlen($ov) . "$"; 306 $bytes = $bytes . BitsToBytes($bits); 310 $bytes = $bytes . BitsToBytes($bits); 312 $bytes = $bytes . substr($encodingCharSet, $encodingVersion, 1); 314 return $bytes;
|
H A D | pgn-decoder.js | 34 function DecodePGN(bytes) { argument 36 if (bytes.charAt(bytes.length - 1) != encodingCharSet.charAt(encodingVersion)) { 38 … bytes.charAt(bytes.length - 1) + " d:" + encodingCharSet.charAt(encodingVersion) + ")"; 43 var originalLength = parseInt(bytes.match(/^[0-9]*/), 10); 44 bytes = bytes.replace(/^[0-9]*\$/,""); 561 …function B() { if (a===0) { b=encodingCharSet.indexOf(bytes.charAt(e++)); a=6; } return ((b>>--a)&…
|
/plugin/swiftmail/Swift/Plugin/ |
H A D | BandwidthMonitor.php | 43 $bytes = strlen($e->getString()) + $add; 44 $this->addBytesOut($bytes); 52 $bytes = strlen($e->getString()) + 2; 53 $this->addBytesIn($bytes);
|
/plugin/quickstats/GEOIP/vendor/maxmind-db/reader/src/MaxMind/Db/ |
H A D | Reader.php | 214 $bytes = Util::read($this->fileHandle, $baseOffset + $index * 3, 3); 215 list(, $node) = unpack('N', "\x00" . $bytes); 219 $bytes = Util::read($this->fileHandle, $baseOffset + 3 * $index, 4); 221 $middle = (0xF0 & \ord($bytes[3])) >> 4; 223 $middle = 0x0F & \ord($bytes[0]); 225 list(, $node) = unpack('N', \chr($middle) . substr($bytes, $index, 3)); 229 $bytes = Util::read($this->fileHandle, $baseOffset + $index * 4, 4); 230 list(, $node) = unpack('N', $bytes);
|
/plugin/freechat/phpfreechat/lib/json/ |
H A D | JSON.php | 156 $bytes = (ord($utf16{0}) << 8) | ord($utf16{1}); 159 case ((0x7F & $bytes) == $bytes): 162 return chr(0x7F & $bytes); 164 case (0x07FF & $bytes) == $bytes: 167 return chr(0xC0 | (($bytes >> 6) & 0x1F)) 168 . chr(0x80 | ($bytes & 0x3F)); 170 case (0xFFFF & $bytes) == $bytes: 173 return chr(0xE0 | (($bytes >> 12) & 0x0F)) 174 . chr(0x80 | (($bytes >> 6) & 0x3F)) 175 . chr(0x80 | ($bytes & 0x3F));
|
/plugin/gtime/gtlib/asn1/x509/ |
H A D | X509Certificate.php | 38 private $bytes; variable in X509Certificate 54 $this->bytes = $data; 57 $this->bytes = $data->encodeDER(); 93 $body = GTBase64::encode($this->bytes); 248 $bytes = GTBase64::decode($string); 251 $hash->update($bytes);
|
/plugin/jcapture/src/com/hammurapi/jcapture/ |
H A D | AbstractCaptureApplet.java | 137 public static String formatByteSize(long bytes) { in formatByteSize() argument 138 if (bytes<1024) { in formatByteSize() 139 return bytes + "bytes"; in formatByteSize() 141 if (bytes<1024*1024) { in formatByteSize() 142 return MessageFormat.format("{0,number,0.0} Kb", new Object[] {(double) bytes/1024.0}); in formatByteSize() 144 if (bytes<1024*1024*1024) { in formatByteSize() 145 …return MessageFormat.format("{0,number,0.00} Mb", new Object[] {(double) bytes/(double) (1024.0*10… in formatByteSize() 147 …return MessageFormat.format("{0,number,0.00} Gb", new Object[] {(double) bytes/(double) (1024.0*10… in formatByteSize()
|
/plugin/rssticker/ |
H A D | lastRSS.php | 243 elseif ($c > 239) $bytes = 4; 244 elseif ($c > 223) $bytes = 3; 245 elseif ($c > 191) $bytes = 2; 247 if (($i + $bytes) > $len) return false; 248 while ($bytes > 1) { 252 $bytes--;
|