Why if I call RSA_size() on an RSA object do I obtain a value less than the return value of i2d_RSAPublicKey (the size of the public key) called on the same RSA object?
Why if I call RSA_size() on an RSA object do I obtain a value
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because
i2d_RSAPublicKeygives you a PKCS#1 encoded version of the key, including public exponent and DER elements.RSA_size()gives you just the size in bytes of the pure modulus (which is also the size of any unencoded signature or ciphertext for that key).