[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/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: 126 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

AES:: (3 methods):
  setBlockLength()
  setKeyLength()
  setKey()


Class: AES  - X-Ref

Pure-PHP implementation of AES.

setBlockLength($length)   X-Ref
Dummy function

Since \phpseclib\Crypt\AES extends \phpseclib\Crypt\Rijndael, this function is, technically, available, but it doesn't do anything.

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

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

Valid key lengths are 128, 192, and 256.  If the length is less than 128, it will be rounded up to
128.  If the length is greater than 128 and invalid, it will be rounded down to the closest valid amount.

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

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

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

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