Read 512*3 bytes from file in RSA::setKey

fgets 512 only reads up to 511 bytes