stoken icon indicating copy to clipboard operation
stoken copied to clipboard

Arduino Due support

Open xNxExOx opened this issue 4 years ago • 3 comments

Hello, I would like to use Arduino Due as an replacement for android app Easy Token (RSA). This board should be powerful enough to compute the token in an reasonable time.

So my question is if there is an easy way to extract only the needed functionality, because GUI will be significantly different. Maybe I just missed the pattern in the files organization :)

xNxExOx avatar Dec 01 '21 17:12 xNxExOx

Bare minimum would probably look something like: common.c, compat.c, library.c, securid.c, and associated header files. You'd want to strip out the file I/O, figure out a way to import your token string, and write an stc-*.c wrapper for your preferred crypto library. A bunch of the stc wrappers are only used by sdtid.c so skip that if you can.

I don't think there's a way to use GNU Autoconf for Arduino projects, so the easiest path forward might be to copy the source files into the GUI and use their build system.

cernekee avatar Dec 01 '21 18:12 cernekee

thank you very much, I did not expect this fast answer :) will try to follow these advice, and let you know how well did it go :)

xNxExOx avatar Dec 02 '21 07:12 xNxExOx

Hi again, I think I was able to replace the crypto functions, but right now I am kind of struck on __stoken_parse_and_decode_token is there some short list what this function does, so I can replace it with constants and assignments?

xNxExOx avatar Jan 05 '22 04:01 xNxExOx