Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino Due support #67

Open
xNxExOx opened this issue Dec 1, 2021 · 3 comments
Open

Arduino Due support #67

xNxExOx opened this issue Dec 1, 2021 · 3 comments

Comments

@xNxExOx
Copy link

xNxExOx commented Dec 1, 2021

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 :)

@cernekee
Copy link
Collaborator

cernekee commented Dec 1, 2021

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.

@xNxExOx
Copy link
Author

xNxExOx commented Dec 2, 2021

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
Copy link
Author

xNxExOx commented Jan 5, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants