SeungYoup Lee
2014-09-19 03:20:59 UTC
I have a problem.
I want to only RSA module in Android ndk enviroment.
When I build Crypto++ ..(so) .. but module size too big
(cryptopp module, stl module, user module = 3.. too many..)
I visits many site.. but i can't small build..
(also i sam it. .. http://morgwai.pl/ndkTutorial/ )
I want to build crypto++ static library (because reduce module size..)
How can I start... ?
Please help me..
Reference..
https://stackoverflow.com/questions/8914264/subset-of-cryptopp-library-for-mobile-usage-ios-android-ndk
*If you want to use crypto++ (and there are many good reasons you'd want
to) this is probably a scenario where you're just best off letting the
linkers do their job. I was concerned about this some time ago, and I could
not do any better by hand than the optimizing linkers could.*
*I confirmed this by dusting off my old test app that uses crypto++ to
generate a new random RSA key, sign a string and verify that string. Here
are the numbers I see:*
-
*libcryptopp.a - crypto++ built for release as a static library using
clang++ against the iOS SDK 5.0. There was no special attmept to minimize
size, just built with -fvisibility=hidden -fvisibility-inlines-hidden and
-Os:22.5MB*
-
*Empty app from the default iOS single view template, built with
-Os: 34KB*
-
*The same empty app with "self test" code added that generates a
keypair, signs (and therefore hashes) a string using RSA/SHA256, hex
encodes it, prints the signature, decodes the signature and verifies the
signature over the original string, built with -Os against the
libcryptopp.a from my first bullet above: 389KB*
*The linker seems to be doing a good job here. If you're seeing something
drastically different, make sure you're really looking at release binaries.*
I want to only RSA module in Android ndk enviroment.
When I build Crypto++ ..(so) .. but module size too big
(cryptopp module, stl module, user module = 3.. too many..)
I visits many site.. but i can't small build..
(also i sam it. .. http://morgwai.pl/ndkTutorial/ )
I want to build crypto++ static library (because reduce module size..)
How can I start... ?
Please help me..
Reference..
https://stackoverflow.com/questions/8914264/subset-of-cryptopp-library-for-mobile-usage-ios-android-ndk
*If you want to use crypto++ (and there are many good reasons you'd want
to) this is probably a scenario where you're just best off letting the
linkers do their job. I was concerned about this some time ago, and I could
not do any better by hand than the optimizing linkers could.*
*I confirmed this by dusting off my old test app that uses crypto++ to
generate a new random RSA key, sign a string and verify that string. Here
are the numbers I see:*
-
*libcryptopp.a - crypto++ built for release as a static library using
clang++ against the iOS SDK 5.0. There was no special attmept to minimize
size, just built with -fvisibility=hidden -fvisibility-inlines-hidden and
-Os:22.5MB*
-
*Empty app from the default iOS single view template, built with
-Os: 34KB*
-
*The same empty app with "self test" code added that generates a
keypair, signs (and therefore hashes) a string using RSA/SHA256, hex
encodes it, prints the signature, decodes the signature and verifies the
signature over the original string, built with -Os against the
libcryptopp.a from my first bullet above: 389KB*
*The linker seems to be doing a good job here. If you're seeing something
drastically different, make sure you're really looking at release binaries.*
--
--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-***@googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-***@googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.