Lines Matching refs:crypto
80 static $crypto = false, $v;
81 if ($crypto === false) {
136 // see the is_string($crypto) part for an example of how to expand the keys
145 $crypto = new AES('ctr');
148 $crypto = new Twofish('ctr');
151 $crypto = new Blowfish('ctr');
154 $crypto = new TripleDES('ctr');
157 $crypto = new DES('ctr');
160 $crypto = new RC4();
166 $crypto->setKey(substr($key, 0, $crypto->getKeyLength() >> 3));
167 $crypto->setIV(substr($iv, 0, $crypto->getBlockLength() >> 3));
168 $crypto->enableContinuousBuffer();
171 //return $crypto->encrypt(str_repeat("\0", $length));
183 $i = $crypto->encrypt(microtime()); // strlen(microtime()) == 21
184 $r = $crypto->encrypt($i ^ $v); // strlen($v) == 20
185 $v = $crypto->encrypt($r ^ $i); // strlen($r) == 20