Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 89) sorted by relevance

1234

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DAES.php63 * @param int $length
66 public function setBlockLength($length) argument
77 * @param int $length
80 public function setKeyLength($length) argument
82 switch ($length) {
88 …throw new \LengthException('Key of size ' . $length . ' not supported by this algorithm. Only keys…
90 parent::setKeyLength($length);
H A DRC4.php128 * @param int $length
131 public function setKeyLength($length) argument
133 if ($length < 8 || $length > 2048) {
134 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O…
137 $this->key_length = $length >> 3;
139 parent::setKeyLength($length);
151 $length = strlen($key);
152 if ($length < 1 || $length > 256) {
153 …throw new \LengthException('Key size of ' . $length . ' bytes is not supported by RC4. Keys must b…
H A DRandom.php39 * @param int $length
43 public static function string($length) argument
45 if (!$length) {
50 return random_bytes($length);
182 while (strlen($result) < $length) {
189 return substr($result, 0, $length);
H A DHash.php87 private $length; variable in phpseclib3\\Crypt\\Hash
299 $this->length = abs(substr($hash, -3)) >> 3;
312 $this->length = 12; // 96 / 8 = 12
316 $this->length = 16;
319 $this->length = 20;
324 $this->length = 28;
332 $this->length = 32;
336 $this->length = 48;
340 $this->length = 64;
346 $this->length = $matches[2] >> 3;
[all …]
H A DRC2.php295 * @param int $length in bits
298 public function setKeyLength($length) argument
300 if ($length < 8 || $length > 1024) {
301 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O…
304 $this->default_key_length = $this->current_key_length = $length;
305 $this->explicit_key_length = $length >> 3;
340 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O…
H A DTripleDES.php214 * @param int $length
216 public function setKeyLength($length) argument
218 switch ($length) {
223 …throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. O…
226 parent::setKeyLength($length);
/dokuwiki/lib/scripts/
H A Dhelpers.js12 function substr_replace(str, replace, start, length) { argument
14 a2 = (start < 0 ? str.length : 0) + start;
15 if (typeof length === 'undefined') {
16 length = str.length - a2;
17 } else if (length < 0 && start < 0 && length <= start) {
18 length = 0;
20 b1 = (length < 0 ? str.length : a2) + length;
H A Dlinkwiz.js107 if ($obj.length > 0) {
141 if ($obj.length === 0) {
196 if (a.title === '' || a.title.charAt(a.title.length - 1) === ':') {
231 if (linkTitle.charAt(linkTitle.length - 1) === ' ') {
277 let startofs = link.length;
281 startofs += this.val.open.length;
291 endofs = this.val.close.length;
384 commonPrefixLength < sourceNs.length &&
385 commonPrefixLength < targetNs.length &&
392 if (sourceNs.length) {
[all …]
H A Dtextselection.js79 selection.obj.value.substring(selection.end, selection.obj.value.length);
84 selection.end = selection.start + text.replace(/\r?\n/g, '\r\n').length;
86 selection.end = selection.start + text.length;
117 if(text.charAt(text.length - 1) == ' '){
126 startofs: tagOpen.length,
127 endofs: tagClose.length
H A Dqsearch.js32 if (dw_qsearch.$inObj.length === 0 ||
33 dw_qsearch.$outObj.length === 0) {
132 var start, length, replace, nsL, nsR, eli, runaway;
149 length = 2;
153 length = 1;
159 length = 1;
163 replace, start, length);
H A Dpage.js39 …while ($tgt.length > 0 && !($tgt.hasClass('sectionedit' + nr) || $tgt.find('.sectionedit' + nr).le…
82 if($fndiv.length === 0){
113 if (!$content.length) {
148 if(!$handle.length) return;
150 if(!$content.length) return;
H A Dmedia.js34 if (!$tree.length) return;
117 if ($options.length === 0) {
253 opts += (opts.length) ? '&' : '?';
299 if (!$file.length || !$name.length) {
329 if ($content.length === 0) {
347 } else if ($link.closest('form').length > 0) {
361 if (!$form.length) return;
430 } else if ($link.closest('form').length > 0) {
472 if ($container.length === 0) {
496 handles: (jQuery('html[dir=rtl]').length ? 'w' : 'e'),
[all …]
H A Dlocktimer.js32 if($edit.length === 0 || $edit.attr('readonly')) {
113 … if(dw_locktimer.draft && jQuery('#dw__editform').find('textarea[name=wikitext]').length > 0){
136 if (data.errors.length) {
/dokuwiki/inc/Utf8/
H A DPhpString.php76 * @param int $length (optional) length in UTF-8 characters from offset
82 public static function substr($str, $offset, $length = null) argument
85 if ($length === null) {
89 return mb_substr($str, $offset, $length);
109 if ($length !== null) $length = (int)$length;
112 if ($length === 0) return '';
113 if ($offset < 0 && $length < 0 && $length < $offset) return '';
137 if ($length === null) {
143 if ($length > 0) {
145 $length = min($strlen - $offset, $length);
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Common/Traits/
H A DReadBytes.php26 * @param int $length
29 public function readBytes($length) argument
31 $temp = fread($this->fsock, $length);
32 if (strlen($temp) != $length) {
33 throw new \RuntimeException("Expected $length bytes; got " . strlen($temp));
/dokuwiki/vendor/paragonie/constant_time_encoding/src/
H A DBinary.php78 $length = null argument
80 if ($length === 0) {
84 return \mb_substr($str, $start, $length, '8bit');
87 if ($length !== null) {
88 return \substr($str, $start, $length);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Signature/
H A DIEEE.php58 * @param int $length
61 public static function save(BigInteger $r, BigInteger $s, $curve, $length) argument
65 $length = (int) ceil($length / 8);
66 return str_pad($r, $length, "\0", STR_PAD_LEFT) . str_pad($s, $length, "\0", STR_PAD_LEFT);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BinaryField/
H A DInteger.php131 $length = max(strlen($a), strlen($b));
133 $a = str_pad($a, $length, "\0", STR_PAD_LEFT);
134 $b = str_pad($b, $length, "\0", STR_PAD_LEFT);
174 $length = max(strlen($s), strlen($q));
176 str_pad($q, $length, "\0", STR_PAD_LEFT) ^
177 str_pad($s, $length, "\0", STR_PAD_LEFT);
179 $length = max(strlen($r), strlen($s));
180 $r = str_pad($r, $length, "\0", STR_PAD_LEFT) ^
181 str_pad($s, $length, "\0", STR_PAD_LEFT);
199 $length = strlen($x);
[all …]
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DFeedCreator.php95 * @param int $length the maximum length the string should be truncated to
98 public static function iTrunc($string, $length) argument
100 if (strlen($string) <= $length) {
105 if ($pos >= $length - 4) {
106 $string = substr($string, 0, $length - 4);
109 if ($pos >= $length * 0.4) {
114 if ($pos >= $length - 4) {
115 $string = substr($string, 0, $length - 4);
118 if ($pos >= $length * 0.4) {
122 return substr($string, 0, $length - 4)." ...";
/dokuwiki/lib/tpl/dokuwiki/
H A Dscript.js41 if($handle.length) {
45 if($toc.length) {
51 if($handle.length) {
55 if($toc.length) {
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DASN1.php261 $length = ord($encoded[$encoded_pos++]);
263 if ($length == 0x80) { // indefinite length
266 $length = strlen($encoded) - $encoded_pos;
267 } elseif ($length & 0x80) { // definite length, long form
270 $length &= 0x7F;
271 $temp = substr($encoded, $encoded_pos, $length);
272 $encoded_pos += $length;
274 $current += ['headerlength' => $length + 2];
275 $start += $length;
282 if ($length > (strlen($encoded) - $encoded_pos)) {
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/
H A DPuTTY.php102 list(, $length) = unpack('N', Strings::shift($public, 4));
103 Strings::shift($public, $length);
133 list(, $length) = unpack('N', Strings::shift($public, 4));
134 Strings::shift($public, $length);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/
H A DEngine.php789 $length = $max->getLength();
790 if ($length > 8196) {
791 …untimeException("Generation of random prime numbers larger than 8196 has been disabled ($length)");
922 $length = $this->getLengthInBytes();
926 if ($length >= 163) { $t = 2; } // floor(1300 / 8)
927 else if ($length >= 106) { $t = 3; } // floor( 850 / 8)
928 else if ($length >= 81 ) { $t = 4; } // floor( 650 / 8)
929 else if ($length >= 68 ) { $t = 5; } // floor( 550 / 8)
930 else if ($length >= 56 ) { $t = 6; } // floor( 450 / 8)
931 else if ($length >= 50 ) { $t = 7; } // floor( 400 / 8)
[all …]
/dokuwiki/vendor/splitbrain/php-archive/src/
H A DTar.php146 * @param int $length maximum number of bytes to read
150 public function readCurrentEntry($length = PHP_INT_MAX) argument
152 $length = (int) min($length, $this->contentUntil - $this->position);
153 if ($length === 0) {
156 return $this->readbytes($length);
480 * @param int $length bytes to read
483 protected function readbytes($length) argument
486 $ret = @gzread($this->fh, $length);
488 $ret = @bzread($this->fh, $length);
490 $ret = @fread($this->fh, $length);
[all …]
/dokuwiki/lib/plugins/styling/
H A Dscript.js15 if (!$loader.length) {
46 if (!$styling_plugin.length) {

1234