The public key isn't necessarily guaranteed to be RSA. It could be DSA or ECDSA as well.