CN112565891B - Secret key burning and secret key matching method based on different storage devices of smart television - Google Patents

Secret key burning and secret key matching method based on different storage devices of smart television Download PDF

Info

Publication number
CN112565891B
CN112565891B CN202011434723.4A CN202011434723A CN112565891B CN 112565891 B CN112565891 B CN 112565891B CN 202011434723 A CN202011434723 A CN 202011434723A CN 112565891 B CN112565891 B CN 112565891B
Authority
CN
China
Prior art keywords
key
file
burning
emmc
smart television
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
CN202011434723.4A
Other languages
Chinese (zh)
Other versions
CN112565891A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202011434723.4A priority Critical patent/CN112565891B/en
Publication of CN112565891A publication Critical patent/CN112565891A/en
Application granted granted Critical
Publication of CN112565891B publication Critical patent/CN112565891B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0894Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage

Abstract

The invention discloses a secret key burning and secret key matching method based on different storage devices of an intelligent television, which comprises the following steps: applying for a key, wherein the key comprises a first key and a second key; compiling a key configuration file, and describing a corresponding relation between a first key and a second key and a key change rule; and burning the first key into the EEPROM, and burning the television software mirror image embedded with the key configuration file, the second key and the key management program into the EMMC. The invention stores the key files into EEPROM and EMMC respectively, and presets the corresponding relation and change rule of the key files into EMMC, and realizes the matching of the key files and calls the corresponding key files to complete registration in the television system through the key management program, thereby solving the authority management problem of network application and the key storage problem of different storage devices; the manual detection steps are reduced.

Description

