I'm having a problem understanding the size of an RSA public key and its private key pair.
I saw different key sizes for RSA algorithm (512, 1024,... for example), but is this the length of public key or the length of private key or are both equal in length?
I already searched for it, but:
- In thisthis question it is mentioned that both private and public keys for RSA algorithm have equal length. But:
- In thisthis question it is mentioned that they have different lengths!
Both answers are accepted. Are they equal or not in length?
Moreover my Java Card applet that generate RSA key pairs, always return pubic key and private key of equal length. The online tools for generating RSA key pairs have different length output!
Examples:

