RSA: apply terite's changes to RSA.php too