Encrypting method and decrypting method of computer memorizer

The invention discloses an encrypting method and decrypting method of a computer memorizer. The encrypting method includes the steps of firstly, dividing data to be encrypted into a plurality of data blocks; secondly, conducting hash calculation on each data block, conducting encryption calculation...

Full description

Saved in:
Bibliographic Details
Main Authors ZHONG KAN, LI YANG, LUO XIANLU, LIANG LIANG, LIU DUO
Format Patent
LanguageEnglish
Published 23.12.2015
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses an encrypting method and decrypting method of a computer memorizer. The encrypting method includes the steps of firstly, dividing data to be encrypted into a plurality of data blocks; secondly, conducting hash calculation on each data block, conducting encryption calculation on obtained results, and obtaining middle variables marked as PAD and corresponding to the data blocks; thirdly, judging whether addresses of data to be written in are located in a frequent-writing hot area in a nonvolatile memorizer or not; fourthly, putting the PAD values of the data blocks of the hot area in a cache; fifthly, conducting exclusive-or operation on the content of the data blocks and the PAD values corresponding to the data blocks to obtain encrypted data. The decrypting method includes the steps of firstly, reading data blocks to be decrypted; secondly, judging whether data to be read are hot area data or not, if yes, reading middle variables PAD corresponding to the hot area data from the cache for the hot area data, and if not, calculating the PAD values according to the encryption process method; thirdly, conducting exclusive-or operation on the content of the data blocks and the PAD values corresponding to the data blocks to obtain initial data. The methods have the advantages that power consumption of a system is lowered, and time delay of the system is reduced.
Bibliography:Application Number: CN20151579516