RSA: update macdabby's changes to work on 2.0 branch
RSA: update macdabby's changes to work on 2.0 branch

metaclassing/phpseclib,phpseclib/phpseclib,terrafrost/phpseclib,danog/phpseclib,metaclassing/phpseclib,danog/phpseclib