[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
Pure-PHP implementation of AES. Uses mcrypt, if available/possible, and an internal implementation, otherwise.
Author: | Jim Wigginton |
Copyright: | 2008 Jim Wigginton |
License: | http://www.opensource.org/licenses/mit-license.html MIT License |
Link: | http://phpseclib.sourceforge.net |
File Size: | 116 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
AES:: (3 methods):
setBlockLength()
setKeyLength()
setKey()
setBlockLength($length) X-Ref |
Dummy function Since \phpseclib3\Crypt\AES extends \phpseclib3\Crypt\Rijndael, this function is, technically, available, but it doesn't do anything. param: int $length see: \phpseclib3\Crypt\Rijndael::setBlockLength() |
setKeyLength($length) X-Ref |
Sets the key length Valid key lengths are 128, 192, and 256. Set the link to bool(false) to disable a fixed key length param: int $length see: \phpseclib3\Crypt\Rijndael:setKeyLength() |
setKey($key) X-Ref |
Sets the key. Rijndael supports five different key lengths, AES only supports three. param: string $key see: \phpseclib3\Crypt\Rijndael:setKey() see: setKeyLength() |