We conduct the implementation on two TelosB Mote, one as reader and the other as user, 5, supported by UC Berkeley’s 2.x TinyOS[13] operating system6 and the NesC[14] programming language. For ECC implementation, we adapted a WM-ECC7 package for TinyOS, developed by a security team led by Dr. Qun Li at College of William and Mary. In experiments, we make appropriate modifications on their program to make them executable on TinyOS 2.x platform.
In experiments, we first measure the execution time of between the basic
implementation and the scenario of adapting EC computation, which
involves with several point multiplication and point addition. Here is the
result:
The following table compares the code size of two implementation on both entry and
user sides. The major difference is EC scenario occupy approximately 30kB ROM
and 2.7kB RAM, whereas the basic model uses 21kB ROM and 1.0kB RAM.
Both model implements Sha-1 hash function.