Lightweight Implementation of the KLEIN Block Cipher for ATtiny Devices
With the rapid development of wireless sensor networks and RFID applications,the related information security problems are more and more concerned.According to the low-resource requirement,lightw eight block ciphers are w idely focused in the applications of resource-constrained environments.At RFIDSec 2011,Gong et al.proposed a new lightw eight block cipher,w hich is named KLEIN,for the softw are implementation in resource-constrained environments.In this paper,w e propose a lightw eight implementation of the KLEIN block cipher in AVR ASM based on the properties of ATtiny microcontrollers.In the implementation,lookup tables and logical operations are combined for reducing the computational costs in the MixNibbles step,w hich obtain a better balance betw een the algorithm's speed and storage.Compares to the traditional methods,the performance results show our optimization has advantages on both of the speed and memory costs.