Secret key burning and secret key matching method based on different storage devices of smart television
Technical Field
The invention relates to the technical field of intelligent television parameter setting, in particular to a key burning and key matching method based on different storage devices of an intelligent television.
Background
The smart television basically carries mainstream network video playing application, and the current mainstream network video application presets a key file in the whole machine to control the playing permission of a video source. The key file has two main storage modes: an EMMC Flash (embedded memory) partition or an EEPROM (electrically erasable and programmable read only memory) device. In order to prevent important key files from being lost or damaged, an EEPROM storage mode is adopted in a partial area of the smart television, but due to the limited storage space of the EEPROM, a 64kb or 128kb device is generally used to reduce the cost. There are some application keys with multiple files, but different files have corresponding relations, and at the same time, some files exceed the capacity of EEPROM storage, and it is necessary to store such large key files in EMMC. Because the key files in the two storage positions have a corresponding relation, the matching problem of the key files read from different storage devices respectively needs to be solved, and if the key files of the EEMC and the EEPROM fail to correspond, the network video application cannot normally use the functions. If the key files in different storage devices are in a one-to-one or sequential correspondence, factory production may be matched according to quantity or programming order. But for key files that do not change regularly, this simple way cannot be handled. In order to solve the problem of matching of corresponding key files in two storage devices, the conventional method is mainly used for presetting the corresponding key files in a U disk by manually confirming the corresponding relation of the key files during the production of the whole machine, but because the change of the key files is irregular, the manual programming mode is easy to make mistakes, and the efficiency is low when large batches of key files are programmed.
Disclosure of Invention
The invention aims to provide a key burning and key matching method based on different storage devices of a smart television, which is used for solving the problems that the corresponding relation of a key file is easy to make mistakes and the burning efficiency is low when the corresponding relation of the key file is confirmed manually in the prior art.
The invention solves the problems through the following technical scheme:
the key burning and key matching method based on different storage devices of the smart television comprises the following steps:
step S1: applying for a key, wherein the key comprises a first key and a second key, and the first key and the second key respectively comprise at least one key file;
step S2: analyzing the file size of the key, and when the file size of the key is larger than the EEPROM storage space of the smart television, compiling a key configuration file, wherein the key configuration file is used for describing the corresponding relation between the first key and the second key and the key change rule;
step S3: and burning the first key into an EEPROM, burning a television software mirror image embedded with a key configuration file, a second key and a key management program into an EMMC of the smart television, wherein the key management program is used for reading, matching and verifying the key and registering the verified key into the smart television system.
By integrating a key file management program on the smart television, the key file management program reads and analyzes a preset key configuration file, and the key configuration file is used for describing the change rule and the matching rule of a key; and then reading the key file of the first key of the EEPROM memory device, finding out the corresponding key file stored by the EMMC according to the key change rule, matching and verifying the key file, and registering the matched key file into the smart television system to solve the authority management problem of network application. The method solves the corresponding matching problem of key files which do not have fixed regular change in different storage devices in the production of the intelligent television, and solves the problems that the corresponding relation of the key files is easy to make mistakes and the programming efficiency is low when the corresponding relation is confirmed manually in the prior art.
The key management program is used for executing the following method:
reading a first key from the EEPROM, analyzing a key file in the first key to obtain a key file sequence number (or a file name);
reading a key change rule of a key configuration file from the EMMC, and loading the key change rule;
finding a corresponding key file from the EMMC according to the key change rule and the key file serial number of the first key;
verifying the integrity and availability of the key;
and copying the first key (or the key file in the first key) and the corresponding key file in the EMMC to a designated position by the API interface for calling the key, calling a registration interface, matching the key files in the EEPROM and the EMMC, registering the key files in the EMMC to the smart television system, and removing the authority limit of application.
Further comprising step S4: the matching result of the key is checked through a factory menu, and the play function of the application is verified.
The key configuration file and the second key are written to the EMMC on the hardware motherboard along with the smart television program and the key management program (i.e., the television software image includes the key configuration file, the second key, the smart television program, and the key management program), and correspond to the key file of the first key written to the batch of EEPROMs. Therefore, in the corresponding production flow, only two steps of burning and writing the key file of the EEPROM and burning and writing the EMMC are needed, and the steps of burning and writing the key file during the production of the whole machine are reduced.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the invention stores the key files into EEPROM and EMMC respectively, and presets the corresponding relation and change rule of the key files into EMMC, and realizes the matching of the key files and calls the corresponding key files to complete registration in the television system through the key management program, thereby solving the authority management problem of network application and the key storage problem of different storage devices; the manual detection steps are reduced, and the production efficiency is improved.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples, but the embodiments of the present invention are not limited thereto.
1, implementation:
referring to fig. 1, a key burning and key matching method based on different storage devices of a smart television includes:
step S1: applying for a key, wherein the key comprises a first key and a second key, and the first key and the second key respectively comprise at least one key file;
step S2: analyzing the file size of the key, and when the file size of the key is larger than the EEPROM storage space of the smart television, compiling a key configuration file, wherein the key configuration file is used for describing the corresponding relation between the first key and the second key and the key change rule;
step S3: and burning the first key into an EEPROM, burning a television software mirror image embedded with a key configuration file, a second key and a key management program into an EMMC of the smart television, wherein the key management program is used for reading, matching and verifying the key and registering the verified key into the smart television system.
By integrating a key file management program on the smart television, the key file management program reads and analyzes a preset key configuration file, and the key configuration file is used for describing the change rule and the matching rule of a key; and then reading the key file of the first key of the EEPROM memory device, finding out the corresponding key file stored by the EMMC according to the key change rule, matching and verifying the key file, and registering the matched key file into the smart television system to solve the authority management problem of network application. The method solves the corresponding matching problem of key files which do not have regular change in different storage devices in the production of the intelligent television.
The key management program is used for executing the following method:
reading a first key from the EEPROM, analyzing a key file in the first key to obtain a key file sequence number (or a file name);
reading a key change rule of a key configuration file from the EMMC, and loading the key change rule;
finding a corresponding key file from the EMMC according to the key change rule and the key file serial number of the first key;
verifying the integrity and availability of the key;
and copying the first key (or the key file in the first key) and the corresponding key file in the EMMC to a designated position by the API interface for calling the key, calling a registration interface, matching the key files in the EEPROM and the EMMC, registering the key files in the EMMC to the smart television system, and removing the authority limit of application.
Further comprising step S4: the matching result of the key is checked through a factory menu, and the play function of the application is verified.
The Widevine KEY and Keymaster KEY files used by an application are exemplified:
firstly, applying for a Widevine KEY and a Keymaster KEY file;
analyzing the rule after application: the Widevine KEY is an independent KEY file, one file corresponds to one television device, and an independent serial number is stored in the television device, so that a programmer can be used for programming the EEPROM; however, two KEY files of Keymaster corresponding to the Widevine KEY are larger than the storage space of the EEPROM, and the change rules are that the serial number is 1000 to 2000 uses Keymaster1, and the serial number is 2000 to 4000 uses Keymaster 2;
compiling a Key configuration file, describing change rules of Keymaster1 and Keymaster2 and Widevine Key serial numbers corresponding to Keymaster1 and Keymaster 2;
then, programming the Widevine KEY to the EEPROM, and pasting the programmed Widevine KEY to a hardware mainboard of the smart television after programming is finished; the method comprises the steps that an EMMC of a hardware mainboard is programmed by using a software image containing a configuration file, a Keymaster key and a key management program, and after programming is successful, a factory starts the smart television for the first time;
after the smart television is started, running a KEY file management program, reading the Widevine KEY in the EEPROM, if the reading is successful, judging that the serial number is 1500, reading a configuration file, and judging that Keymaster2 is needed; copying the Widevine KEY and the Keymaster2 to a storage partition of the KEY file, and verifying the validity of the KEY file; calling an API (application programming interface) interface and a registration interface of the key after verification is finished, and registering the key file to the television system;
and finally, verifying the registration of the key file and the permission restriction removal condition of the application by checking the key matching and calling information of the menu and the playing function of the application during factory production.
Although the present invention has been described herein with reference to the illustrated embodiments thereof, which are intended to be preferred embodiments of the present invention, it is to be understood that the invention is not limited thereto, and that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the spirit and scope of the principles of this disclosure.

