Lines Matching refs:len

729                     $len = strlen($plaintext);
734 if ($len >= $max) {
736 $len-= $max;
739 $i = $len;
740 $pos+= $len;
741 $len = 0;
749 $overflow = $len % $this->block_size;
755 $size = $len - $overflow;
760 } elseif ($len) {
769 if (($len = strlen($ciphertext)) >= $this->block_size) {
772 …$this->encryptIV = substr($this->encryptIV, $len - $this->block_size) . substr($ciphertext, -$len);
800 $len = strlen($plaintext);
806 if ($len >= $max) {
808 $len-= $max;
811 $i = $len;
812 $pos+= $len;
813 $len = 0;
819 if ($len >= $block_size) {
820 if ($this->enbuffer['enmcrypt_init'] === false || $len > $this->cfb_init_len) {
825 … $ciphertext.= mcrypt_generic($this->enmcrypt, substr($plaintext, $i, $len - $len % $block_size));
827 $len%= $block_size;
829 while ($len >= $block_size) {
832 $len-= $block_size;
838 if ($len) {
840 $block = $iv ^ substr($plaintext, -$len);
841 $iv = substr_replace($iv, $block, 0, $len);
843 $pos = $len;
929 $len = strlen($plaintext);
934 if ($len >= $max) {
936 $len-= $max;
939 $i = $len;
940 $pos+= $len;
941 $len = 0;
947 while ($len >= $block_size) {
950 $len-= $block_size;
953 if ($len) {
956 $iv = substr_replace($iv, $block, 0, $len);
958 $pos = $len;
963 $len = strlen($plaintext);
966 for ($i = 0; $i < $len; ++$i) {
972 if ($len >= $block_size) {
975 … $this->encryptIV = substr($this->encryptIV, $len - $block_size) . substr($ciphertext, -$len);
1075 $len = strlen($ciphertext);
1080 if ($len >= $max) {
1082 $len-= $max;
1085 $i = $len;
1086 $pos+= $len;
1087 $len = 0;
1094 $overflow = $len % $this->block_size;
1097 if ($len - $overflow) {
1104 } elseif ($len) {
1112 if (($len = strlen($ciphertext)) >= $this->block_size) {
1115 …$this->decryptIV = substr($this->decryptIV, $len - $this->block_size) . substr($ciphertext, -$len);
1141 $len = strlen($ciphertext);
1147 if ($len >= $max) {
1149 $len-= $max;
1152 $i = $len;
1153 $pos+= $len;
1154 $len = 0;
1160 if ($len >= $block_size) {
1161 $cb = substr($ciphertext, $i, $len - $len % $block_size);
1164 $len%= $block_size;
1166 if ($len) {
1168 $plaintext.= $iv ^ substr($ciphertext, -$len);
1169 $iv = substr_replace($iv, substr($ciphertext, -$len), 0, $len);
1170 $pos = $len;
1254 $len = strlen($ciphertext);
1259 if ($len >= $max) {
1261 $len-= $max;
1264 $i = $len;
1265 $pos+= $len;
1266 $len = 0;
1272 while ($len >= $block_size) {
1277 $len-= $block_size;
1280 if ($len) {
1283 $iv = substr_replace($iv, substr($ciphertext, $i), 0, $len);
1284 $pos = $len;
1289 $len = strlen($ciphertext);
1292 for ($i = 0; $i < $len; ++$i) {
1298 if ($len >= $block_size) {
1301 … $this->decryptIV = substr($this->decryptIV, $len - $block_size) . substr($ciphertext, -$len);
1460 $len = strlen($plaintext);
1462 $overflow = $len % $block_size;
2666 $len = strlen($bytes);
2667 for ($i = 0; $i < $len; $i+=20) {