PHP Class phpseclib\Crypt\AES

Author: Jim Wigginton ([email protected])
Inheritance: extends Rijndael
Show file Open project: phpseclib/phpseclib Class Usage Examples

Public Methods

Method Description
setBlockLength ( integer $length ) Dummy function
setKey ( string $key ) Sets the key.
setKeyLength ( integer $length ) Sets the key length

Method Details

setBlockLength() public method

Since \phpseclib\Crypt\AES extends \phpseclib\Crypt\Rijndael, this function is, technically, available, but it doesn't do anything.
See also: phpseclib\Crypt\Rijndael::setBlockLength()
public setBlockLength ( integer $length )
$length integer

setKey() public method

Rijndael supports five different key lengths, AES only supports three.
See also: setKeyLength()
public setKey ( string $key )
$key string

setKeyLength() public method

Valid key lengths are 128, 192, and 256. Set the link to bool(false) to disable a fixed key length
public setKeyLength ( integer $length )
$length integer