As i know,RSA module mainly depends BN,ASN1,RAND(ASN1 may need other module such as stack,buf). ASN1 is a small parser to parse the asn1 strings,which is a little big to you. if you do not use i2d_PublicKey ,d2i_xxx, you may not even need the ASN1 module.
SHA is a independent module,which needs a file in "crypto" folder -- md32_common.h. So you can customize the source by your self. Choose the functions in rsa.h,which you need. For the rsa implemenetation , i guess you need to keep the "rsa_eay.c,rsa_sign.c,rsa_pk1.c". When rsa sign , it works for two steps.Firstly, do the digest(which type is passed by function's "type" param).I think you may not need all digest type, so i think you can do the digest opertion yourself. Secondly, do the private encrypt operation(this call the method in rsa_eay.c).You can keey these codes. When rsa verify, it just like the "rsa sign". At 2011-01-21 19:24:47,"Muneeswaran Raju" <hieswar...@gmail.com> wrote: Hi, I tried the option. Also I used [ invoked ] only RSA private/puplic key generation, RSA sign/verification, SHA256, SHA1 digest. But still I get huge final image size in linux-X86 platform. I want to use memory very optimum. Probably i have only 50KB-100KB for my image size. Please find below the current size description bash-3.2$ size openssssl text data bss dec hex filename 697051 4808 12256 714115 ae583 openssssl Please provide your suggestion on the same. Thanks Muneeswaran.R 2011/1/17 lzyzizi<lzyz...@126.com> you can add the marco flag when you make the openssl project. for example, let's say you do not want to add DSA module into your lib,then make -DOPENSSL_NO_DSA with this flag, all source code about DSA is exclude from your lib. I saw some doc with these flags(OPENSSL_NO_XXX),but i fogot where i saw them...you can also reference the openssl headers("include" to get more details) At 2011-01-17 15:50:57,"Muneeswaran Raju" <hieswar...@gmail.com> wrote: Hi, I need to use RSA keygeneration, signing, SHA1 hash. But I have very less memory avaialable. what is the way to remove unnecessary modules to get added into libraries/final image. Thanks Muneeswaran.R