Home
last modified time | relevance | path

Searched refs:length (Results 1 - 25 of 61) sorted by relevance

123

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DAES.php15 * {@link self::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. If it's 136-bits
16 * it'll be null-padded to 192-bits and 192 bits will be the key length until {@link self::setKey() setKey()}
21 * however possible, won't do anything (AES has a fixed block length whereas Rijndael has a variable one).
68 * @param int $length
70 function setBlockLength($length)
76 * Sets the key length
78 * Valid key lengths are 128, 192, and 256. If the length is less than 128, it will be rounded up to
79 * 128. If the length is greater than 128 and invalid, it will be rounded down to the closest valid amount.
83 * @param int $length
85 function setKeyLength($length)
89 $length = 192; global() variable
92 $length = 256; global() variable
112 $length = strlen($key); global() variable
[all...]
H A DRandom.php43 * @param int $length
46 static function string($length)
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) {
111 return @mcrypt_create_iv($length, MCRYPT_DEV_URANDO
[all...]
H A DTripleDES.php223 * Sets the key length.
229 * @param int $length
231 function setKeyLength($length)
233 $length >>= 3;
235 case $length <= 8:
238 case $length <= 16:
245 parent::setKeyLength($length);
251 * Keys can be of any length. Triple DES, itself, can use 128-bit (eg. strlen($key) == 16) or
265 $length = $this->explicit_key_length ? $this->key_length : strlen($key); variable
266 if ($length >
[all...]
H A DRC4.php194 * Sets the key length
199 * @param int $length
201 function setKeyLength($length)
203 if ($length < 8) {
205 } elseif ($length > 2048) {
208 $this->key_length = $length >> 3;
211 parent::setKeyLength($length);
H A DRijndael.php12 * {@link self::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. If it's
13 * 136-bits it'll be null-padded to 192-bits and 192 bits will be the key length until
16 * Not all Rijndael implementations may support 160-bits or 224-bits as the block length / key length. mcrypt, for example,
172 * Sets the key length.
174 * Valid key lengths are 128, 160, 192, 224, and 256. If the length is less than 128, it will be rounded up to
175 * 128. If the length is greater than 128 and invalid, it will be rounded down to the closest valid amount.
189 * @param int $length
191 function setKeyLength($length)
194 case $length <
226 $length = 8; global() variable
228 $length = 4; global() variable
506 $length = $this->Nb * ($this->Nr + 1); global() variable
[all...]
H A DRSA.php290 * Modulus length
1219 $length = $this->_decodeLength($temp); variable
1220 switch ($this->_string_shift($temp, $length)) {
1244 $length = $this->_decodeLength($key); variable
1245 if (strlen($key) != $length) {
1267 $this->_decodeLength($key); // skip over the BIT STRING / OCTET STRING length
1286 $length = $this->_decodeLength($key); variable
1287 $temp = $this->_string_shift($key, $length);
1291 $length = $this->_decodeLength($key); variable
1292 $components[$type == self::PUBLIC_FORMAT_PKCS1 ? 'publicExponent' : 'privateExponent'] = new BigInteger($this->_string_shift($key, $length), 25
1299 $length = $this->_decodeLength($key); global() variable
1302 $length = $this->_decodeLength($key); global() variable
1305 $length = $this->_decodeLength($key); global() variable
1308 $length = $this->_decodeLength($key); global() variable
1311 $length = $this->_decodeLength($key); global() variable
1314 $length = $this->_decodeLength($key); global() variable
1317 $length = $this->_decodeLength($key); global() variable
1320 $length = $this->_decodeLength($key); global() variable
1334 $length = $this->_decodeLength($key); global() variable
1337 $length = $this->_decodeLength($key); global() variable
1340 $length = $this->_decodeLength($key); global() variable
2053 $length = ord($this->_string_shift($string)); global() variable
3123 $length = $this->k - 11; global() variable
3136 $length = $this->k - 2 * $this->hLen - 2; global() variable
[all...]
H A DBlowfish.php287 * Sets the key length.
292 * @param int $length
294 function setKeyLength($length)
296 if ($length < 32) {
298 } elseif ($length > 448) {
301 $this->key_length = $length >> 3;
304 parent::setKeyLength($length);
H A DHash.php80 * Byte-length of compression blocks / key (Internal HMAC)
89 * Byte-length of hash output (Internal HMAC)
179 * Keys can be of any length.
407 * Returns the hash length (in bytes)
474 $length = strlen($m); variable
479 for ($i = 0; $i < $length; $i+= 16) {
490 $length+= 16;
496 for ($i = 0; $i < $length; $i+= 16) {
547 $length = strlen($m); variable
548 // to round to nearest 56 mod 64, we'll add 64 - (length
684 $length = strlen($m); global() variable
[all...]
/dokuwiki/inc/Utf8/
H A DPhpString.php73 * Return part of a string given character offset (and optionally length)
77 * @param int $length (optional) length in UTF-8 characters from offset
83 public static function substr($str, $offset, $length = null)
86 if ($length === null) {
90 return mb_substr($str, $offset, $length);
98 * offset and length, we'll repeat a group of 65535 characters when needed (ok, up to MAXINT-65536)
100 * substr documentation states false can be returned in some cases (e.g. offset > string length)
104 * we only carry it out when necessary. It isn't necessary for +ve offsets and no specified length
110 if ($length !
148 $length = min($strlen - $offset, $length); global() variable
365 $length = null; global() variable
373 $length = self::strlen(substr($haystack, 0, $pos)); global() variable
[all...]
/dokuwiki/lib/scripts/
H A Dhelpers.js8 * Supports negative start and length and omitting length, but not
12 function substr_replace(str, replace, start, length) {
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
[all...]
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).length)) {
72 if($fndiv.length === 0){
103 if (!$content.length) {
138 if(!$handle.length) return;
140 if(!$content.length) return;
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 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;
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 Dmedia.js34 if (!$tree.length) return;
116 if ($options.length === 0) {
252 opts += (opts.length) ? '&' : '?';
298 if (!$file.length || !$name.length) {
328 if ($content.length === 0) {
346 } else if ($link.closest('form').length > 0) {
360 if (!$form.length) return;
432 } else if ($link.closest('form').length > 0) {
474 if ($container.length
[all...]
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 Dbehaviour.js74 if($obj.length) {
159 if (0 === $form.length) return;
195 if($checked.length < 2) {
219 if (!$checkDiv.length) return;
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DFeedCreator.php85 * Truncates a string to a certain length at the most sensible point.
89 * If the string is already shorter than $length, it is returned unchanged.
92 * @param int $length the maximum length the string should be truncated to
95 public static function iTrunc($string, $length)
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
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/
H A DAgent.php168 $length = current(unpack('N', $temp)); variable
188 $length = current(unpack('N', $temp)); variable
189 $key_blob = fread($this->fsock, $length);
190 if (strlen($key_blob) != $length) {
200 $length = current(unpack('N', $temp)); variable
201 if ($length) {
202 $temp = fread($this->fsock, $length);
203 if (strlen($temp) != $length) {
209 $length = current(unpack('N', substr($key_blob, 0, 4))); variable
210 $key_type = substr($key_blob, 4, $length);
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent/
H A DIdentity.php199 $length = current(unpack('N', $temp)); variable
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))); variable
212 if ($length != strlen($signature_blob)) {
215 $length = current(unpack('N', $this->_string_shift($signature_blob, 4))); variable
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) {
73 // increase sidebar length to match content (desktop mode only)
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DASN1.php185 * size == 0 indicates variable length encoding.
225 * self::TYPE_OCTET_STRING. In those cases, the indefinite length is used.
263 $length = ord($encoded[$encoded_pos++]); variable
265 if ($length == 0x80) { // indefinite length
268 $length = strlen($encoded) - $encoded_pos; variable
269 } elseif ($length & 0x80) { // definite length, long form
270 // technically, the long form of the length can be represented by up to 126 octets (bytes), but we'll only
272 $length
322 $length = $temp['length']; global() variable
400 $length = 0; global() variable
437 $length = $offset + 2; // +2 for the EOC global() variable
[all...]
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php232 * Pad the given string to the correct length
248 * Measures char length in UTF-8 when possible
268 * @param int|null $length
271 protected function substr($string, $start = 0, $length = null)
274 return mb_substr($string, $start, $length);
276 // mb_substr() treats $length differently than substr()
277 if ($length) {
278 return substr($string, $start, $length);
/dokuwiki/vendor/composer/
H A DClassLoader.php182 $length = strlen($prefix); variable
183 if ('\\' !== $prefix[$length - 1]) {
186 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
233 $length = strlen($prefix); variable
234 if ('\\' !== $prefix[$length - 1]) {
237 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;

Completed in 40 milliseconds

123