Claims (3)

1. A secret key burning and secret key matching method based on different storage devices of a smart television is characterized by comprising the following steps:
step S1: applying for a key, wherein the key comprises a first key and a second key, and the first key and the second key respectively comprise at least one key file;
step S2: analyzing the file size of the key, and when the file size of the key is larger than the EEPROM storage space of the smart television, compiling a key configuration file, wherein the key configuration file is used for describing the corresponding relation between the first key and the second key and the key change rule;
step S3: and burning the first key into an EEPROM, burning a television software mirror image embedded with a key configuration file, a second key and a key management program into an EMMC of the smart television, wherein the key management program is used for reading, matching and verifying the key and registering the verified key into the smart television system.
2. The method for key burning and key matching based on different storage devices of a smart television as claimed in claim 1, wherein the key management program is used for executing the following method:
reading a key file serial number of a first key from the EEPROM;
reading a key change rule of a key configuration file from the EMMC, and loading the key change rule;
finding a corresponding key file from the EMMC according to the key change rule and the key file serial number of the first key;
verifying the integrity and availability of the key;
and copying the first key and the corresponding key file to a designated position by the API interface for calling the key, calling a registration interface, matching the key files in the EEPROM and the EMMC, registering the key files in the EMMC and the smart television system, and removing the authority limit of application.
3. The method for key burning and key matching based on different storage devices of smart tv as claimed in claim 1 or 2, further comprising step S4: the matching result of the key is checked through a factory menu, and the play function of the application is verified.
CN202011434723.4A 2020-12-10 2020-12-10 Secret key burning and secret key matching method based on different storage devices of smart television Active CN112565891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011434723.4A CN112565891B (en) 2020-12-10 2020-12-10 Secret key burning and secret key matching method based on different storage devices of smart television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011434723.4A CN112565891B (en) 2020-12-10 2020-12-10 Secret key burning and secret key matching method based on different storage devices of smart television

