I'm trying to create a sample security token with Atmega64, And now i'm a little confused about how to program that. As it mentioned in PKCS11 Document token hardware should support about 70 function.
But my question is how should i write those function for my Atmega64 and i use AVR Studio 6 - AVRGCC C++ project.
A sample code for what i had write:
#include<...
#define<...
...
/*
*
* here i define all those function
*
*/
char *get_input(){
/*code*/
}
process_input(){
/*code*/
}
int main(){
while(1){
get_input();
process_input();
}
}
Is there any problem with this?