Hi All,
Background: I have worked on embedded systems where security or encryption were never used.I just have some text book knowledge about encryption/ decryption and nothing more.So you can assume I am a newbie in this matter.
Problem: Currently am planning to implement a kind of simple model as below:
-A value is stored in non-volatile part of memory say a "Counter"
-After a certain task or incident, the above "Counter" value is decreased and stored back into memory(may not be the same memory as "Counter")
-At the Boot-up time, Boot-loader checks the value in "Counter" and if its less than a certain number, prints out an error message through serial port etc
I am using a low end 8/16 bit micro-controller and code/data memory IS a constraint. I am not mentioning much about my system as I would like a very generic explanation. Also would like to look at as many different ways of doing it as possible.
What is the best way to implement the above design where CPU cycles and memory usage matter a lot? Of-course I would be using an encryption/decryption mechanism and would like to know any design patterns for this kind of model as I think its a quiet common requirement.
Could anybody please point me to any reading materials on this as most of my Google search leads me to Encrypted data for USB flash or something similar.
P.S.:Sorry for my poor English
Regards Aj