[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
Pure-PHP implementation of Twofish. Uses mcrypt, if available, and an internal implementation, otherwise.
Author: | Jim Wigginton |
Author: | Hans-Juergen Petrich |
Copyright: | 2007 Jim Wigginton |
License: | http://www.opensource.org/licenses/mit-license.html MIT License |
Link: | http://phpseclib.sourceforge.net |
File Size: | 816 lines (37 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Twofish:: (9 methods):
__construct()
initialize_static_variables()
setKeyLength()
setKey()
setupKey()
mdsrem()
encryptBlock()
decryptBlock()
setupInlineCrypt()
__construct($mode) X-Ref |
Default Constructor. param: string $mode |
initialize_static_variables() X-Ref |
Initialize Static Variables |
setKeyLength($length) X-Ref |
Sets the key length. Valid key lengths are 128, 192 or 256 bits param: int $length |
setKey($key) X-Ref |
Sets the key. Rijndael supports five different key lengths param: string $key see: setKeyLength() |
setupKey() X-Ref |
Setup the key (expansion) see: \phpseclib3\Crypt\Common\SymmetricKey::_setupKey() |
mdsrem($A, $B) X-Ref |
_mdsrem function using by the twofish cipher algorithm return: array param: string $A param: string $B |
encryptBlock($in) X-Ref |
Encrypts a block return: string param: string $in |
decryptBlock($in) X-Ref |
Decrypts a block return: string param: string $in |
setupInlineCrypt() X-Ref |
Setup the performance-optimized function for de/encrypt() see: \phpseclib3\Crypt\Common\SymmetricKey::_setupInlineCrypt() |