Lines Matching refs:strlen
111 switch (strlen($key)) {
116 …throw new \LengthException('Key of size ' . strlen($key) . ' not supported by this algorithm. Only…
129 if (strlen($nonce) != 8) {
130 …throw new \LengthException('Nonce of size ' . strlen($key) . ' not supported by this algorithm. On…
217 if (strlen($key) == 16) {
277 if ($this->oldtag != substr($newtag, 0, strlen($this->oldtag))) {
344 if (!strlen($buffer['ciphertext'])) {
347 $ciphertext = $text ^ Strings::shift($buffer['ciphertext'], strlen($text));
348 $text = substr($text, strlen($ciphertext));
349 if (!strlen($text)) {
354 $overflow = strlen($text) % 64; // & 0x3F
360 $buffer['counter'] += (strlen($text) >> 6) + 1; // ie. divide by 64
371 if (strlen($text)) {
381 } elseif (!strlen($buffer['ciphertext'])) {
384 $buffer['counter'] += (strlen($text) >> 6);
526 pack('V', strlen($this->aad)) . "\0\0\0\0" .
527 pack('V', strlen($ciphertext)) . "\0\0\0\0"