Hi Bizhan, > The command BN_num_bytes(rsa_public_key->e) returns the size > of the exponent part of the public key, and it is 3 bytes. "10001". > Could this be a valid value? Yes. Typical values are 3, 17, and 65535.
> We have a system that requires public key exponent to be 4 bytes, > could I pad the exponent so it be 4 bytes? Yes. Pad at the leading octets. Jeff On Fri, Oct 30, 2009 at 10:38 PM, Bizhan Gholikhamseh (bgholikh) <bghol...@cisco.com> wrote: > Hi All, > In our environment a secure server creates Private/Public RSA keys. > We Can never access the Private key but we are able to access the Public > Key. > The command BN_num_bytes(rsa_public_key->e) returns the size of the > exponent part of the public key, and it is 3 bytes. "10001". > > Could this be a valid value? > > We have a system that requires public key exponent to be 4 bytes, could > I pad the exponent so it be 4 bytes? > > Many thanks in advance, > > B > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org