Publications (2)

Publication Number Publication Date
CN112565891A CN112565891A (en) 2021-03-26
CN112565891B true CN112565891B (en) 2021-10-29

Family

ID=75060306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011434723.4A Active CN112565891B (en) 2020-12-10 2020-12-10 Secret key burning and secret key matching method based on different storage devices of smart television

Country Status (1)

Country Link
CN (1) CN112565891B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691884A (en) * 2021-08-11 2021-11-23 康佳集团股份有限公司 Television-based KEY burning processing method and device, intelligent terminal and medium
CN114237506B (en) * 2021-12-14 2023-05-02 四川长虹电器股份有限公司 Method for storing and reading/writing EMMC data

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936843B (en) * 2006-10-23 2011-02-16 北京飞天诚信科技有限公司 Smart key device of internal memory apparatus and using method
CN102075323A (en) * 2010-12-10 2011-05-25 惠州市德赛视听科技有限公司 Production management method of digital right management (DRM) key in blu-ray DVD player
CN104349192A (en) * 2014-10-24 2015-02-11 深圳创维-Rgb电子有限公司 Factory and user data automatic programming method and system for intelligent television
CN104598285A (en) * 2015-02-11 2015-05-06 北京京东方多媒体科技有限公司 Burning method and burning system
CN107888978B (en) * 2017-10-26 2020-08-28 深圳创维-Rgb电子有限公司 KEY code burning method and device and computer readable storage medium
CN107809677B (en) * 2017-11-07 2020-04-21 四川长虹电器股份有限公司 System and method for presetting Widevine keys in batches in television
CN108897556B (en) * 2018-07-16 2021-11-05 四川长虹网络科技有限责任公司 Set-top box production data writing method
CN110086613B (en) * 2019-04-28 2022-04-12 广州视源电子科技股份有限公司 Method and device for burning secret key, digital television board card and storage medium

Also Published As

Publication number Publication date
CN112565891A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US5712969A (en) Method for completely reprogramming an erasable, non-volatile memory
CN112565891B (en) Secret key burning and secret key matching method based on different storage devices of smart television
CN1115637C (en) Method and system for supplying custom soft ware image to computer system
US20100077135A1 (en) Memory wear leveling method, system and device
US20050060699A1 (en) Method and system for updating software
US20060248172A1 (en) Method for updating software of an electronic control device by flash programming via a serial interface and corresponding automatic state machine
CN103677862A (en) Upgrading method and device of EPLD program
KR20000023497A (en) Microcomputer provided with flash memory and method of storing program into flash memory
CN105637521A (en) Data processing method and intelligent terminal
CN106610786A (en) Data storage method
CN101615237A (en) Can verify embedded system and verification method thereof
CN108170456B (en) Firmware upgrading method and device for electronic equipment
US5263152A (en) Process for replacing non-volatile memory in electronic printing systems
CN100375029C (en) Memory disposition methods and systems
US7234036B1 (en) Method and apparatus for resolving physical blocks associated with a common logical block
US7207066B2 (en) Method for protecting a microcomputer system against manipulation of data stored in a storage arrangement of the microcomputer system
CN104298618A (en) Instruction processing method and device for intelligent terminal
US20190171366A1 (en) Cable modem and operating method thereof
CN115688120A (en) Secure chip firmware importing method, secure chip and computer readable storage medium
CN112632032B (en) Data migration method and device, storage medium and terminal equipment
CN103777982A (en) System updating method by root permission opening and mobile terminal using same
CN115729568A (en) Program burning protection method and device, burner and board card
CN112463042A (en) Data volume import data verification method, device, terminal and storage medium
KR101572854B1 (en) A PLC device with enhanced cyber security
US7287251B1 (en) Source engine for transferring a resource to local secure cache

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant