Look at https://github.com/mpscholten/phpseclib/blob/23105fb829bfb366882f6bf0d6bfef291e94f5d4/phpseclib/Math/BigInteger.php#L3064 The old phpdoc was wrong