Research Article
Lightweight Crypto Stack for TPMS Using Lesamnta-LW
Table 3
Implementation comparison on AVR ATmega 128 platform.
| Name | Code (byte) | RAM (data) (byte) | RAM (stack) (byte) | No of cycles @16 MHz | Time (ms) | Compiler option |
| Lesamnta-LW-PRF/ | 1722 | 64 | 57 | 75925 | 4.75 | −O1 | Lesamnta-LW-PRF/ | 1780 | 64 | 52 | 68361 | 4.27 | −O2 | Lesamnta-LW-PRF/ | 2300 | 64 | 42 | 53956 | 3.37 | −O3 | Lesamnta-LW-PRF/ | 1702 | 64 | 59 | 77281 | 4.83 | −Os | Lesamnta-LW-PRF/ | 1732 | 64 | 57 | 75932 | 4.75 | −O1 | Lesamnta-LW-PRF/ | 1790 | 64 | 52 | 68368 | 4.27 | −O2 | Lesamnta-LW-PRF/ | 2310 | 64 | 42 | 53963 | 3.37 | −O3 | Lesamnta-LW-PRF/ | 1712 | 64 | 59 | 77288 | 4.83 | −Os | HMAC-SHA-256 | 2432 | 608 | 97 | 659469 | 41.22 | −O1 | HMAC-SHA-256 | 2384 | 608 | 99 | 659552 | 41.22 | −O2 | HMAC-SHA-256 | 2782 | 608 | 107 | 674392 | 42.15 | −O3 | HMAC-SHA-256 | 2468 | 608 | 107 | 703960 | 44.00 | −Os |
|
|
We consider that the process of xoring 0x0 is skipped by optimization of the compiler. |