Focusing on the problem of high overhead and frequent overflow of counter mode encryption, this paper proposed an efficient scheme to protect data confidentiality and integrity. Based on the locality character of data accessing, the scheme set different counter length for memory area according to different accessing frequency and the counter length can be dynamic adjusted. The analysis and the simulation results indicated that compared with the counter mode encryption, the scheme can decrease memory space overhead and the number of overflow. The proposed scheme can be applied to other schemes of protecting confidentiality and integrity based on counters and can satisfy performance requirement for most applications.
展开▼