[ Index ]

PHP Cross Reference of DokuWiki




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

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

Defines 1 class

AES:: (3 methods):

Class: AES  - X-Ref

Pure-PHP implementation of AES.

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.

see: \phpseclib3\Crypt\Rijndael::setBlockLength()
param: int $length

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

see: \phpseclib3\Crypt\Rijndael:setKeyLength()
param: int $length

setKey($key)   X-Ref
Sets the key.

Rijndael supports five different key lengths, AES only supports three.

see: \phpseclib3\Crypt\Rijndael:setKey()
see: setKeyLength()
param: string $key