phpseclib\Crypt\Blowfish::setKeyLength PHP Метод

setKeyLength() публичный Метод

Key lengths can be between 32 and 448 bits.
public setKeyLength ( integer $length )
$length integer
    function setKeyLength($length)
    {
        if ($length < 32 || $length > 448) {
            throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. Only keys of sizes between 32 and 448 bits are supported');
        }
        $this->key_length = $length >> 3;
        parent::setKeyLength($length);
    }