In article <0e3a2509-a195-4120-8636-
>,
says...
> On Oct 22, 11:08 am, Thad Smith <ThadSm...@acm.org> wrote:
>
> > Implementing a non-volatile counter as you described appears
> > straight-forward. You haven't mentioned the essence of your problem. I
> > could make guesses, but it would be easier if you tell us.
> >
>
> Hi, Thanks for your reply.
> Basically what I want to do is :
> - I have a Main program running on a PIC18(can be any MC)
> - Apart from that I have another PIC16(can be any MC) with some amount
> of non-volatile memory.
> - a variable "Counter" is stored on the non-volatile memory ie PIC16
> side
So what are you Securing against?
Secure Embedded can mean many different things from design
security to secure against all types of direct and indirect snooping or
attack.
> Now when the Main program starts up(on PIC18) ,during program
> bootup,it must read the "Counter" value present on non-volatile memory
> (This part I can manage with some I2c or Uart).
So you have a link that could be monitored, cracked or simulated.
> Now depending on the "Counter" value read , the program must either
> continue or halt.
> Also a copy of "Counter" must be stored in PIC18(the main MC)
Inside the PIC or on yet another component?
> Now my question is on:How to implement this mechanism efficiently and
> what kind of encryption i should use at PIC16 and PIC18 side.
> Hope this is clear.
Depends on so many factors as you still have given no idea what
you are securing against.
--
Paul Carpenter |
<http://www.pcserviceselectronics.co.uk/> PC Services
<http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font
<http://www.gnuh8.org.uk/> GNU H8 - compiler & Renesas H8/H8S/H8 Tiny
<http://www.badweb.org.uk/> For those web sites you hate