A kind of OTP-SD electronic publication encryption methodTechnical field
The present invention relates to a kind of OTP-SD electronic publication encryption method, especially a kind of by changing the encryption method of OTP-SD card control chip program and dedicated reader.
Background technology
At present the interface modes that uses of SD card and SD card reader has two kinds of SD MODE and SPI MODE, and common SD is stuck in can't realize anti-copying and copyright protection function under these two kinds of agreements.
Rewriting raw data by cipher mode, raw data is protected, is commonplace effective protected mode.
The data encryption of SD card has been distinguished two kinds of soft encryption and hardware encryptions according to mode:
The SD card of soft encryption mode, irrelevant with interface protocol, read encrypting rear data by using special-purpose ocr software, easily crack, after key and cipher mode are cracked, form one broken hundred broken situation, protection is renderd a service lower to data.
The SD card of hardware encryption mode, use special-purpose read-write chip and specific interface protocol, make unauthorized user can't copy content in the SD card, but it must reduce again with the interface requirement that special-purpose read-write chip is used the versatility of SD card, and usable range, can only use in particular terminal.
OTP-SD is first the large capacity OTP chip of the whole world by the design of Israel IM company, it is a kind of one-time write programmable semiconductor memory, OTP-SD blocking fabrication technique and CMOS are similar, its the less mask number of plies and machining need step, so that the technological process of production is more simple and cost is low.
The OTP-SD card has adopted 12 cun wafer 75nm processing procedures.The 75nm processing procedure can obtain the higher running frequency of internal memory than at present general 80nm-90nm processing procedure.And used state-of-the-art one-time write technology.Compare with traditional SD, do not support to append the operations such as burning and deletion, greatly strengthened security and the confidentiality of product.Reduce the loss that causes owing to maloperation, be particularly suitable for publication.
The OTP-SD card meets microstorage card reference 1.1 that SD card association (SDA) provides and the reliability of error correcting code (ECC) detects.The OTP-SD card is stronger than common SD card reliability, and data retention time is long, and serviceable life is of a specified duration.
The OTP-SD card adopts 8 advanced pin interface, is used for transfer control, address and data message, can support NAND interface and instruction set.Maximum operation frequency is 25MHz, and low-voltage does not wait from 2.7V to 3.6V.Can support the common transfer rate classes 0 of SD card, 2,8,10, writing speed is 0.5MB/S, and reading speed is 8.5MB/S.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art; a kind of OTP-SD electronic publication encryption method is provided; on the basis of using general SD card interface, traditional SD card and cipher mode are improved; strengthen copyright protection function, and users and reading terminal can be identified.
According to technical scheme provided by the invention, described OTP-SD electronic publication encryption method is: OTP-SD main control chip logical block is carried out pre-programmed process, storage unit in the OTP-SD card is divided into file system and non-public storage area two parts, and the checking character string that burning is appointed in the main control chip register, non-public storage area. access is implemented control and checking;
Described file system is the user visible range, uses the general-purpose interface agreement, and the user can access; Described non-public storage area is user's invisible area, uses special agreement interface protocol, and the user can't access; Electronic publication data and dedicated reader are deposited in described file system, and key is deposited in non-public storage area;
Described electronic publication source data is burned onto in the OTP-SD card after adopting described key to be encrypted.
Described electronic publication source data adopts key to be encrypted and refers to: use described key that the electronic publication source data is carried out hash transformation, the special format file that formation can't normal reading.
Described OTP-SD main control chip is to adopt general-purpose interface agreement or special agreement interface protocol to judge that reading order is that file system data reads by the access mode of reading order, or non-public storage area data read.
Described OTP-SD main control chip judges that when reading order adopted the general-purpose interface agreement, the OTP-SD main control chip was by data in the storage unit kernel interface storage unit access File system.
Described OTP-SD main control chip judges that when reading order adopted special agreement interface protocol, the OTP-SD main control chip transmitted non-public storage area data to this reading order transmitting terminal after checking.
Described dedicated reader uses WINDOWS disk driver and SD card reader to carry out interface, again by the electronic publication data after encrypting in the card reader access OTP-SD card; Perhaps, dedicated reader uses the OTP-SD specific protocol, carries out communication with the OTP-SD main control chip, accesses non-public storage area after the authorized affirmation, obtains key information;
Described dedicated reader comprises concrete decipherment algorithm, and data are reduced in Installed System Memory and read for the user after will encrypting in conjunction with the key information in the non-public storage area.
Advantage of the present invention is:
General OTP semi-conductor chip memory capacity is calculated take KB as unit, and the present invention adopts the large capacity OTP-SD of 100,000,000 grades of technology leading in the world, is convenient to the electronic publication distribution, and the data long preservation.
Use can not be read and the non-public regional development and technology of rewriting privately, the publication intellecture property is formed with to try hard to keep protects, for publication provides reliable guarantee in the electronic applications distribution.
In conjunction with electronic publication cheap issuing cost and large capacity OTP encryption technology, this product possesses the perspective and great development potentiality in market of height.
A series of copy right piracies such as the present invention has limited the copying of user, totally copies, clone.
Description of drawings
Fig. 1 is the electronic publication encryption method process flow diagram.
Fig. 2 is OTP-SD internal work schematic diagram.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.The present invention improves traditional SD card and cipher mode on the basis of using general SD card interface; strengthen copyright protection function; and users and reading terminal can be identified; be that semiconductor storage replaces conventional storage media, carry out condition precedent and the basic guarantee of electronic publication distribution.
As shown in Figure 1, the electronic publication source data is carried out hash transformation, form three parts data to be copied after encrypting: contain encrypt file, dedicated reader, the key of copyright protection information, they are burned onto respectively in the OTP-SD card in the appointed area.
The electronic publication source data must be advanced encipherment protection and just can be burned onto in the OTP-SD card, and the present invention carries out hash transformation by key information (hashing algorithm) with source data, the special format file that formation can't normal reading.
The present invention carries out pre-programmed to OTP-SD main control chip logical block and processes; storage unit is divided into file system and non-public storage area two parts in will blocking; and the checking character string that burning is appointed in the main control chip register; non-public storage area. access is implemented strict control and proof procedure, to realize the protection to the encrypted area data.
In storage unit, file system is the user visible range, and the general-purpose interface agreement is used in this zone, and the user can access; Non-public storage area is user's invisible area, and special agreement interface protocol is used in this zone, and the user can't access.In file system area, key is deposited in non-public storage area with deposit data such as electronic publications.
Be described as follows:
One, the transmission of key is mainly controlled by the OTP-SD main control chip, and reading order is sent by the electronic publication read routine.The special rendezvous protocol that non-public storage area is used is by the general-purpose interface protocol variations, made up by common read write command, as continuous 64 times to specifying logical address to read, the OTP-SD main control chip enters determinating mode, after entering this pattern, read routine is to specifying logical address to send the checking character string of appointing, during the inherent fabrication of OTP-SD main control chip register with this character string burning, after judging unanimously, just key information can be sent to read routine.So general card reader also can be transmitted these orders, this has just solved non-specialized equipment hardware encipher application problem.
Two, dedicated reader is that this program is read electronic publication in the OTP-SD card by two kinds of different access modes and shown with the software program of file reduction and reading after encrypting.
1, dedicated reader uses WINDOWS disk driver and SD card reader to carry out interface, again by the electronic publication data after encrypting in the card reader access OTP-SD card.
2, dedicated reader uses the special rendezvous protocol of OTP-SD, carries out communication with the OTP-SD main control chip, accesses non-public storage area after the authorized affirmation, obtains key information.
3, dedicated reader comprises concrete decipherment algorithm, and data are reduced in Installed System Memory and read for the user after will encrypting in conjunction with the key information in the non-public storage area.
4, dedicated reader possesses the function such as bookmark, retrieval, page turning of all average reading devices, and by hommization be designed to customization reading, study plan, build the reading environment that paper book does not possess with the software gui interface that electronic publication is made to measure for the user.
As shown in Figure 2, the OTP-SD main control chip will be to adopt general-purpose interface agreement or special agreement interface protocol to judge that reading order is that file system data reads by the access mode of reading order, or non-public storage area data read.
If the general-purpose interface agreement, main control chip will be by data in the storage unit kernel interface storage unit access File system; If special agreement interface protocol, the OTP-SD main control chip transmits non-public storage area data to this reading order transmitting terminal after checking.