[ Index ]

PHP Cross Reference of DokuWiki




/vendor/phpseclib/phpseclib/phpseclib/Crypt/ -> Blowfish.php (summary)

Pure-PHP implementation of Blowfish. 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: 571 lines (27 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Blowfish:: (6 methods):

Class: Blowfish  - X-Ref

Pure-PHP implementation of Blowfish.

setKeyLength($length)   X-Ref
Sets the key length.

Key lengths can be between 32 and 448 bits.

param: int $length

isValidEngine($engine)   X-Ref
Test for engine validity

This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()

param: int $engine
see: \phpseclib\Crypt\Base::isValidEngine()
return: bool

_setupKey()   X-Ref
Setup the key (expansion)

see: \phpseclib\Crypt\Base::_setupKey()

_encryptBlock($in)   X-Ref
Encrypts a block

param: string $in
return: string

_decryptBlock($in)   X-Ref
Decrypts a block

param: string $in
return: string

_setupInlineCrypt()   X-Ref
Setup the performance-optimized function for de/encrypt()

see: \phpseclib\Crypt\Base::_setupInlineCrypt()