BCD List to HEX List

Paul Rubin http
Mon Jul 31 11:09:54 EDT 2006


Philippe Martin <pmartin at snakecard.com> writes:
> On device #1 no constraint for my purpose. On the smartcard, the tradeoff is
> between using EEPROM (plenty + slow + small life expectancy) for temp
> variables versus RAM (very little) ... but I do not think it is an issue
> eather in my case. Speed is what worries me most (crypto takes time).

You should not have to do this decimal-hex conversion repeatedly in a
crypto operation.  Do you have a public-key accelerator (or MAC unit)
on that cpu?  Do you really care about speed?  I had thought up a cute
O(n**3) scheme that might have been ok for 8 digits but probably not
for 24.



More information about the Python-list mailing list