CN103065068B - A kind of encryption method of imprinting file and device - Google Patents

A kind of encryption method of imprinting file and device Download PDF

Info

Publication number
CN103065068B
CN103065068B CN201210554558.5A CN201210554558A CN103065068B CN 103065068 B CN103065068 B CN 103065068B CN 201210554558 A CN201210554558 A CN 201210554558A CN 103065068 B CN103065068 B CN 103065068B
Authority
CN
China
Prior art keywords
encryption
electronic equipment
bytes
ksv
sequence number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210554558.5A
Other languages
Chinese (zh)
Other versions
CN103065068A (en
Inventor
熊跃平
徐永桥
刘威
陈敏锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN201210554558.5A priority Critical patent/CN103065068B/en
Publication of CN103065068A publication Critical patent/CN103065068A/en
Application granted granted Critical
Publication of CN103065068B publication Critical patent/CN103065068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The present invention is applicable to electronic equipment engraving data security fields, provides a kind of encryption method and device of imprinting file.Described encryption method comprises: the KSV sequence number being obtained electronic equipment by twin wire universal serial bus I2C; The encryption key being used for encryption burning file is generated according to the KSV sequence number obtained; Obtain the information that electronic equipment exports, and adopt the information that described in the encryption keys of generation, electronic equipment exports, to obtain the imprinting file encrypted.This invention ensures that an electronic equipment can only play the file of this electronic equipment imprinting, avoid the dispute over copyright caused because of PVR file propagation, better protect electronic equipment manufacturer, add the international competitiveness of electronic equipment manufacturer.

Description

A kind of encryption method of imprinting file and device
Technical field
The invention belongs to electronic equipment engraving data security fields, particularly relate to a kind of encryption method and device of imprinting file.
Background technology
Along with popularizing of domestic and international Digital Television, personal video record (Personalvideorecorder, the PVR) function as digital television standard configuration feature also enters the huge numbers of families of foreign country thereupon.
If but the video of imprinting also can be play and will relate to the problem of property infringement in other electronic equipment in an electronic equipment (as TV), common practices in existing electronic equipment (as TV) software is, the file layout that PVR generates is generated special form according to the requirement of distinct electronic apparatuses manufacturer, thus make the PVR file of distinct electronic apparatuses manufacturer can not be compatible, can not play mutually.
But existing method still can not solve following problem: for the PVR file of the electronic equipment imprinting that same electronic equipment manufacturer produces, other electronic equipments that this same electronic equipment manufacturer produces still can be play.Such as, suppose the TV that Lee has bought vendor A and produces, the summer has also bought the TV of a same model, then the TV that the video file of the PVR imprinting of TV that Lee is bought by it takes the summer equally also can be play.Like this, along with market abroad order continue increase, the probability encountering such situation is also increasing, thus increases the probability of infringement of copyright.
Summary of the invention
Embodiments provide a kind of encryption method and device of imprinting file, the PVR file being intended to two the electronic equipment imprintings solving same model can be play each other, thus causes the problem that the probability of infringement of copyright improves.
The embodiment of the present invention is achieved in that a kind of encryption method of imprinting file, and described method comprises the steps:
The KSV sequence number of electronic equipment is obtained by twin wire universal serial bus I2C;
The encryption key being used for encryption burning file is generated according to the KSV sequence number obtained;
Obtain the information that electronic equipment exports, and adopt the information that described in the encryption keys of generation, electronic equipment exports, to obtain the imprinting file encrypted.
Another object of the embodiment of the present invention is the encryption device providing a kind of imprinting file, and described encryption device comprises:
I2C bus, for obtaining the KSV sequence number of electronic equipment by twin wire universal serial bus I2C;
Encrypting key generating unit, for generating the encryption key being used for encryption burning file according to the KSV sequence number obtained;
Ciphering unit, for obtaining the information that electronic equipment exports, and adopts the information that described in the encryption keys of generation, electronic equipment exports, to obtain the imprinting file encrypted.
In the embodiment of the present invention; the KSV sequence number stored due to each electronic equipment is different; therefore the encryption key that the KSV sequence number using electronic equipment to store generates also is different; thus ensure that the imprinting file obtained at each electronic equipment is also different; namely ensure that an electronic equipment can only play the file of this electronic equipment imprinting; avoid the dispute over copyright caused because of PVR file propagation; better protect electronic equipment manufacturer, add the international competitiveness of electronic equipment manufacturer.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the encryption method of a kind of imprinting file that first embodiment of the invention provides;
Fig. 2 is the structural drawing of the encryption device of a kind of imprinting file that second embodiment of the invention provides;
Fig. 3 is the structural drawing of the encryption device of the another kind of imprinting file that second embodiment of the invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In the embodiment of the present invention, obtain the KSV sequence number that electronic equipment stores, generate the encryption key being used for encryption burning file according to this KSV sequence number, by the information that the encryption keys electronic equipment generated exports, thus obtain the imprinting file after the encryption of this electronic equipment.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
embodiment one:
Fig. 1 shows the process flow diagram of the encryption method of a kind of imprinting file that first embodiment of the invention provides, and details are as follows:
Step S11, obtains the KSV sequence number of electronic equipment by twin wire universal serial bus I2C.
In this step, KSV sequence number (video-encryption key) is stored in advance in be furnished with HDMI (High Definition Multimedia Interface) (HighDefinitionMultimediaInterface, HDMI) or in the electronic equipment of digital visual interface (DigitalVideoInterface, DVI).In order to ensure that the high-resolution signal that HDMI or DVI transmits can not illegally be recorded, just there is HDCP (High-bandwidthDigitalContentProtection, HDCP) technology.HDCP technical manual completes by Intel is leading, and when user carries out bootlegging, this technology can be disturbed, and reduces the quality of the image copying out, thus protects content.Each equipment of HDCP has a unique KSV sequence number, and the cryptography processing units of transmitting terminal and receiving terminal can check the KSV value of the other side, is legal to guarantee to connect.
Electronic equipment manufacturer is that unique KSV sequence number bought by each electronic equipment (as TV), then in FLASH or E2PROM of burned for the KSV sequence number mainboard to electronic equipment.In step s 11, by twin wire universal serial bus (Inter-IntegratedCircuit, I2C), the KSV sequence number in FLASH or E2PROM of burned electronic equipment mainboard is read out.
Further, the KSV sequence number read is preserved, as being kept in the array HashKey [] of televisor.Wherein, the length of KSV is 289 bytes.
Step S12, generates the encryption key being used for encryption burning file according to the KSV sequence number obtained.
The imprinting file of this step is also referred to as PVR file.
Wherein, the step generating the encryption key being used for encryption burning file according to the KSV sequence number obtained specifically comprises: the encryption key the being used for encryption burning file KSV sequence number of 289 bytes being generated 8 bytes.Wherein, the quadratic sum of the value of front 145 bytes of KSV sequence number is equaled for front 4 bytes of the encryption key of encryption burning file; Rear 4 bytes for the encryption key of encryption burning file equal the quadratic sum of the value of rear 144 bytes of KSV sequence number.
In this step, the KSV sequence number of 289 bytes be kept in HashKey [] array is generated the secret key of 8 byte (64), front 4 bytes (32) supposing this secret key are Key_1, then this Key_1 equal the HashKey [0] of HashKey [] array square to add HashKey [1] square, be added to always HashKey [144] square and, rear 4 bytes (32) of secret key are Key_2, this Key_2 equal the HashKey [145] of HashKey [] array square to add HashKey [146] square, be added to square drawing of HashKey [288] always.The KSV sequence number bought due to each electronic equipment is unique, and the 64 bit encryption keys for encryption burning file that therefore each electronic equipment generates according to the KSV sequence number of itself are unique.Wherein, the encryption key generating code for encryption burning file is as follows:
Step S13, obtains the information that electronic equipment exports, and adopts the information that described in the encryption keys of generation, electronic equipment exports, to obtain the imprinting file encrypted.
In this step, the user obtaining electronic equipment output needs the fileinfo of imprinting, such as, when user uses the PVR imprinting of Digital Television, by the decoder module of this Digital Television, the signal being transferred to this Digital Television is converted to corresponding numerical information, the numerical information that the encryption keys re-using generation is converted to.
Wherein, obtain the information that electronic equipment exports, and adopt the information that described in the encryption keys of generation, electronic equipment exports, specifically comprise with the step obtaining the imprinting file encrypted: obtain the information that electronic equipment exports; The information of 4 bytes of n-th time adopting front 4 bytes encryption of encryption key to export, the information of 4 bytes that (n+1) that adopt rear 4 bytes encryption of encryption key to export is secondary; Wherein, n is odd number, and n equals 1,3,5,7 ....Particularly, the information that the electronic equipment of acquisition exports is kept in the array of impact damper (buffer), each buffer data account for 4 bytes (32), then every two buffer data are encrypted, the xor operation that front 4 bytes (Key_1) of first buffer data and encryption key carry out mathematics is obtained the data of encrypting, rear 4 bytes (Key_2) of second buffer data and encryption key are carried out the data that xor operation obtains encrypting.
Preferably, the information of electronic equipment output is obtained in step, and adopt generate encryption keys described in electronic equipment export information, with obtain encrypt imprinting file after, comprise the steps: further by I2C bus generate imprinting file be stored in exterior storage medium.In this step, by I2C bus, the imprinting file after encryption is deposited (as USB flash disk or portable hard drive etc.) in exterior storage medium.
In embodiments of the present invention, obtain the KSV sequence number that electronic equipment stores, generate the encryption key being used for encryption burning file according to this KSV sequence number, by the information that the encryption keys electronic equipment generated exports, thus obtain the imprinting file after the encryption of this electronic equipment.The KSV sequence number stored due to each electronic equipment is different; therefore the encryption key that the KSV sequence number using electronic equipment to store generates also is different; thus ensure that the imprinting file obtained at each electronic equipment is also different; namely ensure that an electronic equipment can only play the file of this electronic equipment imprinting; avoid the dispute over copyright caused because of PVR file propagation; better protect electronic equipment manufacturer, add the international competitiveness of electronic equipment manufacturer.
Be below the process of PVR file that electronic equipment deciphering is play this electronic equipment and generated: (1) first, when user plays PVR imprinting file, electronic equipment reads corresponding numerical information by I2C bus from the PVR file being stored in (as USB flash disk or portable hard drive etc.) exterior storage medium, and being kept in buffer array, each buffer data account for 4 bytes (32); (2) then to every two buffer data decipherings, the xor operation that first buffer data and Key_1 carry out mathematics obtains the data of deciphering, and second buffer data and Key_2 carry out the data that xor operation obtains deciphering; (3) after encrypt file is reduced into ordinary numbers data, the data after these being deciphered by the Video decoding module of electronic equipment are transferred in the video player of master chip decoding to be play.
embodiment two:
Fig. 2 shows the structure of the encryption device of a kind of imprinting file that second embodiment of the invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
The encryption device of this imprinting file may be used for the various information processing terminals by wired or wireless network connection server, such as televisor, computing machine, notebook computer etc., can be the unit that software unit, hardware cell or the software and hardware run in these information processing terminals combines, also can be integrated in these information processing terminals as independently suspension member or run in the application system of these information processing terminals.
The encryption device of this imprinting file comprises: I2C bus 21, encrypting key generating unit 22, ciphering unit 23.Wherein:
I2C bus 21, for obtaining the KSV sequence number of electronic equipment by twin wire universal serial bus I2C.
In the present embodiment, electronic equipment manufacturer is that unique KSV sequence number bought by each electronic equipment (as TV), then in FLASH or E2PROM of burned for the KSV sequence number mainboard to electronic equipment.By I2C bus, the KSV sequence number in FLASH or E2PROM of burned electronic equipment mainboard is read out again.Further, the KSV sequence number read is preserved, as being kept in the array HashKey [] of televisor.Wherein, the length of KSV is 289 bytes.
Preferably, described KSV sequence number prestores in the electronic device, the unique corresponding electronic equipment of each KSV sequence number.
Encrypting key generating unit 22, for generating the encryption key being used for encryption burning file according to the KSV sequence number obtained.
Wherein, the step that described encrypting key generating unit 22 generates encryption key is specially:
The KSV sequence number of 289 bytes is generated the encryption key being used for encryption burning file of 8 bytes; Wherein, front 4 bytes of the described encryption key for encryption burning file equal the quadratic sum of the value of front 145 bytes of KSV sequence number; Rear 4 bytes of the described encryption key for encryption burning file equal the quadratic sum of the value of rear 144 bytes of KSV sequence number.
In the present embodiment, the KSV sequence number of 289 bytes be kept in HashKey [] array is generated the secret key of 8 byte (64).
Ciphering unit 23, for obtaining the information that electronic equipment exports, and adopts the information that described in the encryption keys of generation, electronic equipment exports, to obtain the imprinting file encrypted.
In the present embodiment, the information that the electronic equipment of acquisition exports is without encryption, and what such as obtain that Digital Television exports to be decoded the numerical information obtained by this digital television signal.
In embodiments of the present invention; the KSV sequence number stored due to each electronic equipment is different; therefore the encryption key that the KSV sequence number using electronic equipment to store generates also is different; thus ensure that the imprinting file obtained at each electronic equipment is also different; namely ensure that an electronic equipment can only play the file of this electronic equipment imprinting; avoid the dispute over copyright caused because of PVR file propagation; better protect electronic equipment manufacturer, add the international competitiveness of electronic equipment manufacturer.
Fig. 3 shows the structural drawing of the encryption device of the another kind of imprinting file that the embodiment of the present invention provides, and as one embodiment of the present invention, the ciphering unit 23 of the encryption device of imprinting file comprises:
Record information acquisition module 231, for obtaining the information that electronic equipment exports.
Record information encrypting module 232, the information of 4 bytes of n-th time exported for adopting front 4 bytes encryption of encryption key, the information of 4 bytes that (n+1) that adopt rear 4 bytes encryption of encryption key to export is secondary; Wherein, n is odd number, and n equals 1,3,5,7 ...
In the present embodiment, the information that the electronic equipment of acquisition exports is kept in the array of buffer, each buffer data account for 4 bytes (32), then record information encrypting module 232 is adopted to be encrypted every two buffer data, the xor operation that front 4 bytes (Key_1) of first buffer data and encryption key carry out mathematics is obtained the data of encrypting, rear 4 bytes (Key_2) of second buffer data and encryption key are carried out the data that xor operation obtains encrypting.
As a preferred embodiment, described I2C bus 21 also for:
The imprinting file generated is stored in exterior storage medium.
In the present embodiment, by I2C bus, the imprinting file after encryption is deposited (as USB flash disk or portable hard drive etc.) in exterior storage medium, thus this imprinting file can be preserved.
In embodiments of the present invention, obtain the KSV sequence number that electronic equipment stores, generate the encryption key being used for encryption burning file according to this KSV sequence number, by the information that the encryption keys electronic equipment generated exports, thus obtain the imprinting file after the encryption of this electronic equipment.The KSV sequence number stored due to each electronic equipment is different; therefore the encryption key that the KSV sequence number using electronic equipment to store generates also is different; thus ensure that the imprinting file obtained at each electronic equipment is also different; namely ensure that an electronic equipment can only play the file of this electronic equipment imprinting; avoid the dispute over copyright caused because of PVR file propagation; better protect electronic equipment manufacturer, add the international competitiveness of electronic equipment manufacturer.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. an encryption method for imprinting file, is characterized in that, described method comprises the steps:
The KSV sequence number of electronic equipment is obtained by twin wire universal serial bus I2C;
The encryption key being used for encryption burning file is generated according to the KSV sequence number obtained;
Obtain the information that electronic equipment exports, and adopt the information that described in the encryption keys of generation, electronic equipment exports, to obtain the imprinting file encrypted;
The step that the described KSV sequence number according to obtaining generates the encryption key being used for encryption burning file specifically comprises:
The KSV sequence number of 289 bytes is generated the encryption key being used for encryption burning file of 8 bytes;
Wherein, front 4 bytes of the described encryption key for encryption burning file equal the quadratic sum of the value of front 145 bytes of KSV sequence number; Rear 4 bytes of the described encryption key for encryption burning file equal the quadratic sum of the value of rear 144 bytes of KSV sequence number.
2. the method for claim 1, is characterized in that, described KSV sequence number prestores in the electronic device, the unique corresponding electronic equipment of each KSV sequence number.
3. the method for claim 1, is characterized in that, the information that described acquisition electronic equipment exports, and adopts the information that described in the encryption keys of generation, electronic equipment exports, and specifically comprises with the step obtaining the imprinting file encrypted:
Obtain the information that electronic equipment exports;
The information of 4 bytes of n-th time adopting front 4 bytes encryption of encryption key to export, the information of 4 bytes that (n+1) that adopt rear 4 bytes encryption of encryption key to export is secondary; Wherein, n is odd number.
4. the method as described in any one of claims 1 to 3, it is characterized in that, in the information that described acquisition electronic equipment exports, and adopt the information that described in the encryption keys of generation, electronic equipment exports, with obtain encrypt imprinting file step after, comprise the steps: further
By I2C bus, the imprinting file generated is stored in exterior storage medium.
5. an encryption device for imprinting file, is characterized in that, described encryption device comprises:
I2C bus, for obtaining the KSV sequence number of electronic equipment by twin wire universal serial bus I2C;
Encrypting key generating unit, for generating the encryption key being used for encryption burning file according to the KSV sequence number obtained;
Ciphering unit, for obtaining the information that electronic equipment exports, and adopts the information that described in the encryption keys of generation, electronic equipment exports, to obtain the imprinting file encrypted;
The step that described encrypting key generating unit generates encryption key is specially:
The KSV sequence number of 289 bytes is generated the encryption key being used for encryption burning file of 8 bytes;
Wherein, front 4 bytes of the described encryption key for encryption burning file equal the quadratic sum of the value of front 145 bytes of KSV sequence number; Rear 4 bytes of the described encryption key for encryption burning file equal the quadratic sum of the value of rear 144 bytes of KSV sequence number.
6. encryption device as claimed in claim 5, it is characterized in that, described KSV sequence number prestores in the electronic device, the unique corresponding electronic equipment of each KSV sequence number.
7. encryption device as claimed in claim 5, it is characterized in that, described ciphering unit comprises:
Record information acquisition module, for obtaining the information that electronic equipment exports;
Record information encrypting module, the information of 4 bytes of n-th time exported for adopting front 4 bytes encryption of encryption key, the information of 4 bytes that (n+1) that adopt rear 4 bytes encryption of encryption key to export is secondary; Wherein, n is odd number.
8. the encryption device as described in any one of claim 5 to 7, is characterized in that, described I2C bus also for:
The imprinting file generated is stored in exterior storage medium.
CN201210554558.5A 2012-12-19 2012-12-19 A kind of encryption method of imprinting file and device Active CN103065068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210554558.5A CN103065068B (en) 2012-12-19 2012-12-19 A kind of encryption method of imprinting file and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210554558.5A CN103065068B (en) 2012-12-19 2012-12-19 A kind of encryption method of imprinting file and device

Publications (2)

Publication Number Publication Date
CN103065068A CN103065068A (en) 2013-04-24
CN103065068B true CN103065068B (en) 2015-12-23

Family

ID=48107696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210554558.5A Active CN103065068B (en) 2012-12-19 2012-12-19 A kind of encryption method of imprinting file and device

Country Status (1)

Country Link
CN (1) CN103065068B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902324A (en) * 2015-06-26 2015-09-09 深圳市九洲电器有限公司 Method and system for protecting personal video recording file
CN111935435B (en) * 2020-07-28 2022-12-20 深圳市鼎盛光电有限公司 Video file encryption method and device, digital television equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064812A (en) * 2006-04-24 2007-10-31 深圳Tcl新技术有限公司 Method for reencrypting the cipher key of HDCP
CN101931784A (en) * 2010-07-30 2010-12-29 康佳集团股份有限公司 Method for encrypting and decrypting recorded program through HDCP key

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030063580A (en) * 2002-01-23 2003-07-31 주식회사 엘지이아이 Method for managing a secret code of key of pvr
US8019999B2 (en) * 2007-10-18 2011-09-13 Sony Corporation Wireless receiver device revocation management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064812A (en) * 2006-04-24 2007-10-31 深圳Tcl新技术有限公司 Method for reencrypting the cipher key of HDCP
CN101931784A (en) * 2010-07-30 2010-12-29 康佳集团股份有限公司 Method for encrypting and decrypting recorded program through HDCP key

Also Published As

Publication number Publication date
CN103065068A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
KR101735682B1 (en) Mechanism for partial encryption of data streams
JP3086887B2 (en) Information transmission method, information transmission method, information reproduction method, and communication device
KR101873230B1 (en) Mechanism for internal processing of content through partial authentication on secondary channel
US20120269340A1 (en) Hierarchical encryption/decryption device and method thereof
US7801308B1 (en) Secure key encoding for content protection
US20090202068A1 (en) Media security through hardware-resident proprietary key generation
US20050201726A1 (en) Remote playback of ingested media content
JP4999191B2 (en) Secure information storage system and method
JP2005051558A (en) Transmission device, reception device, and transmission/reception system
KR20050030877A (en) Packet based high definition high-bandwidth digital content protection
CN101765845A (en) System and method for digital content distribution
CN1867055A (en) Messaging interface for protected digital outputs
US7937595B1 (en) Integrated encryption/decryption functionality in a digital TV/PVR system-on-chip
CN101931784B (en) By the method for HDCP double secret key encrypting and decrypting recorded program
CN103136459B (en) A kind of copyright method and system of encrypted digital content
US20100014671A1 (en) Secure interchip transport interface
CN102014266A (en) Digital watermarking-based high-definition video encrypted transmitting method and system
US20060018465A1 (en) Information-processing system, information-processing apparatus, information-processing method, and program
CN103004219A (en) System and method to prevent manipulation of transmitted video data
JP2006523049A (en) Unique identifier for each chip for digital audio / video data encryption / decryption in personal video recorder
US6944296B1 (en) Video bit scrambling
CN104966525A (en) File encryption method and apparatus, and file decryption method and apparatus
KR100798927B1 (en) Data storing device protected from copy based on smart card, and method of storing and transmitting data thereof
CN102685592A (en) Streaming media player method supporting digital rights management
CN103065068B (en) A kind of encryption method of imprinting file and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant