tum_,
Thanks for the response.
Your correct. I have 2K RAM and not just 1K. I think I can devote 90% of this or so to RSA. I can store the key in Flash so no problems there. Assembly is the only way to go else you kill yourself in code size.
You are also correct in saying that most SmartCards use a cryptographic coprocessor. But I know some do not. I have read about implementations on 8051 processors and other 8bit micros. I was hopping that someone might know an implementation like this.
Speed is no issue, as this is used only for Key exchange of symetric keys (very infrequently) and firmware update signatures (even more infrequently - hopfully :)
I have done my time in digging through openSSL but have not looked yet at libtomcrypt. I will check that as well. My problem with these libraries is that they are designed for PC's with unlimited RAM. Some of there structures are larger than my entire RAM. I need some very optomized code to make this work.
I still have hope though and will keep trying to find something to make the development faster.
later,
W
"tum_" wrote in news: snipped-for-privacy@a75g2000cwd.googlegroups.com:
Hi there,
> I don't have ready answers to your questions, sorry. But always
> interested in questions like this ;-)
>
> 1) I've googled for CY8C29666 and all the links I've had a quick look
> at quote 2K RAM. Are you sure you've got only 1K?
>
> 2) Assuming you have 1K - can you dedicate all this memory to RSA
> function. If not - how much can you dedicate? My rough estimate is:
> for 1024bit (128 byte) RSA you'll need at least ~520 bytes...
>
> 3) Do you have any particular performance (speed) requirements for the
> RSA operation? It might turn out that you simply can't achive it on a
> given CPU, no matter how smart you are.
>
>
> 4) There's plenty of open source implementations of RSA (mostly in C)
> to start with (search for openssl, libtomcrypt, or just google). I
> have a gut feeling that you won't achieve your goal unless you switch
> to asm but you can always use the C compiler output and improve it.
>
> In case you're not going to give up, I think that this document might
> be helpful:
>formatting link
> Community&CommunityID=285&PageID=552&r_folder=Application%20Notes&r_tit
> le=AN2032&ref=prt
>
> as multiplication is the heart of RSA.
>
>
> You mention smart cards, I'm not an expert in this area
> but from what I've heard those chips tend to use crypto-accelerating
> hardware.
>
> [Posting through Google, they changed their design again and where the
> hell is the Preview button? Sorry if my post looks absolutely
> awkward...]
>