Hi,
I am using TinyOS-2.1.2 and to achieve security techniques i am using
TinyECC-2.0. I want to use the SHA1 available in tinyecc.
The code is:
module DisseminationC {
uses {
interface SHA1;
}
implementation{
void hash(){
uint8_t x=123;
call SHA1.context(context);
call SHA1.update(context, x, sizeof(x));
call SHA1.digest(context, Message_Digest[SHA1HashSize]);
dbg("All", "%s Hash is : %d \n", sim_time_string(), Message_Digest);
}
Here the three functions called are defined in TinyECC-2.0 in SHA1.nc.
This always returns different results for the same input say "123". Am I
doing it the correct way?
Please help me..
Regards,
Jisha Mary Jose
......jMj......
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help