Rev 1042 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1042 | Rev 1411 | ||
---|---|---|---|
Line 831... | Line 831... | ||
831 | $Nb = $this->Nb; |
831 | $Nb = $this->Nb; |
832 | $c = $this->c; |
832 | $c = $this->c; |
833 | 833 | ||
834 | // Generating encrypt code: |
834 | // Generating encrypt code: |
835 | $init_encrypt .= ' |
835 | $init_encrypt .= ' |
836 | static $tables; |
- | |
837 | if (empty($tables)) { |
836 | if (empty($tables)) { |
838 | $tables = &$this->getTables(); |
837 | $tables = &$this->getTables(); |
839 | } |
838 | } |
840 | $t0 = $tables[0]; |
839 | $t0 = $tables[0]; |
841 | $t1 = $tables[1]; |
840 | $t1 = $tables[1]; |
Line 888... | Line 887... | ||
888 | } |
887 | } |
889 | $encrypt_block .= ');'; |
888 | $encrypt_block .= ');'; |
890 | 889 | ||
891 | // Generating decrypt code: |
890 | // Generating decrypt code: |
892 | $init_decrypt .= ' |
891 | $init_decrypt .= ' |
893 | static $invtables; |
- | |
894 | if (empty($invtables)) { |
892 | if (empty($invtables)) { |
895 | $invtables = &$this->getInvTables(); |
893 | $invtables = &$this->getInvTables(); |
896 | } |
894 | } |
897 | $dt0 = $invtables[0]; |
895 | $dt0 = $invtables[0]; |
898 | $dt1 = $invtables[1]; |
896 | $dt1 = $invtables[1]; |
Line 945... | Line 943... | ||
945 | } |
943 | } |
946 | $decrypt_block .= ');'; |
944 | $decrypt_block .= ');'; |
947 | 945 | ||
948 | $this->inline_crypt = $this->createInlineCryptFunction( |
946 | $this->inline_crypt = $this->createInlineCryptFunction( |
949 | [ |
947 | [ |
950 | 'init_crypt' => '', |
948 | 'init_crypt' => 'static $tables; static $invtables;', |
951 | 'init_encrypt' => $init_encrypt, |
949 | 'init_encrypt' => $init_encrypt, |
952 | 'init_decrypt' => $init_decrypt, |
950 | 'init_decrypt' => $init_decrypt, |
953 | 'encrypt_block' => $encrypt_block, |
951 | 'encrypt_block' => $encrypt_block, |
954 | 'decrypt_block' => $decrypt_block |
952 | 'decrypt_block' => $decrypt_block |
955 | ] |
953 | ] |