CN103458296B - Intelligent set top box safe key generates method - Google Patents

Intelligent set top box safe key generates method Download PDF

Info

Publication number
CN103458296B
CN103458296B CN201310406786.2A CN201310406786A CN103458296B CN 103458296 B CN103458296 B CN 103458296B CN 201310406786 A CN201310406786 A CN 201310406786A CN 103458296 B CN103458296 B CN 103458296B
Authority
CN
China
Prior art keywords
top box
set top
intelligent set
number sequence
random 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
CN201310406786.2A
Other languages
Chinese (zh)
Other versions
CN103458296A (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.)
Jiangsu Yinhe Electronics Co Ltd
Original Assignee
Jiangsu Yinhe 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 Jiangsu Yinhe Electronics Co Ltd filed Critical Jiangsu Yinhe Electronics Co Ltd
Priority to CN201310406786.2A priority Critical patent/CN103458296B/en
Publication of CN103458296A publication Critical patent/CN103458296A/en
Application granted granted Critical
Publication of CN103458296B publication Critical patent/CN103458296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a kind of intelligent set top box safe key and generate method, by the key generator stochastic generation random number sequence { R in Intelligent set top boxn};With { RnIt is that the clear data of double secret key Intelligent set top box carries out first order encryption, the ciphertext data of output Intelligent set top box;Re-use root key to random number sequence { RnCarry out second level encryption, export the random number sequence { R after encryptionn, as the key data of Intelligent set top box.Random number sequence { the R that the present invention generatesn, there is good random performance and spectral characteristic, it is possible to increase substantially the security performance of Intelligent set top box, it is ensured that accurately carrying out of Intelligent set top box charging, have a good application prospect.

Description

Intelligent set top box safe key generates method
Technical field
The present invention relates to encryption method technical field, be specifically related to a kind of Intelligent set top box safety close Key generates method.
Background technology
Along with deepening continuously of the broadcasting and TV integration of three networks, some value-added services need charge, in order to carry The security performance of high accounting module, the accounting module in Intelligent set top box all has hardware to encrypt, just Being to be solidificated in by key in the chip that chip manufacturer produces, this kind of cipher mode is fairly simple, very Easily crack, then, occur the key solidified in the chips in Intelligent set top box on the market Carrying out two grades of encryptions, cipher mode is software cryptography, at present, in existing Intelligent set top box Random number used by software cryptography, the general random function using computer to carry generates, we Knowing that random number is the important component part of security system, the performance of random number directly influences peace Quan Xing, but the random number that this mode generates becomes pseudo random number, random performance and spectral characteristic The most poor, security performance is not done, and easily deciphers, and causes the effect that key carries out two grades of encryptions Fruit is the best.
Summary of the invention
Solved by the invention technical problem is that overcomes existing random for key soft encryption Number, is the pseudo random number of the random function generation using computer to carry, random performance and frequency spectrum Characteristic is the most poor, and security performance is not done, and easily deciphers, and causes key carries out two grades of encryptions The problem of poor effect.
In order to solve above-mentioned technical problem, the technical solution adopted in the present invention is:
A kind of intelligent set top box safe key generates method, it is characterised in that: comprise the following steps,
Step (A), by the random number sequence of key generator stochastic generation in Intelligent set top box Row { Rn};
Step (B), with random number sequence { RnIt it is the clear data of double secret key Intelligent set top box Carry out first order encryption, the ciphertext data of output Intelligent set top box;
Step (C), uses root key to random number sequence { RnCarry out second level encryption, defeated Go out the random number sequence { R after encryptionn, as the key data of Intelligent set top box.
Aforesaid intelligent set top box safe key generates method, it is characterised in that: described key is raw Grow up to be a useful person stochastic generation random number sequence { RnGeneration method be,
Step (A1), if sequence vector { SnBe,
S n + 1 = [ ( S 13 n + S 14 n ) mod b , S 0 n , S 1 n , S 2 n ... S i - 1 n ]
Wherein,For sequence vector { SnI-th component, i in the range of 0≤i≤14, Initial vector S0For
S0=[65535,0,0,65535,0,65535,0,65535,0,0,0,0,0,0,0], Mod is modulo operation, b=65536;
Step (A2), if ordered series of numbers FnFor,
Wherein mod is modulo operation, b=65536;
Step (A3), if number sequence WnMeet formula (1),
Wherein a=40307, b=65536, W0With C0For initial random seeds number, meet 0 < W0< b and 0 < C0< a, mod are modulo operation, ● for downward rounding operation;
Step (A4), by ordered series of numbers FnAnd number sequence WnStep-by-step XOR, obtains random number sequence { Rn} For,
R n = W n ⊕ F n
Wherein n ∈ Z and n >=0, Z is integer field,For step-by-step XOR.
The invention has the beneficial effects as follows: the intelligent set top box safe key of the present invention generates method, By the key generator stochastic generation random number sequence { R in Intelligent set top boxn};To intelligence The clear data of Set Top Box carries out first order encryption, the ciphertext data of output Intelligent set top box, goes back Use root key to random number sequence { RnCarry out second level encryption, export after encryption Random number sequence { Rn, as the key data of Intelligent set top box, it is random that the present invention generates Number Sequence { Rn, there is good random performance and spectral characteristic, it is possible to increase substantially intelligence The security performance of energy Set Top Box, it is ensured that accurately carrying out of Intelligent set top box charging, has good Application prospect.
Accompanying drawing explanation
Fig. 1 is the flow chart of the intelligent set top box safe key generation method of the present invention.
Fig. 2 is the random number sequence { R of the present inventionnGenerate method flow chart.
Fig. 3 is the random number sequence { R that the present invention generatesnSpectral characteristic figure.
The random number sequence that the random function using computer to carry that Fig. 4 is traditional generates Spectral characteristic figure.Detailed description of the invention
Below in conjunction with Figure of description, the present invention is further illustrated.
As it is shown in figure 1, the intelligent set top box safe key of the present invention generates method, including
Step (A), by the random number sequence of key generator stochastic generation in Intelligent set top box Row { Rn};
Step (B), with random number sequence { RnIt it is the clear data of double secret key Intelligent set top box Carry out first order encryption, the ciphertext data of output Intelligent set top box;
Step (C), uses root key to random number sequence { RnCarry out second level encryption, defeated Go out the random number sequence { R after encryptionn, as the key data of Intelligent set top box.
Wherein, step (A), key generator stochastic generation random number sequence { RnGeneration Method is,
Step (A1), if sequence vector { SnBe,
S n + 1 = [ ( S 13 n + S 14 n ) mod b , S 0 n , S 1 n , S 2 n ... S i - 1 n ]
Wherein,For sequence vector { SnI-th component, i in the range of 0≤i≤14, Initial vector S0For
S0=[65535,0,0,65535,0,65535,0,65535,0,0,0,0,0,0,0], Mod is modulo operation, b=65536;
Step (A2), if ordered series of numbers FnFor,
Wherein mod is modulo operation, b=65536;
Step (A3), if number sequence WnMeet formula (1),
Wherein a=40307, b=65536, W0With C0For initial random seeds number, meet 0 < W0< b and 0 < C0< a, mod are modulo operation, ● for downward rounding operation;
Step (A4), by ordered series of numbers FnAnd number sequence WnStep-by-step XOR, obtains random number sequence { Rn} For,
R n = W n ⊕ F n
Wherein n ∈ Z and n >=0, Z is integer field,For step-by-step XOR.
Fig. 3 is the random number sequence { R generated by said methodnSpectral characteristic, Fig. 4 For the spectral characteristic of the random number sequence that traditional random function using computer to carry generates, The comparison that random performance and spectral characteristic are compared, it is apparent that Fig. 3 has more smooth frequency Spectral property.
Due to the random number sequence { R generated by said methodn, there is good randomness Energy and spectral characteristic, it is possible to increase substantially the security performance of Intelligent set top box, utilize generation Random number sequence { RnThe clear data of Intelligent set top box is carried out first order encryption, use intelligence Can Set Top Box root key to { RnCarry out second level encryption, to the ciphertext of Intelligent set top box, Key is encrypted respectively, improves the security performance of Intelligent set top box further, effectively prevents accident Deciphering, it is ensured that accurately carrying out of Intelligent set top box charging.
The ultimate principle of the present invention, principal character and advantage have more than been shown and described.The industry Skilled person will appreciate that, the present invention is not restricted to the described embodiments, above-described embodiment and The principle that the present invention is simply described described in description, without departing from spirit and scope of the invention On the premise of, the present invention also has various changes and modifications, and these changes and improvements both fall within to be wanted In seeking the scope of the invention of protection.Claimed scope by appending claims and Its equivalent defines.

Claims (1)

1. an intelligent set top box safe key generates method, it is characterised in that: include following Step,
Step (A), generates random number sequence { R by the key generator in Intelligent set top boxn};
Step (B), with random number sequence { RnIt it is the clear data of double secret key Intelligent set top box Carry out first order encryption, the ciphertext data of output Intelligent set top box;
Step (C), uses root key to random number sequence { RnCarry out second level encryption, defeated Go out the random number sequence { R after encryptionn, as the key data of Intelligent set top box,
Described key generator stochastic generation random number sequence { RnGeneration method be,
Step (A1), if sequence vector { SnBe,
S n + 1 = [ ( S 13 n + S 14 n ) mod b , S 0 n , S 1 n , S 2 n ... S i - 1 n ]
Wherein,For sequence vector { SnI-th component, i in the range of 0≤i≤14, Initial vector S0For
S0=[65535,0,0,65535,0,65535,0,65535,0,0,0,0,0,0,0],
Mod is modulo operation, b=65536;
Step (A2), if ordered series of numbers FnFor,
Wherein mod is modulo operation, b=65536;
Step (A3), if number sequence WnMeet formula (1),
Wherein a=40307, b=65536, W0With C0For initial random seeds number, meet 0 < W0< b and 0 < C0< a, mod are modulo operation, ● for downward rounding operation;
Step (A4), by ordered series of numbers FnAnd number sequence WnStep-by-step XOR, obtains random number sequence { Rn} For,
R n = W n ⊕ F n
Wherein n ∈ Z and n >=0, Z is integer field,For step-by-step XOR.
CN201310406786.2A 2013-09-10 2013-09-10 Intelligent set top box safe key generates method Active CN103458296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310406786.2A CN103458296B (en) 2013-09-10 2013-09-10 Intelligent set top box safe key generates method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310406786.2A CN103458296B (en) 2013-09-10 2013-09-10 Intelligent set top box safe key generates method

Publications (2)

Publication Number Publication Date
CN103458296A CN103458296A (en) 2013-12-18
CN103458296B true CN103458296B (en) 2016-08-10

Family

ID=49740184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310406786.2A Active CN103458296B (en) 2013-09-10 2013-09-10 Intelligent set top box safe key generates method

Country Status (1)

Country Link
CN (1) CN103458296B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820106A (en) * 2017-11-01 2018-03-20 深圳智英电子有限公司 Monitoring house security management top box of digital machine and control method based on internet
CN109150923A (en) * 2018-11-06 2019-01-04 江苏怡通数码科技有限公司 Transmitted data on network security processing based on Hybrid Encryption
CN109510703B (en) * 2018-11-23 2020-02-11 北京海泰方圆科技股份有限公司 Data encryption and decryption method and device
CN110519038B (en) * 2019-07-29 2022-10-21 北京多思安全芯片科技有限公司 Homomorphic processing device and system for data
CN111314061B (en) * 2019-10-29 2023-03-31 苏州科达科技股份有限公司 Random number generation method and system
CN113645295B (en) * 2021-08-09 2023-04-07 东南大学 Block chain network security setting method based on Paxos algorithm

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282456A (en) * 2008-04-11 2008-10-08 青岛海信电器股份有限公司 Method and apparatus for receiving digital television condition

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282456A (en) * 2008-04-11 2008-10-08 青岛海信电器股份有限公司 Method and apparatus for receiving digital television condition

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种面向广电运营商的Android软件认证系统;闫茂昌等;《电视技术》;20130517;第37卷(第10期);第2页第2.2节 *

Also Published As

Publication number Publication date
CN103458296A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN103458296B (en) Intelligent set top box safe key generates method
CN103259643B (en) Matrix fully homomorphic encryption method
CN102594548B (en) Method capable of achieving data sectional encryption and decryption
CN113691380B (en) Multidimensional private data aggregation method in smart power grid
CN112202568B (en) Software and hardware collaborative design SM9 digital signature communication method and system
CN208539929U (en) A kind of cloud platform client data encrypting and deciphering system based on national secret algorithm
CN104917617B (en) A kind of encryption group ranking obscures method
CN102012993A (en) Methods and devices for selectively encrypting and decrypting data
CN104993928A (en) Unmanned plane safe communication link encryption method based on real-time embedded control system
CN102769620A (en) Safely outsourced attribute-based encryption method
CN106533656B (en) A kind of key multilayer mixing method for encryption/decryption based on WSN
CN106100819B (en) Image encrypting and decrypting system and image encrypting and decrypting method
CN102523093A (en) Encapsulation method and encapsulation system for certificate-based key with label
CN103916248A (en) Fully homomorphic encryption public key space compression method
CN105635135A (en) Encryption system based on attribute sets and relational predicates and access control method
CN113312608B (en) Electric power metering terminal identity authentication method and system based on time stamp
CN103746803A (en) Multi-sequence joint spectrum-spreading secret communication method based on weighted fractional Fourier transform
CN106878322A (en) A kind of encryption and decryption method of the fixed length ciphertext based on attribute and key
CN107864033A (en) A kind of symmetrical full homomorphic cryptography method of bootstrap type
CN104836657A (en) Identity anonymity-based broadcast encryption method having efficient decryption characteristic
CN110247752A (en) LoRa chaotic communication system and its implementation based on elliptic curve cryptography
CN101826959B (en) Byte-oriented key stream generation method and encryption method
CN107026873B (en) A kind of encryption and decryption method and system based on elliptic curve
CN102404120A (en) Encryption method and encryption system for electronic documents
CN107306180A (en) Ciphering and deciphering device and its power analysis defence method

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190813

Address after: Suzhou City, Jiangsu province 215611 Zhangjiagang City Tangqiao town Ring Road No. 188

Patentee after: JIANGSU YINHE DIGITAL TECHNOLOGY CO.,LTD.

Address before: Suzhou City, Jiangsu province 215611 Zhangjiagang City Tangqiao town Ring Road No. 188

Patentee before: JIANGSU YINHE ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240530

Address after: No. 188, South Ring Road, Tangqiao Town, Zhangjiagang City, Suzhou City, Jiangsu Province, 215611

Patentee after: JIANGSU YINHE ELECTRONICS Co.,Ltd.

Country or region after: China

Address before: No. 188, South Ring Road, Tangqiao Town, Zhangjiagang City, Suzhou City, Jiangsu Province, 215611

Patentee before: JIANGSU YINHE DIGITAL TECHNOLOGY CO.,LTD.

Country or region before: China