Home
last modified time | relevance | path

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

123

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DAES.php68 * @param int $length
70 function setBlockLength($length) argument
83 * @param int $length
85 function setKeyLength($length) argument
87 switch ($length) {
89 $length = 192;
92 $length = 256;
94 parent::setKeyLength($length);
112 $length = strlen($key);
114 case $length <= 16:
[all …]
H A DRandom.php43 * @param int $length
46 static function string($length) argument
48 if (!$length) {
54 return \random_bytes($length);
69 return @mcrypt_create_iv($length);
85 return openssl_random_pseudo_bytes($length);
90 return openssl_random_pseudo_bytes($length);
100 $temp = fread($fp, $length);
101 if (strlen($temp) == $length) {
234 while (strlen($result) < $length) {
[all …]
H A DTripleDES.php229 * @param int $length
231 function setKeyLength($length) argument
233 $length >>= 3;
235 case $length <= 8:
238 case $length <= 16:
245 parent::setKeyLength($length);
265 $length = $this->explicit_key_length ? $this->key_length : strlen($key);
266 if ($length > 8) {
270 … $key = $length <= 16 ? substr_replace($key, substr($key, 0, 8), 16) : substr($key, 0, 24);
280 if ($this->mode_3cbc && $length > 8) {
H A DRC4.php199 * @param int $length
201 function setKeyLength($length) argument
203 if ($length < 8) {
205 } elseif ($length > 2048) {
208 $this->key_length = $length >> 3;
211 parent::setKeyLength($length);
H A DRijndael.php189 * @param int $length
194 case $length <= 128:
197 case $length <= 160:
200 case $length <= 192:
203 case $length <= 224:
220 * @param int $length
224 $length >>= 5;
225 if ($length > 8) {
226 $length = 8;
228 $length = 4;
[all …]
H A DRSA.php1452 if (strlen($private) < $length) {
1457 if (strlen($private) < $length) {
2055 $length&= 0x7F;
2059 return $length;
2069 * @param int $length
2072 function _encodeLength($length) argument
2074 if ($length <= 0x7F) {
2075 return chr($length);
3123 $length = $this->k - 11;
3124 if ($length <= 0) {
[all …]
H A DBlowfish.php292 * @param int $length
294 function setKeyLength($length) argument
296 if ($length < 32) {
298 } elseif ($length > 448) {
301 $this->key_length = $length >> 3;
304 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 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.js31 …while($tgt.length > 0 && !($tgt.hasClass('sectionedit' + nr) || $tgt.find('.sectionedit' + nr).len…
72 if($fndiv.length === 0){
103 if (!$content.length) {
138 if(!$handle.length) return;
140 if(!$content.length) return;
H A Dmedia.js34 if (!$tree.length) return;
116 if ($options.length === 0) {
298 if (!$file.length || !$name.length) {
328 if ($content.length === 0) {
360 if (!$form.length) return;
560 if (!$form.length) return;
611 if (!$slider.length) return;
614 if (!$image.length) return;
634 if (!$diff.length) return;
638 if (!$image1.length || !$image2.length) return;
[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) {
H A Dbehaviour.js74 if($obj.length) {
159 if (0 === $form.length) return;
195 if($checked.length < 2) {
219 if (!$checkDiv.length) return;
H A Dedit.js182 return 7 - s.match(/^={2,6}/)[0].length;
205 if($dwform.length === 0) {
227 if ($editform.length == 0) {
232 if ($edit_text.length > 0) {
291 if ($edit_text.length > 0) {
H A Dlinkwiz.js93 if($obj.length > 0){
138 if ($obj.length === 0) {
193 if(a.title == '' || a.title.substr(a.title.length-1) == ':'){
225 if(stxt.charAt(stxt.length - 1) == ' '){
240 var so = link.length;
244 so += dw_linkwiz.val.open.length;
254 eo = dw_linkwiz.val.close.length;
/dokuwiki/inc/Utf8/
H A DPhpString.php86 if ($length === null) {
110 if ($length !== null) $length = (int)$length;
113 if ($length === 0) return '';
114 if ($offset < 0 && $length < 0 && $length < $offset) return '';
138 if ($length === null) {
145 if ($length > 0) {
148 $length = min($strlen - $offset, $length);
365 $length = null;
367 while ($length === null || $length < $offset) {
375 if ($length < $offset)
[all …]
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DFeedCreator.php92 * @param int $length the maximum length the string should be truncated to
95 public static function iTrunc($string, $length) argument
97 if (strlen($string) <= $length) {
102 if ($pos >= $length - 4) {
103 $string = substr($string, 0, $length - 4);
106 if ($pos >= $length * 0.4) {
111 if ($pos >= $length - 4) {
112 $string = substr($string, 0, $length - 4);
115 if ($pos >= $length * 0.4) {
119 return substr($string, 0, $length - 4)." ...";
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent/
H A DIdentity.php199 $length = current(unpack('N', $temp));
206 $signature_blob = fread($this->fsock, $length - 1);
207 if (strlen($signature_blob) != $length - 1) {
211 $length = current(unpack('N', $this->_string_shift($signature_blob, 4)));
212 if ($length != strlen($signature_blob)) {
215 $length = current(unpack('N', $this->_string_shift($signature_blob, 4)));
216 if ($length > strlen($signature_blob) + 4) {
219 $type = $this->_string_shift($signature_blob, $length);
/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/System/SSH/
H A DAgent.php168 $length = current(unpack('N', $temp));
188 $length = current(unpack('N', $temp));
189 $key_blob = fread($this->fsock, $length);
190 if (strlen($key_blob) != $length) {
200 $length = current(unpack('N', $temp));
201 if ($length) {
202 $temp = fread($this->fsock, $length);
203 if (strlen($temp) != $length) {
209 $length = current(unpack('N', substr($key_blob, 0, 4)));
210 $key_type = substr($key_blob, 4, $length);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DASN1.php272 $length&= 0x7F;
274 $encoded_pos += $length;
277 $start+= $length;
325 $length+= 2;
330 $start+= $length;
400 $length = 0;
502 $start+= $length;
1125 * @param int $length
1128 function _encodeLength($length) argument
1130 if ($length <= 0x7F) {
[all …]
/dokuwiki/lib/plugins/styling/
H A Dscript.js15 if (!$loader.length) {
46 if (!$styling_plugin.length) {
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php268 * @param int|null $length
271 protected function substr($string, $start = 0, $length = null) argument
274 return mb_substr($string, $start, $length);
277 if ($length) {
278 return substr($string, $start, $length);
/dokuwiki/lib/plugins/extension/
H A Dscript.js28 if(!$lightbox.length){
55 extension = extension.substr(0, extension.length - 1);
93 if($details.length){

123