Source: https://patents.google.com/patent/CN101554004A/en
Timestamp: 2018-06-24 12:39:43
Document Index: 178815230

Matched Legal Cases: ['art 1100', 'art 1180', 'art 1160', 'art 1160', 'art 1280', 'art 1260']

CN101554004A - Methods and apparatus for content scrambling in a communications system - Google Patents
Methods and apparatus for content scrambling in a communications system Download PDF
CN101554004A
CN101554004A CN 200780039891 CN200780039891A CN101554004A CN 101554004 A CN101554004 A CN 101554004A CN 200780039891 CN200780039891 CN 200780039891 CN 200780039891 A CN200780039891 A CN 200780039891A CN 101554004 A CN101554004 A CN 101554004A
CN 200780039891
张木想
维里逊服务机构有限公司
Methods and apparatus for improved scrambling and/or descrambling of packets in a communications network are described, e.g., improved scrambling/descrambling of MPEG-2 transport stream packets over an Internet Protocol network. Advance Encryption Standard (AES) under cipher block chaining is utilized in scrambling some transport stream packets. Methods and apparatus for computing an initialization vector or vectors used by the AES are also described. The initialization vector can be set to either a constant or a programmable random number. Scrambling methods and apparatus directed to scrambling solitary termination blocks with a reduced size packet payload e.g., less than 128 bits in an MPEG-2 transport stream packet, are also described. Various features are useful for and can be implemented in set-top boxes and IPTV scramblers in the headsets.
用于通信系统中的内容加扰的方法和装置 SUMMARY A method for a communication system, and scrambling means
为了保护视频/音频内容被未授权的消费，通常在递送过程中或者在记录过程中使用加密技术对视频/音频内容加扰。 In order to protect audio / video content from unauthorized consumption, or the use of encryption techniques typically video / audio content scrambling during recording during delivery. 数字视频广播(DVB)标准已规定了对以MPEG-2形式编码的视频/音频传输流分组进行加扰的通用加扰算法（CSA) 。 Digital Video Broadcasting (DVB) standard has specified the Common Scrambling Algorithm (CSA) in the form of MPEG-2 for video encoding / audio transport stream packet scrambling. DVB通用加扰算法是一种专利算法并且该算法的细节仍未公开。 DVB common scrambling algorithm is a proprietary algorithm and the algorithm is not disclosed in detail. 然而，在通信业界中长期以来认为DVB 通用加扰算法不强大并且应由更强大的基于现代密码技术的加密算法替换。 However, in the communications industry has long been considered the DVB Common Scrambling Algorithm powerful and should not stronger encryption algorithm based on the substitution of modern cryptography.
美国电缆电信工程师协会（SCTE)已标准化了一种用于在密码块链接（CBC)模式下使用数据加密标准（DES)对MPEG-2传输流分组加扰的被称为SCTE-52的方法。 American Society of Cable Telecommunications Engineers (the SCTE) has standardized a method for using the Data Encryption Standard (DES) packets scrambled MPEG-2 transport stream is referred to SCTE-52 in the Cipher Block Chaining (CBC) mode. 然而，SCTE加扰标准未规定如何生成初始化向量（IV)，该初始化向量（IV)是在密码块链接模式下由DES加密使用的参数。 However, SCTE standard does not specify how the scrambling generate an initialization vector (IV), the initialization vector (IV) is in the Cipher Block Chaining mode of DES encryption parameters used. 而且，由于在近二十年中许多严格的密码分析学，该DES加密算法不再是强大的算法。 Moreover, since in the last two decades a number of strict cryptanalysis, the DES encryption algorithm is no longer the powerful algorithms. 出于此原因，由高级电视系统委员会（ATSC)开发的通用加扰标准使用具有168比特密钥的密码增强三倍的DES (cryptographically stronger triple隱DES， TDES)替换DES。 For this reason, by the Advanced Television Systems Committee (ATSC) standard developed by common scrambling using a 168-bit key cryptographic enhanced triple DES (cryptographically stronger triple hidden DES, TDES) to replace DES. ATSC通用加扰标准还要求密码块链接模式下的三倍DES的初始化向量均为零。 Common Scrambling ATSC standard also requires an initialization vector is zero in the triple-DES cipher block chaining mode. 然而，DES算法和三倍DES算法在安全强度和实现效率方面均劣于高级加密标准（AES)。 However, DES and triple DES algorithm algorithm in terms of security strength and efficiency are inferior to implement the Advanced Encryption Standard (AES). 鉴于上文，有利的是，开发利用AES用于对互联网协议（IP)网络上的视频/音频传输流分组加扰的方法和装置。 In view of the above, it is advantageous to develop a method and apparatus for AES using the Internet Protocol (IP) video on a network / audio transport stream packet is scrambled.
图1包括用于说明根据多种实施例的对例如MPEG-2传输流分组加扰的示图。 1 includes a diagram of MPEG-2 transport stream packet is scrambled in accordance with various embodiments e.g. for explaining an embodiment. 图2是说明根据多种实施例的示例性加扰相关操作的示图，其中被称为残余块的分组载荷的最后部分的宽度具有縮小的尺寸。 FIG 2 is a diagram explaining various exemplary scrambling operations related embodiment, wherein the width of the packet payload is referred to the last portion of the residual block having a reduced size.
图3是说明根据多种实施例的用于生成初始化向量（IV)的示例性方法的示图。 FIG 3 is a diagram of an exemplary embodiment of a method for generating a plurality of initialization vector (IV) of FIG.
图4包括用于说明根据多种实施例的对例如加扰的MPEG-2传输流分组解扰的示图。 FIG 4 includes a diagram of a packet descrambling according to various embodiments, for example, MPEG-2 transport stream for explaining scrambling.
图5是说明根据多种实施例执行的示例性解扰相关操作的示图， 其中还被称为加扰残余块的最后密文部分的宽度具有縮小的尺寸。 FIG 5 is a diagram illustrating a descrambling according to various exemplary embodiments of the embodiment performs the relevant operations, which is also referred to the width of the final portion of the scrambled cipher text residual block having a reduced size.
图6是说明根据多种实施例的用于对单端块加扰的示例性方法的示图。 FIG 6 is a diagram of an exemplary method for single end block scrambling of the various embodiments described.
图7是说明根据图6执行的示例性操作的示图。 FIG 7 is a diagram illustrating an exemplary operation performed in accordance with FIG. 图8是说明根据多种实施例的用于对单端块解扰的示例性方法的示图。 FIG 8 is a diagram of various exemplary method for single end block descrambled according to an embodiment will be described.
图9是说明根据图8执行的示例性操作的示图。 FIG 9 is a diagram explaining an exemplary operation performed in FIG. 8. 图IO是示例性通信系统的示图。 FIG IO is a diagram of an exemplary communication system.
图11包括图IIA、图IIB、图11C和图11D的组合，是根据多种实施例的操作通信设备的示例性方法的流程图的示图，所述方法包括加扰。 11 includes FIG IIA, FIG IIB, a combination of 11C and 11D, is a flow chart illustrating an exemplary method of operating a communications device embodiment of various embodiments, the method includes scrambling.
图12包括图12A、图12B、图12C和图12D的组合，是根据多种实施例的操作通信设备的示例性方法的流程图1200的示图，所述方法包括解扰。 FIG 12 including 12A, the 12B, the combination of FIGS. 12C and 12D, is a flow chart illustrating an exemplary method 1200 of operating a communications device of the various embodiments, the method comprising descrambling.
多种实施例涉及用于对传输流分组加扰的方法和装置，例如互联网协议（IP)网络上的MPEG-2传输流分组，。 Various embodiments relate to a method and apparatus for scrambling the transport stream packets, such as Internet Protocol (IP) MPEG-2 transport stream packets on the network. 根据多种实施例，密码块链接（CBC)下的高级加密标准（AES)用于对传输流分组，例如MPEG-2传输流分组加扰。 According to various embodiments, in the Advanced Encryption Standard Cipher Block Chaining (CBC) (AES) for the transport stream packets, such as MPEG-2 transport stream packet is scrambled. 示例性方法包括计算由AES密码块链接模式使用的初始化向量（IV)。 An exemplary method comprises computing the initialization vector (IV) for use by the AES cipher block chaining mode. 在某些实施例中，该初始化向量可被设定为常数或者可编程的随机数。 In certain embodiments, the initialization vector can be set to a constant or a programmable random number. 某些实施例涉及一种用于对传输流分组中的残余块，例如MPEG-2传输流分组中的小于128比特（16字节）的残余块加扰的方法。 Certain embodiments relate to a method for the transport stream packets residual block, for example less than 128-bit MPEG-2 transport stream packet (16 bytes) of the residual block scrambled. 某些实施例还涉及一种用于对传输流分组中的 Certain embodiments also relate to a method for the transport stream packet
单端块，例如MPEG-2传输流分组中的小于128比特（16字节）的单端块加扰的方法。 The method of single end block scrambling single end block, for example less than MPEG-2 transport stream packet of 128 bits (16 bytes).
将描述根据实施例的对MPEG-2传输流分组的示例性加扰。 Exemplary scrambled MPEG-2 transport stream packet according to an embodiment will be described. 示例性加扰方法使用密码块链接模式下的AES对MPEG-2传输流分组加扰。 An exemplary scrambling method using AES in cipher block chaining mode of the MPEG-2 transport stream packet is scrambled. 每个MPEG-2传输流分组具有188字节的固定长度。 Each MPEG-2 transport stream packets having a fixed length of 188 bytes. MPEG-2传输流分组包括4字节的报头、可变长度的可选适配字段、和至少1字节的载荷。 MPEG-2 transport stream packet includes a 4 byte header, an optional variable length adaptation field, at least 1 byte of the payload. 在该示例性实施例中，传输流分组的载荷被加扰，而报头和可选适配字段未被加扰。 In the exemplary embodiment, the transport stream packet payload to be scrambled, and the adaptation field header and optionally not scrambled.
图1包括用于说明MPEG-2传输流分组102的加扰的示图100。 DESCRIPTION OF FIG. 1 includes a MPEG-2 transport stream is scrambled packet 102 shown in FIG 100. 输入MPEG-2传输流分组102包括报头和适配字段（HAF)部分104 以及载荷部分106。 Input MPEG-2 transport stream packet includes a header 102 and adaptation field (HAF) section 104 and a load portion 106. 在图1中，Ek框（134、 136、 138、 ...、 140、 142) 表示在加扰密钥K 110的控制下使用AES加密算法的模块。 In, FIG. 1 Ek block (134, 136, 138, ..., 140, 142) represent the module using the AES encryption algorithm under the control of the scramble key K 110. 在某些实施例中，例如，利用输入随时间切换，使用单个Ek模块对应于模块（134、 136、 138、 ...、 140、 142)。 In certain embodiments, for example, by using the input switching time, corresponding to a single module Ek module (134, 136, 138, ..., 140, 142). 框IV 108表示在加扰方法中使用的初始化向量。 Block represents the initialization vector IV 108 is used in the scrambling process. 还存在对应于载荷106的部分的按位异或运算模块（124、 There is also the load corresponding to the portion 106 of the bitwise exclusive-or operation module (124,
126..... 128、 130、 132)。 126 ..... 128, 130, 132). 在某些实施例中，例如，利用输入随时 In certain embodiments, for example, with the input at any time
间切换，单个异或模块对应于模块（124、 126、 128、 130、 132)。 Switch between individual modules corresponding to the XOR module (124, 126, 128, 130, 132). 加扰密钥K 110和初始化向量IV 108均为16字节或128比特宽。 Scrambling key K 110 and the initialization vector IV 108 is 16 bytes or 128 bits wide. 为了对MPEG-2传输流分组加扰，载荷被分为16字节块，最后的块，即残余块可以具有小于16字节的长度。 In order for the MPEG-2 transport stream packet is scrambled, the load is divided into 16-byte blocks, the last block, i.e. residual block may have a length less than 16 bytes. 因此载荷102被分为块（P! 116、 P2 118、 ...、 120)，每个块均是16字节块，并且块Pm 122是16或更少字节的残余块。 Thus the load is divided into 102 blocks (P! 116, P2 118, ..., 120), each block is a 16 byte blocks, and the block Pm 122 is 16 bytes or less residual block. 如果最后的块Pm是16字节，则模块154用于加扰；然而如果Pm小于16字节，则模块156用于加扰。 If the last 16 bytes of the block is Pm, then for scrambling module 154; however, if Pm is less than 16 bytes, the module 156 for scrambling.
模块124使第一载荷块Pi 116与IV 108按位异或，并且Ek模块134对该结果加密以产生第一密文块d 144。 Module 124 of the first load block Pi 116 and IV 108 bitwise exclusive OR, and Ek the result of a cryptographic module 134 to produce a first ciphertext block d 144. 接下来，模块126使第二载荷块P2 118与第一密文块d 144异或，并且Ek模块136对该结果加密以产生第二密文块C2 146。 Next, block 126 loads the second block P2 118 and ciphertext block d 144 a first exclusive OR, and Ek the result of a cryptographic module 136 to produce a second ciphertext block C2 146. 该运算继续直至生成第（ml)个密文块Cm.! 150，其中第（ml)个载荷块Pw 120与第（m-2)个密文块Cm.2 148异或，并且Ek模块138对该结果加密以产生第（ml)个密文块Cm.! 150。 This operation continues until the first generation (ml) th ciphertext block Cm.! 150, wherein the first (ml) th and the second load blocks Pw 120 (m-2) th ciphertext block XOR Cm.2 148, module 138 and Ek the results of the encrypted to produce (ml) th ciphertext block Cm.! 150.
如果最后的载荷块Pm 122的长度具有等于16字节的长度，则通 If the length of the last length of the load block Pm 122 is equal to 16 bytes, then through
过与Q^相同的方式生成最后的密文块Qn 152，即C^Ek (Pm与Cm.！ Q ^ through the same manner as the last ciphertext block generated Qn 152, i.e., C ^ Ek (Pm and Cm.!
异或）。 XOR). 换言之，模块130使第m个载荷块Pm 122与第（ml)个密文块Cm.! 150异或，并且Ek模块140对该结果加密以产生第m个密文块CJ52。 In other words, so that the m-th module 130 Pm 122 and the second load blocks (ml) th ciphertext block Cm.! 150 exclusive OR, and Ek module 140 to produce the result of the m-th encrypted ciphertext block CJ52.
如果最后的载荷块Pm 122具有小于16字节的由t表示的长度，则模块133使输入常数H (例如，H=0或者11=十六进制格式的7884fe536c3588b73c2f604e4813fbel)与密文块Cm.!异或并且在加扰K 的控制下模块142通过Ek对于该异或的结果加密。 If the last block load Pm 122 has a length represented by t is less than 16 bytes, the input module 133 constant H (e.g., H = 0 or 7884fe536c3588b73c2f604e4813fbel 11 = hexadecimal format) and the ciphertext block Cm.! exclusive or module 142 and the result is encrypted by the exclusive oR Ek for under control of K scrambling. 模块132通过使Pm 122与加密Ek (Q^出H)的t个最低有效比特按位异或，生成密文块Cm 152。 Module 132 (the H Q ^) Pm 122 encrypted by Ek the t least significant bits of bitwise XOR to generate ciphertext block Cm 152. 输入常数H可以是例如基于某个输入的预定的数或组。 H input constant may be based, for example, a predetermined number or group of input.
分组生成模块151利用未加扰的报头和适配字段104的复本重组表示加扰载荷114的生成的密文块（Q 144、 C2 146、 ...、 Cm.2 148、 Packet generation module 151 using a non-interference plus header 104 and adaptation field recombinant replica representation generated scrambled payload ciphertext block 114 (Q 144, C2 146, ..., Cm.2 148,
150、 Cm 152)以形成加扰的MPEG-2传输流分组112，在发射、 解码和/或其他处理之前，该加扰的MPEG-2传输流分组112可以存储在例如存储器中。 150, Cm 152) to form an MPEG-2 transport stream packet is scrambled 112, prior to transmission, decoding, and / or other processing, the MPEG-2 transport stream scrambled packet 112 may be stored in a memory.
图2是说明例如由模块156执行的示例性操作的示图200，其中最后的载荷部分Pm 122的宽度"）具有例如小于128比特的縮小的尺寸。加密模块142的输出是Ek (Cm.^H) 202，其包括最高有效部分204和最低有效部分206。模块132使载荷部分122与最低有效部分206 按位异或，生成加扰的载荷部分Cm (t个比特宽）152。图3是说明根据多种实施例的用于生成初始化向量（IV)的示例 FIG 2 is an explanatory e.g. diagram of an exemplary operation performed by the module 156 200 where the final load portion Pm 122 of width ") has a size, for example, reduced less than 128 bits output encryption module 142 is Ek (Cm. ^ H) 202, which includes a most significant portion 204 and least significant portion 206. the loading portion 132 causes module 122 to a least significant portion bitwise XOR 206 generates the scrambled payload portion Cm (t bits wide) 152. FIG. 3 is described exemplary embodiment for generating an initialization vector (IV) in accordance with various
性方法的示图300。 Exemplary method 300 shown in FIG. IV 108可被设定为常数或者可编程的随机数。 IV 108 may be set to a constant or a programmable random number. 在图3中，初始化向量标志（/IV) 312是控制IV生成的一个比特的标志并且可以在MPEG-2传输或程序流中接收。 In Figure 3, the initialization vector flag (/ IV) 312 IV control flag is generated by one bit and may be received in the MPEG-2 transport or program stream. 该标志可以例如基于分组或程序，随时间改变值。 The flag may be a packet-based or program, for example, changing the value over time. 初始化向量标志312被输入到控制开关312的开关控制模块314。 Flag initialization vector 312 is input to the control switch 312 of the switch control module 314. 当/IV 312等于0时，IV 108被设定为输入常数304， 例如0。 When / IV 312 is equal to 0, IV 108 is set to a constant input 304, for example, 0. 当/IV 312等于1时，模块306的AES加密算法Ek首先在加扰密钥K110的控制下，对输入常数302，例如O加密。 When 1 / IV 312 equal, the AES encryption algorithm module first Ek 306 under the control of the scramble key K110, a constant input 302, such as O encryption. 然后，模块308 的AES加密算法Ek在新的密钥Ek (常数302)，例如Ek (0)的控制下对输入常数302，例如O加密，并且将生成的密文指配给IV108。 Then, the AES encryption algorithm Ek 308 modules in the new key Ek (constant 302), for example under the control of Ek (0) for a constant input 302, such as O encrypted, and the generated ciphertext assigned IV108. 可以针对每个程序或者针对程序中的每个MPEG-2传输流分组设定标志位IV。 For each program, or may be for each MPEG-2 transport stream packets in a program flag bit is set IV. 该标志位可以通过信令消息，例如授权控制消息（ECM)或授权管理消息（EMM)递送到接收设备中的解扰器，或者可以在接收设备的引导过程中被配置为缺省值（例如，/IV=0)。 The flag can be a signaling message, such as entitlement control message (ECM) or Entitlement Management Message (EMM) is delivered to the descrambler in the receiving apparatus, or may be arranged in the boot process of the receiving device to a default value (e.g. , / IV = 0). 在某些实施例中， 输入常数302与输入常数304相同。 In certain embodiments, the constant inputs 302 and 304 the same constant input. 在某些实施例中，输入常数302 可以并且有时不同于输入常数304。 In certain embodiments, the constant inputs 302 may, and sometimes different from the input constant 304. 应认识到，加密模块308的输出可以被认为具有第一值，输入常数304具有第二值并且输入常数302具有第三值。 It should be appreciated that the output of the encryption module 308 may be considered to have a first value, a second input 304 has a constant value and the input 302 has a third constant value. 输入常数302、 304可以是例如基于某个输入的预定的值或组。 Constant input 302, 304 may be, for example, based on a predetermined value or an input of the group. 这些值302、 304可以是相同的或不同的。 These values ​​302, 304 may be the same or different.
图4包括用于说明加扰的MPEG-2传输流分组412的解扰的示图400。 4 includes MPEG-2 transport stream for descrambling said scrambled Minga packet 412 shown in FIG 400. 输入的加扰MPEG-2传输流分组412包括报头和适配字段（HAF) 部分404和加扰载荷部分414。 Scrambled MPEG-2 transport stream input packet includes a header 412 and adaptation field (HAF) payload portion 404 and the scramble portion 414. 在图4中，Dk框（434、 436、 ...、 438、 440)表示在加扰密钥K 410的控制下使用AES解密算法的模块。 In FIG. 4, Dk frame (434, 436, ..., 438, 440) represent the module using the AES decryption algorithm under the control of the scramble key K 410. 在某些实施例中，例如，利用输入随时间切换，单个Dk模块对应于模块（434、 436、 438、 440) 。 In certain embodiments, for example, by using the input switching time, corresponding to a single module Dk module (434, 436, 438, 440). Ek框442表示在加扰密钥K 410的控制下使用AES 加密算法的模块。 Ek block 442 indicates the AES encryption algorithm using the module under the control of the scramble key K 410. 框IV 408表示在解扰方法中使用的初始化向量。 Block represents the initialization vector IV 408 is used in descrambling process. 还 also
存在对应于加扰载荷414的部分的按位异或运算模块（424、 426..... Corresponding to the presence of the scrambled payload section 414 of the bitwise exclusive-or operation module (424, 426 .....
428、 430、 432)。 428, 430, 432). 在某些实施例中，例如，利用输入随时间切换，使用单个异或模块对应于模块（424、 426、 428、 430、 432)。 In certain embodiments, for example, by using an input switching over time, using a single XOR module corresponds to a module (424, 426, 428, 430, 432). 加扰密钥K410和初始化向量IV408均为16字节或128比特宽。 K410 scrambling key and initialization vector IV408 are 16 bytes or 128 bits wide. 为了对MPEG-2 传输流分组解扰，载荷被分为16字节块，最后的块可以具有小于16 字节的长度。 In order for the MPEG-2 transport stream descrambled packet, the load is divided into 16-byte blocks, the last block may have a length less than 16 bytes. 因此载荷414被分为块（C!444、 C2 446、…、Cm.! 450)， 每个块均是16字节密文块，并且残余块Cm 452是16或更少字节的密文块。 Thus the load 414 is divided into blocks (C! 444, C2 446, ..., Cm.! 450), each block is a 16-byte ciphertext block, and a residual block 16 Cm 452 or fewer bytes of ciphertext Piece. 如果最后的块Cm是16字节，则模块454用于解扰；然而如果Cm小于16字节，则模块456用于解扰。 Cm If the last block is 16 bytes, the module 454 for descrambling; however, if Cm is less than 16 bytes, the module 456 for descrambling.
Dk模块434对第一密文块C！ Dk module 434 first ciphertext block C! 444解密，并且模块424使该解密的结果与iv 408按位异或以产生第一明文块P！ 444 decrypted and the decryption module 424 so that the result of the bitwise exclusive-or iv 408 to generate a first plaintext block P! 416。 416. 接下来，Dk模块436 对第二密文块C2 446解密，并且模块426使该解密的结果与Q 444按位异或以产生第二明文块P2418。 Subsequently, module 436 Dk second decrypting ciphertext block C2 446, and module 426 so that the decrypted result bitwise XOR Q 444 to produce a second plaintext block P2418. 该运算继续直至生成第（ml)个明文块P^ 420，其中第（ml)个密文块C^ 450由模块Dk 438解密， 并且模块428使该解密的结果与Cm.2 448按位异或以产生第（ml)个 This operation continues until the first generation (ml) plaintext blocks P ^ 420, where the first (ml) th ciphertext block C ^ 450 Dk 438 by the decryption module and the decryption module 428 so that the result of the bitwise exclusive Cm.2 448 or to produce a section (ml) a
明文块Pm.i 420。 Plaintext block Pm.i 420.
如果最后的密文块Cm 452的长度具有等于16字节的长度，则通 If the length of the last ciphertext block Cm length of 452 bytes is equal to 16, then through
过与Pm.i相同的方式生成最后的明文块Pm 422，即Pm等于Dk (Cm) In the same manner as Pm.i over the last plaintext block generated Pm 422, i.e., Pm equal to Dk (Cm)
与Cw异或。 Cw and XOR. 换言之，由Dk模块440解密第m个密文块Cm 452，并且模块430使该解密的结果与第（ml)个密文块C^ 450按位异或以产生第m个明文块Pm 422。 In other words, the Dk module 440 decrypts the m-th ciphertext block Cm 452, and the module 430 so that the decrypted result and the second (ml) th ciphertext block C ^ 450 bitwise XOR to generate the m-th plaintext block Pm 422.
如果最后的载荷块Cm 452具有小于16字节的由T表示的长度， 则模块433使输入常数H (例如，H=0或者H-十六进制格式的7884fe536c3588b73c2f604e4813fbel)与密文块Cn^异或并且在加扰K 的控制下模块442通过Ek对于该异或的结果加密。 If the last block load Cm 452 has a length represented by T is less than 16 bytes, the input module 433 constant H (e.g., H = 0 H- or hexadecimal format 7884fe536c3588b73c2f604e4813fbel) Cn ^ ciphertext block with iso or the result of a cryptographic module 442 and to the exclusive oR Ek under the control of K scrambling. 模块432通过使Cm 452与加密Ek (C^④H)的T个最低有效比特按位异或，生成也具有长度T的明文块Pm 422。 Cm 452 by module 432 and encryption Ek (C ^ ④H) T of least significant bits of bitwise XOR, also generates a plaintext block length T 422 Pm. 输入常数H可以是例如基于某个输入的预定的数或组。 H input constant may be based, for example, a predetermined number or group of input.
分组生成模块407利用未加扰的报头和适配字段404的复本重组表示解扰载荷406的生成的明文块（Pi 416、 P2418、…、P^ 420、 Pm 422)以形成解扰的MPEG-2传输流分组402。 Packet generation module 407 using a non-scrambled header and additional copy of recombinant adaptation field 404 indicates descrambling load generator 406 plaintext block (Pi 416, P2418, ..., P ^ 420, Pm 422) to form a descrambled MPEG -2 transport stream packets 402. 报头和适配字段404包括至少一个报头字段和一个或多个附加的字段。 Header and adaptation field 404 comprises at least a header field and one or more additional fields.
图5是说明例如由模块456执行的示例性操作的示图500，其中最后的密文部分（其还被称为加扰载荷部分）Cm452的宽度（t)具有例如小于128比特的縮小的尺寸。 FIG 5 is an explanatory diagram of an example of operations performed by modules 456 500, wherein the width (t) the last ciphertext portion (which is also referred to as a scrambled payload section) Cm452 having a reduced size for example less than 128 bits . 加密模块442的输出是Ek(Cm.^H) 502，其包括最高有效部分504和最低有效部分506。 Encryption module 442 is the output Ek (Cm. ^ H) 502, 504 which comprise the most significant portion 506 and least significant portion. 模块432使加扰载荷部分452与最低有效部分506按位异或，生成明文载荷部分Pm (t 个比特宽）422。 Module 432 so that the scrambled payload portion 452 and a least significant portion 506 bitwise XOR, to generate a plaintext payload portion Pm (t bits wide) 422.
由于可选适配字段的可变长度，MPEG-2传输流分组可以包含小于16字节的非常小的载荷。 Since the optional variable length adaptation field, MPEG-2 transport stream packet may contain a very small load is less than 16 bytes. 在该情形中，该载荷将是第一和最后的块， 被称为单端块。 In this case, the load will be the first and last block, known as single end block. 图6是说明根据多种实施例的用于对单端块加扰的示例性方法。 FIG 6 is an exemplary method for single end block scrambling in accordance with various embodiments described. 输入MPEG-2传输流分组602包括报头和适配字段（HAF) 部分604以及载荷部分606，该载荷部分606是表示Po的单端块。 Input MPEG-2 transport stream packet includes a header 602 and adaptation field (HAF) portion 604 and a payload portion 606, which is a single load portion 606 of the end block Po. 在图6中，Ek框608表示在加扰密钥K IIO控制下使用AES加密算法的模块。 In FIG. 6, Ek module block 608 represents the AES encryption algorithm used in the scramble key K IIO control. 框iv 108表示在加扰方法中使用的初始化向量。 Iv 108 block represents the initialization vector used in the scrambling process. 还存在按位异或运算模块610。 There is also a bitwise XOR operation module 610. 加扰密钥K 110和初始化向量IV 108均为16字节或128比特宽。 Scrambling key K 110 and the initialization vector IV 108 is 16 bytes or 128 bits wide. "c表示Po的长度，例如Po中的比特数目。模块611使输入常数H (例如，H=0或者H=十六进制格式的7884fe536c3588b73c2f604e4813fbel)与初始化向量IV 108异或以产生加密输入。模块608在密钥110的控制下对输入常数H与IV 108的异或的值加密。模块610通过使Po 606与加密，即Ek (IV④H)的t个最低有效比特按位异或，生成密文块Q) 612。比特控制模块609用于将加密输出的t个最低有效比特选择为异或模块610的输入。分组生成模块607利用未加扰的报头和适配字段604重组表示加扰载荷606的生成的密文块Co 612以形成加扰的MPEG-2传输流分组614。尽管在图6的实施例中，加密输入是异或模块611的输出，但是在其他实施例中，初始化向量108用作加密输入并且可省略异或模块611。图7是说明根据图6执行的示例性操作的示图700。加密模块608 输出包括最高有效部分704和最低有效部分706的Ek (IV④H)。模块610 "C denotes the length of the Po, Po is the number of bits for example. Constant input module 611 H (e.g., H = 0 H = 7884fe536c3588b73c2f604e4813fbel or hexadecimal format) and the initialization vector IV 108 to generate the encrypted input XOR Module 608. module 610 Po 606 by the encryption, i.e., Ek (IV④H) t least significant bits of bitwise XOR H with constant value of the encrypted input exclusive oR IV 108 under control of key 110, generates a ciphertext block Q) 612. the control module 609 bits for t least significant bits of the encrypted output selection input of the XOR module 610. the packet generation module 607 using a non-interference plus header adaptation field 604 and a scrambled payload 606 represents recombinant generated ciphertext block Co 612 to form a MPEG-2 transport stream is scrambled packet 614. Although in the embodiment of FIG. 6, the input is the output of XOR encryption module 611, in other embodiments, the initialization vector 108 used for encryption and XOR module 611. the input may be omitted in FIG. 7 is a diagram comprising the most significant portion 704 and least significant portion 706 of Ek (IV④H) based on the output diagram of an exemplary operation of FIG. 6 performs encryption module 700. 608. module 610 使t个比特宽的Ek (IV®H)的最低有效部分与也为t个比特宽的载荷P。 606按位异或。结果是t个比特宽的加扰载荷Cq 612。 T bits wide so Ek (IV®H) and a least significant portion is also t bits wide load P. 606 bitwise XOR result is t bits wide scrambled payload Cq 612.
图8是说明根据多种实施例的用于对单端块解扰的示例性方法的示图800。 FIG 8 is a diagram illustrating various exemplary method for descrambling single end block 800 according to an embodiment. 输入的MPEG-2加扰传输流分组814包括报头和适配字段(HAF)部分804和加扰载荷部分812，该加扰载荷部分812是表示为Co的单端块。 Scrambled MPEG-2 transport stream packet includes a header 814 and the input adaptation field (HAF) payload portion 804 and the scramble portion 812, the scrambled payload portion 812 is a single-end block of Co. 在图8中，Ek框808表示在加扰密钥K410控制下使用AES加密算法的模块。 In FIG. 8, Ek module block 808 represents the AES encryption algorithm used in the control of the scramble key K410. 框IV 408表示在解扰方法中使用的初始化向量。 Block represents the initialization vector IV 408 is used in descrambling process. 还存在异或运算模块810。 There is also the XOR operation module 810. 加扰密钥K 410和初始化向量IV 408均为16字节或128比特宽。 Scrambling key K 410 and the initialization vector IV 408 is 16 bytes or 128 bits wide. t表示Co的长度，例如Q中的比特数目。 t represents the length of Co, for example, Q is the number of bits. 模块811使输入常数H (例如，H=0或者H-十六进制格式的7884fe536c3588b73c2f604e4813fbel)与初始化向量IV 408异或。 Constant input module 811 H (e.g., H = 7884fe536c3588b73c2f604e4813fbel 0 H- or hexadecimal format) and the initialization vector IV 408 XOR. 模块808在密钥410的控制下对输入常数H与IV 408的异或的值加密。 Module 808 encrypts the input constant value of H and the IV XOR 408 under control of key 410. 在该情况中，异或模块811的输出是对加密模块808的加密输入。 In this case, the output of the XOR module 811 is input to the encryption module 808 of the encryption. 模块810通过使Q)812与加密，g卩Ek(IV0H)的t个最低有效比特按位异或，计算明文块PQ 806。 Module 810 by Q) 812 and encryption, g Jie Ek (IV0H) t least significant bits of bitwise XOR calculating plaintext block PQ 806. 分组生成模块807利用未加扰的报头和适配字段804的复本重组表示解扰载荷的生成的明文块Po 806以形成解扰的MPEG-2传输流分组802。 MPEG-2 transport stream packet generation module 807 using a non-interference plus header 804 and adaptation field recombinant replica representation to produce a descrambled payload plaintext block to form descrambled Po 806 802 packets. 未加扰的报头和适配字段804包括至少一个报头字段和一个或多个附加的字段。 Not added scrambled header and adaptation field 804 comprises at least a header field and one or more additional fields. 尽管在图8的实施例中，对模块808的加密输入由异或模块811产生，但是在其他实施例中，由模块408生成的初始化向量用作加密输入并且可省略异或模块811。 Although the XOR module 811 is generated by the encrypted input module 808 in the embodiment of FIG. 8, in other embodiments, as input generated by the encryption module 408 and the initialization vector XOR module 811 may be omitted.
图9是说明根据图8执行的示例性操作的示图900。 FIG 9 is a diagram illustrating an exemplary operation 900 of FIG. 8 according to the execution. 加密模块808 输出包括最高有效部分904和最低有效部分906的Ek (IV①H) 902。 808 encrypted output module 904 includes a most significant portion and a least significant portion 906 of Ek (IV①H) 902. 比特控制模块809选择t个比特宽的Ek (IV6H)的最低有效部分并且模块810使其与宽度也为t个比特的加扰载荷Co 812按位异或。 The control module 809 select bit least significant portion of t bits wide Ek (IV6H) and width module 810 is also reacted with t bits scrambled payload Co 812 bitwise XOR. 结果是t个比特宽的解扰载荷Po 806。 The result is t bits wide descrambled load Po 806. 图10是示例性通信系统的示图1000。 FIG 10 is a diagram of an exemplary communication system 1000. 例如，示例性通信系统1000 For example, an exemplary communication system 1000
可用于将有线电视信息从内容提供商分送到消费者，并且至少某些通 The cable may be used to sub-information from the content provider to a consumer, and at least some of the through-
信信号包括加扰的分组，例如加扰的MPEG-2传输流分组。 The packet channel signal includes scrambled, for example, the scrambled MPEG-2 transport stream packet. 示例性通 Exemplary pass
信系统1000包括多个内容提供商（内容提供商1 1002.....内容提供 Communication system 1000 includes a plurality of content providers (content providers provide content ..... 11002
商n 1004)、前端1006，例如有线电视前端、以及多个内容消费者的机顶盒（内容消费者l的机顶盒1008、...、内容消费者N的机顶盒1010)。 List n 1004), the distal end 1006, for example, cable head-end, and a plurality of content consumer set-top box (STB content consumer 1008 l, ..., N content consumer set top box 1010). 前端1006经由本地电缆基础设施1012耦合到机顶盒（1008、...、1010)。 10061012 distal end coupled via a local cable infrastructure to set-top boxes (1008, ..., 1010).
前端1006包括经由总线1018耦合在一起的接收机模块1014和本地电缆分送模块1016。 Front end 1006 includes a bus 1018 coupled together via a receiver module 1014 and local cable distribution module 1016. 接收机模块1014从内容提供商（1002、...、 1004) The receiver module 1014 from a content provider (1002, ..., 1004)
接收信号（1026..... 1028)。 The received signal (1026 ..... 1028). 例如，内容提供商l 1002可以是卫星 For example, content providers l 1002 may be a satellite
广播内容提供商1，其向接收机模块1014提供下行链路电视节目信号； 内容提供商n 1004可以是地面发射源发射内容提供商2，其经由光纤链路或微波链路向接收机模块1014提供电视节目信号。 A broadcast content provider, which provides television signals to a downlink receiver module 1014; n 1004 may be a content provider terrestrial transmission sources the content provider 2, to which receiver module via optical fiber links or microwave links 1014 providing television signals. 本地电缆分送模块1016与接收机模块1014对接，例如，接收对应于多个频道的电视节目信息，并且与本地电缆基础设施1012对接。 Local cable distribution module docking module 1014 and the receiver 1016, e.g., receiving information corresponding to a plurality of television program channels, and 1012 interface with the local cable infrastructure. 经由基础设施1012， 将模块1016耦合到机顶盒（1008、 1010)。 , The module 1012 is coupled via the infrastructure to set-top boxes 1016 (1008, 1010). 本地电缆分送模块1016 包括加扰/解扰模块1020，例如，用于支持IP网络上的电视信号，即IPTV。 Local cable dispensing module 1016 includes a scrambling / descrambling module 1020, e.g., for supporting a television signal on the IP network, i.e. IPTV. 加扰/解扰模块1020确定初始化向量，对待发射的传输流分组加扰，并且对接收的加扰传输流分组解扰。 Scrambling / descrambling module 1020 determines the initialization vector, to be transmitted packet stream transmitted scrambled and scrambling the descrambled transport stream packets received.
每个机顶盒（1008、 1010)分别包括加扰/解扰模块（1022、 1024)。 Each set-top box (1008, 1010) respectively comprise scrambling / descrambling module (1022, 1024). 加扰/解扰模块（1022、 1024)支持IPTV通信，例如，确定初始化向量，对待发射的传输流分组加扰，并且对接收的加扰传输流分组解扰。 Scrambling / descrambling module (1022, 1024) supports the IPTV communication, for example, determining the initialization vector, to be transmitted packet stream transmitted scrambled and scrambling the descrambled transport stream packets received.
图11包括图IIA、图IIB、图11C和图11D的组合，是根据多种实施例的操作通信设备的示例性方法的流程图1100的示图。 11 includes FIG IIA, FIG IIB, a combination of 11C and 11D, is a flowchart 1100 illustrating an exemplary method of operating a communications device according to embodiments of the variety. 操作开始于步骤1102，其中通信设备上电并且初始化。 Operation starts in step 1102, where the communications device is powered on and initialized. 操作从开始步骤1102 前进到步骤1104。 Operation proceeds from start step 1102 to step 1104. 在步骤1104中，通信设备接收分组，例如待加扰的MPEG-2传输流分组。 In step 1104, the communications device receives a packet, for example, to be scrambled MPEG-2 transport stream packet. 操作从步骤1104前进到步骤1106。 Operation proceeds from step 1104 to step 1106. 在步骤1106 中，通信设备确定加扰密钥K。 In step 1106, the communications device determines the scramble key K. 操作从步骤1106前进到步骤1108。 Operation proceeds from step 1106 to step 1108.
在步骤1108中，通信设备确定初始化向量。 In step 1108, the communications device determines the initialization vector. 步骤1108包括子步骤1110，其中操作前进到初始化向量子程序，例如流程图1130的初始化向量子程序。 Step 1108 includes sub-step 1110, where the operation proceeds to a subroutine initialization vector, for example, a subroutine flowchart of an initialization vector 1130.
现将描述流程图1130的初始化向量子程序。 It will now be described a subroutine flowchart of the initialization vector 1130. 操作开始于步骤1132 并且前进到步骤1134，其中通信设备获得输入常数。 Operation starts in step 1132 and proceeds to step 1134, where the communications device acquires the input constant. 然后，在步骤1136 中，通信设备获得初始化向量（IV)标志位值。 Then, in step 1136, the communications device acquires the value of the flag initialization vector (IV). 在可用于获得初始化向量标志位值的步骤1136中示出了四个可替换的子步骤（1138、 1140、 1142、 1144)。 The step of obtaining the value of the flag may be used in the initialization vector 1136 is shown in sub-step (1138, 1140, 1142, 1144) four alternative. 在子步骤1138中，通信设备通过信令消息，例如接收的ECM或EMM消息获得该值。 In sub-step 1138, the communications device through a signaling message, such as receiving an ECM or EMM to obtain the value message. 在子步骤1140中，通信设备利用缺省值，例如存储的缺省值。 In sub-step 1140, the communications device using the default values, for example, the default values ​​stored. 在子步骤1142中，通信设备由对应于节目的信息确定该值。 In sub-step 1142, the communications device is determined by the value of the information corresponding to the program. 在子步骤1144中，通信设备由对应于节目中的分组的信息确定该值。 In sub-step 1144, the communications device is determined by the value of the information packet corresponding to the program. 操作从步骤1136前进到步骤1146。 Operation proceeds from step 1136 to step 1146. 在步骤1146中， 作为初始化向量标志位值的功能通信设备沿不同的路径前进。 In step 1146, the communication device functions as a bit flag value different initialization vector advancing along a path. 如果IV 标志位=1，则操作从步骤1146前进到步骤1148;然而如果IV标志位=0，则操作从步骤1146前进到步骤1154。 If the IV bit flag = 1, then operation proceeds from step 1146 to step 1148; however, if IV flag = 0, then operation proceeds from step 1146 to step 1154.
在步骤1148中，通信设备使用AES加密程序（Ek)在加扰密钥K 的控制下对在步骤1134中获得的输入常数加密以获得Ek(输入常数）， Ek (输入常数）将用做新的加扰密钥。 In step 1148, the communications device using the AES encryption program (Ek) under the control of the scramble key K to encrypt a constant input obtained in step 1134 to obtain Ek (input constants), Ek (constant input) will be used as a new scramble key. 然后在步骤1150中，通信设备使用AES加密算法（Ek)在新的加扰密钥，即由步骤1148获得的新的加扰密钥的控制下对输入常数加密。 Then, in step 1150, the communications device using the AES encryption algorithm (Ek) in the new scrambling key, i.e., control of the new scrambling key obtained from step 1148 to encrypt the input constant. 接下来，在步骤1152中，通信设备将初始化向量设定为步骤1150的加密运算的输出。 Next, in step 1152, the communications device outputs the encrypted initialization vector setting operation of step 1150.
返回步骤1154，在步骤1154中，通信设备将初始化向量设定为等于步骤1134的输入常数。 Returning to step 1154, in step 1154, the communications device initialization vector is set equal to a constant input of step 1134. 操作从步骤1152或步骤1154之一前进到返回步骤1156。 Operation proceeds from step 1152 or step 1154, one returns to step 1156. 在步骤1156中，初始化向量程序返回关于初始化向量的值并且操作前进以回到主程序，例如回到流程图1100的步骤1108。 In step 1156, the program returns to the initialization vector value on the initialization vector and operation proceeds to return to the main flowchart of step 1100 back to 1108, for example.
操作从步骤1108前进到步骤1112。 Operation proceeds from step 1108 to step 1112. 在步骤1112中，通信设备处理步骤1104的分组以获得报头和适配字段部分以及载荷部分。 In step 1112, the processing of step 1104 packet communication device to obtain the header and the adaptation field portion and a payload portion. 接下来， 在步骤1114中，通信设备划分载荷部分以获得包括如下至少之一的分组部分：（i) 一个或多个起始固定尺寸部分，例如128比特部分，和(ii)剩余部分，所述剩余部分小于所述起始固定尺寸部分。 Next, in step 1114, the communications device is divided to obtain a payload portion comprising at least one portion of a packet: (i) one or more starting portion of a fixed size, for example 128-bit portion, and (ii) the remaining portion of the said remaining portion is less than the fixed size of the initial portion.
接下来，在步骤1116中，通信设备确定是否存在至少一个起始固定尺寸载荷分组部分。 Next, in step 1116, the communications device determines whether at least one initial fixed size packet payload portion. 如果确定存在至少一个起始固定尺寸载荷分组部分，则操作从步骤1116前进到步骤1118，其中操作被导向块加扰子程序；否则，操作从步骤1116前进到步骤1122，其中操作被导向单端块加扰子程序。 If it is determined that at least one initial fixed size packet payload portion, proceeds from step 1116 to step 1118 operation, wherein the guide block is scrambled operation subroutine; otherwise, operation proceeds from step 1116 to step 1122, where a single-ended operation is directed scrambling block subroutine.
现将描述流程图1180的示例性块加扰子程序。 Will now be described flowchart of an exemplary scrambling block 1180 subroutine. 在流程图1180中， 通信设备在步骤1182中开始块加扰子程序并且前进到步骤1184。 In flowchart 1180, the communications device at step 1182 and a start block scrambling routine proceeds to step 1184. 在步骤1184中，通信设备执行第一起始固定尺寸载荷分组部分与初始化向量的按位异或。 In step 1184, the communications device performs a first initial portion of the packet payload size is fixed initialization vector bitwise exclusive or. 然后，在步骤1186中，通信设备使用AES加密算法Ek在加密密钥K的控制下对第一起始固定尺寸载荷分组部分与初始化向量的按位异或的结果（步骤1184的结果）加密以获得第一起始固定尺寸加扰载荷部分。 Then, in step 1186, the communications device using the AES encryption algorithm Ek under the control of the encryption key K bitwise exclusive OR (result of step 1184) a first initial encrypted packet payload portion and the fixed size of the initialization vector to obtain a first fixed size starting scrambled payload portion.
操作从步骤1186前进到步骤1188。 Operation proceeds from step 1186 to step 1188. 在步骤1188中，通信设备确定是否存在待处理的另一起始固定尺寸载荷部分。 In step 1188, the communications device determines if another fixed size initial loading portion to be treated is present. 如果存在待处理的另一起始固定尺寸载荷部分，则操作从步骤1188前进到步骤1190;否则，操作从步骤1188前进到步骤1194。 If another starting fixed size payload portion to be processed exists, then operation proceeds from step 1188 to step 1190; otherwise, operation proceeds from step 1188 to step 1194.
在步骤1190中，通信设备执行下一起始固定尺寸载荷分组部分与前一起始固定尺寸加扰部分的按位异或，例如对于步骤1190的第一迭代，执行P2与C!的按位异或。 In step 1190, the communications device performs the next start portion of a fixed size of the load packets before a bitwise XOR scrambling initial portion of a fixed size, for example for a first iteration of step 1190, perform the P2 C! Bitwise exclusive or . 操作从步骤1190前进到步骤1192。 Operation proceeds from step 1190 to step 1192 proceeds. 在步骤1192中，通信设备使用AES加密算法Ek在加密密钥K的控制下对所述下一起始固定尺寸载荷分组部分与前一起始固定尺寸加扰部分的按位异或的结果（来自步骤1190的结果）进行加密以获得附加的固定尺寸加扰载荷部分，例如对于步骤1192的第一迭代，获得<32。 In step 1192, the communications device using the AES encryption algorithm Ek under the control of the encryption key K of the next start packet fixed size payload portion before starting a fixed-size portion of the scrambled result of the bitwise exclusive OR (from step results 1190) is encrypted to obtain additional scrambled payload portion of a fixed size, for example, the first iteration step 1192, to obtain <32. 操作从步骤1192前进到步骤1188，其中通信设备考虑是否存在另一待处理的起始固定尺寸载荷部分。 Operation proceeds from step 1192 proceeds to step 1188, wherein the presence of starting communication device consider the size of the fixed portion of another load to be treated.
在步骤1194中，通信设备依赖于是否存在来自划分载荷的剩余部分，沿不同的路径前进。 In step 1194, the communications device depending on whether there is a remaining portion of the load from the division, different advancing along the path. 如果存在剩余部分，则操作从步骤1194前进到步骤1195;否则操作从步骤1194前进到步骤1198。 If the remaining part is present, then operation proceeds from step 1194 to step 1195; otherwise, operation proceeds from step 1194 to step 1198.
在步骤1195中，通信设备执行输入常数H与前一起始固定尺寸加扰部分的按位异或。 In step 1195, the communications device performs input constants and H starting a fixed-size front portion scrambled bitwise XOR. 然后通信设备使用AES加密算法Ek在加密密钥K 的控制下对输入常数H与前一起始固定尺寸加扰载荷部分的异或的结果（来自步骤1192的结果）进行加密。 Then the communication device using the AES encryption algorithm Ek under the control of the encryption key K scrambling result (from step 1192) is the exclusive OR of the input portion of the load constants H starting with a fixed size before encryption. 操作从步骤1195前进到步骤1196。 Operation proceeds from step 1195 to step 1196. 在步骤1196中，通信设备确定划分载荷的剩余部分的比特尺寸t。 In step 1196, the communications device determines the load divided bit size t of the remaining portions. 然后在步骤1197中，通信设备执行所述加密结果的t个最低有效比特与剩余部分的按位异或以获得加扰剩余部分。 Then, in step 1197, the encryption result of performing the t least significant bits of the remaining portion of the communication device to obtain a bitwise XOR scrambling the remaining part. 因此步骤1197执行来自步骤1195的结果的t个最低有效比特与剩余部分的按位异或以获得加扰剩余部分。 Thus the remaining portion of step 1197 performed bitwise exclusive-or scrambling to obtain the t least significant bits from the remaining portion of the result of step 1195. 操作从步骤1197前进到步骤1198。 Operation proceeds from step 1197 to step 1198.
在步骤1198中，如果生成了加扰剩余部分，则通信设备组建生成的起始固定尺寸加扰载荷部分和加扰剩余部分。 In step 1198, if the generated scrambling remaining portion of the initial formation of the communication device of a fixed size and the scrambling scrambled payload portion generated by the remaining portion. 接下来，在步骤1199 中，块加扰子程序返回一个或多个加扰载荷块，例如一个加扰固定尺寸载荷部分，并且有时返回附加的加扰固定尺寸载荷部分，并且有时返回加扰剩余部分。 Next, in step 1199, the subroutine returns a block scrambling scrambled payload or more blocks, for example, a scrambled payload portion fixed size, and sometimes additional scrambling returns a fixed size payload portion, and may return the remaining scramble section.
现将描述流程图1160的示例性单端块加扰子程序。 Flowchart 1160 will now be described an exemplary single end block scrambling subroutine. 在流程图1160 中，通信设备在步骤1162中开始单端块加扰子程序并且前进到步骤1164。 In flowchart 1160, the communication device begins at step 1162 scrambling single end block routine and proceeds to step 1164. 在步骤1164中，通信设备执行输入常数H与初始化向量IV的按位异或。 In step 1164, the communications device performs input and the initialization vector IV H constants bitwise exclusive or. 然后通信设备使用AES加密算法Ek在加密密钥K的控制下对输入常数H与初始化向量IV的按位异或的结果进行加密。 Then the communication device using the AES encryption algorithm Ek encrypts the result of the bitwise XOR H with constant input initialization vector IV under the control of the encryption key K. 然后， 在步骤1166中，通信设备确定剩余部分的比特尺寸t，该剩余部分是载荷部分，例如单端块载荷部分P。 Then, in step 1166, the communications device determines the remaining portion of the t bit size, which is the remaining portion of the load portion, e.g. monolith terminal loading portion P. 。 . 接下来，在步骤1168中，通信设备执行Ek (IV6H)的t个最低有效比特与载荷部分P。 Next, in step 1168, the communications device performs Ek (IV6H) t least significant bits of the payload portion P. 的按位异或运算以获得加扰块。 Bitwise exclusive-OR operation to obtain the scrambling blocks. 然后在步骤1170中，操作从返回在步骤1168获得的加扰块的单端块加扰子程序返回到主程序。 Then, in step 1170, the operation returns from the return scramble blocks obtained in step 1168 single end block scrambling subroutine to the main routine.
返回步骤1118，操作从步骤1118前进到步骤1120，其中通信设备自块加扰子程序返回至少一个加扰块。 Returning to step 1118, operation proceeds from step 1118 to step 1120, where the communications device from the scrambled block subroutine returns at least one scrambling blocks. 返回步骤1122，操作从步骤1122前进到步骤1124,其中通信设备自单端块加扰程序返回一个加扰块。 Returning to step 1122, operation proceeds from step 1122 to step 1124, where the communications device from the single end block scrambling procedure returns to a scrambling block. 操作从步骤1120或步骤1124前进到步骤1126，其中通信设备将报头和适配字段部分与获得的加扰块组合以形成加扰分组，例如加扰的MPEG-2传输流分组。 Operation proceeds from step 1120 or step 1124 to step 1126, where the communications device and the adaptation field header portion and scrambling blocks obtained are combined to form the scrambled packets, for example, the scrambled MPEG-2 transport stream packet. 然后，在步骤1128中，通信设备发射加扰分组，例如加扰的MPEG-2传输流分组。 Then, in step 1128, the communications device transmitting the scrambled packet, e.g. MPEG-2 transport stream packet is scrambled.
图12包括图12A、图12B、图12C和图12D的组合，是根据多种实施例的操作通信设备的示例性方法的流程图1200的示图。 FIG 12 including 12A, the 12B, the combination of FIGS. 12C and 12D, is a flow chart illustrating an exemplary method 1200 of operating a communications device of the various embodiments. 操作开始于步骤1202，其中通信设备上电并且初始化。 Operation starts in step 1202, where the communications device is powered on and initialized. 操作从开始步骤1202 前进到步骤1204。 Operation proceeds from start step 1202 to step 1204. 在步骤1204中，通信设备接收分组，例如待解扰的MPEG-2传输流分组。 In step 1204, the communications device receives a packet, MPEG-2 transport stream packets to be descrambled example. 操作从步骤1204前进到步骤1206。 Operation proceeds from step 1204 to step 1206. 在步骤1206 中，通信设备确定解扰密钥K。 In step 1206, the communications device determines a descrambling key K. 操作从步骤1206前进到步骤1208。 Operation proceeds from step 1206 to step 1208.
在步骤1208中，通信设备确定初始化向量。 In step 1208, the communications device determines the initialization vector. 步骤1208包括子步骤1210，其中操作前进到初始化向量子程序，例如流程图1230的初始化向量子程序。 Step 1208 includes sub-step 1210, where the operation proceeds to a subroutine initialization vector, for example, a subroutine flowchart of an initialization vector 1230.
现将描述流程图1230的初始化向量子程序。 It will now be described a subroutine flowchart of the initialization vector 1230. 操作开始于步骤1232 并且前进到步骤1234,其中通信设备获得输入常数。 Operation starts in step 1232 and proceeds to step 1234, where the communications device acquires the input constant. 然后，在步骤1236 中，通信设备获得初始化向量（IV)标志位值。 Then, in step 1236, the communications device acquires the value of the flag initialization vector (IV). 在可用于获得初始化向量标志位值的步骤1236中示出了四个可替换的子步骤（1238、 1240、 1242、 1244)。 The step of obtaining the value of the flag may be used in the initialization vector 1236 is shown in sub-step (1238, 1240, 1242, 1244) four alternative. 在子步骤1238中，通信设备通过信令消息，例如接收的ECM或EMM消息获得该值。 In sub-step 1238, the communications device through a signaling message, such as receiving an ECM or EMM to obtain the value message. 在子步骤1240中，通信设备利用缺省值，例如存储的缺省值。 In sub-step 1240, the communications device using the default values, for example, the default values ​​stored. 在子步骤1242中，通信设备由对应于节目的信息确定该值。 In sub-step 1242, the value is determined by the communication device corresponding to the program information. 在子步骤1244中，通信设备由对应于节目中的分组的信息确定该值。 In sub-step 1244, the communications device is determined by the value of the information packet corresponding to the program. 操作从步骤1236前进到步骤1246。 Operation proceeds from step 1236 to step 1246. 在步骤1246中， 作为初始化向量标志位值的功能通信设备沿不同的路径前进。 In step 1246, the communication device functions as a bit flag value different initialization vector advancing along a path. 如果IV 标志位=1，则操作从步骤1246前进到步骤1248;然而如果IV标志位0，则操作从步骤1246前进到步骤1254。 If the IV bit flag = 1, then operation proceeds from step 1246 to step 1248; however, if IV flag bit 0, then operation proceeds from step 1246 to step 1254.
在步骤1248中，通信设备使用AES加密程序（Ek)在加扰密钥K 的控制下对在步骤1234中获得的输入常数加密以获得Ek(输入常数）， Ek (输入常数）将用做新的加扰密钥。 In step 1248, the communications device using the AES encryption program (Ek) under the control of the scramble key K to encrypt a constant input obtained in step 1234 to obtain Ek (input constants), Ek (constant input) will be used as a new scramble key. 然后在步骤1250中，通信设备使用AES加密算法（Ek)在新的加扰密钥，即由步骤1248获得的新的加扰密钥的控制下对输入常数加密。 Then, in step 1250, the communications device using the AES encryption algorithm (Ek) in the new scrambling key, i.e., control of the new scrambling key obtained from step 1248 to encrypt the input constant. 接下来，在步骤1252中，通信设备将初始化向量设定为步骤1250的加密运算的输出。 Next, in step 1252, the communications device outputs the encrypted initialization vector setting operation of step 1250.
返回步骤1254，在步骤1254中，通信设备将初始化向量设定为等于步骤1234的输入常数。 Returning to step 1254, in step 1254, the communications device initialization vector is set equal to a constant input of step 1234. 操作从步骤1252或步骤1254之一前进到返回步骤1256。 Operation proceeds from step 1252 or step 1254, one returns to step 1256. 在步骤1256中，初始化向量子程序返回关于初始化向量的值并且操作前进以回到主程序，例如回到流程图1200的步骤1208。 In step 1256, the subroutine returns an initialization vector value on the initialization vector and operation proceeds to return to the main flowchart of step 1200 back to 1208, for example.
操作从步骤1208前进到步骤1212。 Operation proceeds from step 1208 to step 1212. 在步骤1212中，通信设备处理步骤1204的加扰分组以获得报头和适配字段部分和加扰载荷部分。 In step 1212, the communications device scrambling processing in step 1204 to obtain a packet header adaptation field and a payload portion and a scrambling section. 接下来，在步骤1214中，通信设备划分加扰载荷部分以获得包括如下至少之一的分组部分：（i) 一个或多个起始固定尺寸加扰部分，例如128比特部分，和（ii)加扰剩余部分，所述加扰剩余部分小于所述起始固定尺寸加扰部分。 Next, in step 1214, the communications device is divided to obtain a scrambled payload section comprises at least one portion of a packet: (i) one or more starting scrambling portion fixed size, for example 128-bit portion, and (ii) scrambling the remaining part, the scrambling initial fixed size remaining less than the scrambled portion.
接下来，在步骤1216中，通信设备确定是否存在至少一个起始固定尺寸加扰载荷分组部分。 Next, in step 1216, the communications device determines whether at least one initial scramble fixed size packet payload portion. 如果确定存在至少一个起始固定尺寸加扰 If it is determined that at least one fixed size initial scramble
载荷分组部分，则操作从步骤1216前进到步骤1218，其中操作被导向块解扰子程序；否则，操作从步骤1216前进到步骤1222，其中操作被导向单端块解扰子程序。 Part load packets, then operation proceeds from step 1216 to step 1218, where operations are descrambled subroutine guide block; otherwise, operation proceeds from step 1216 to step 1222, where operations are single-ended guide block descrambled subroutine.
现将描述流程图1280的示例性块解扰子程序。 Will now be described the subroutine flowchart of an exemplary descrambling block 1280. 在流程图1280中， 通信设备在步骤1282中开始块解扰子程序并且前进到步骤1284。 In flowchart 1280, the communications device at step 1282 and a start block descrambling routine proceeds to step 1284. 在步骤1284中，通信设备使用AES解密算法Dk在解扰密钥K的控制下对第一起始固定尺寸加扰载荷分组部分进行解密。 In step 1284, the communications device using the AES decryption algorithm Dk descrambling key K under the control of a first fixed size starting scrambled payload portion of the packet is decrypted. 然后，在步骤1286中， 通信设备在解密密钥K的控制下执行第一起始固定尺寸加扰载荷分组部分的解密结果（来自步骤1284的结果）和初始化向量的按位异或运算以获得第一载荷分组部分。 Then, in step 1286, the communications device performs a first decryption result of the starting of a fixed size packet payload scrambling portion (results from step 1284), and initialization vector under the control of the decryption key K bitwise exclusive-OR operation to obtain the first a packet payload section. 操作从步骤1286前进到步骤1288。 Operation proceeds from step 1286 to step 1288.
在步骤1288中，通信设备检查是否存在待处理的另一起始固定尺寸加扰载荷部分。 In step 1288, the communications device checks whether there is another starting scrambled payload portion of a fixed size to be treated. 如果存在待处理的另一起始固定尺寸加扰载荷部分， 则操作从步骤1288前进到步骤1290;否则，操作从步骤1288前进到步骤1294。 If another starting fixed size to be processed scrambled payload portion exists, then operation proceeds from step 1288 to step 1290; otherwise, operation proceeds from step 1288 to step 1294.
在步骤1290中，通信设备使用AES解密算法Dk在解扰密钥K的控制下对下一起始固定尺寸加扰载荷分组部分的结果进行解密。 In step 1290, the communications device using the AES decryption algorithm for decrypting the next start Dk fixed size packets scrambled payload portion of the results under the control of the descrambling key K. 然后， 在步骤1292中，通信设备执行所述下一起始固定尺寸加扰载荷分组部分的解密结果与前一加扰载荷部分的按位异或以获得另一起始尺寸载荷部分。 Then, in step 1292, the communications device performs said next scrambling initial fixed size packet payload portion and the decryption result of bitwise exclusive-or to obtain another original dimensions before loading portion according to a scrambled payload portion. 操作从步骤1292前进到步骤1288，其中通信设备检查是否存在剩余任何附加的待处理的起始固定尺寸载荷部分。 Operation proceeds from step 1292 to step 1288, any additional remaining to be processed starting fixed size payload portion wherein the communication device checks whether or not there.
在步骤1294中，通信设备检查是否存在来自划分的加扰载荷的加扰剩余部分。 In step 1294 the communications device checks whether there is a scrambling partitioned from the remainder of the scrambled payload. 如果存在加扰剩余载荷部分，则操作从步骤1294前进到步骤1295;否则操作从步骤1294前进到步骤1298。 If the scrambled payload portion of the remainder exists, then operation proceeds from step 1294 to step 1295; otherwise, operation proceeds from step 1294 to step 1298. 在步骤1295中， 通信设备执行输入常数H与前一起始固定尺寸加扰载荷部分的按位异或。 In step 1295, the communications device performs input constants and H starting a fixed-size front scrambled payload portion bitwise XOR. 然后通信设备使用AES加密算法Ek对输入常数H与前一起始固定尺寸加扰载荷部分的按位异或进行加密。 Then the communication device using the AES encryption algorithm Ek and H constant input before starting a fixed-size bitwise XOR scrambling encrypted payload portion. 然后，在步骤1296中，通信设备确定划分的加扰载荷的剩余部分的比特尺寸t。 Then, in step 1296, the communications device determines the size of the divided bit t the remaining portion of the scrambled payload. 接下来，在步骤 Next, in step
1297中，通信设备执行所述加密结果的t个最低有效比特与加扰载荷的剩余部分的按位异或以获得剩余部分。 In 1297, the remaining portion of the t least significant bits of the result of performing the cryptographic communication device scrambling load bitwise XOR to obtain the remaining portion. 操作从步骤1297前进到步骤1298。 Operation proceeds from step 1297 to step 1298.
在步骤1298中，如果生成了剩余部分，则通信设备组建生成的固定尺寸载荷部分和剩余部分。 In step 1298, if the remaining portion is generated, the communication device generates a set of fixed size payload portion and a remaining portion. 接下来，在步骤1299中，块解扰程序返回一个或多个解扰载荷块，例如起始固定尺寸载荷部分，并且有时返回一个或多个附加的起始固定尺寸载荷部分，并且有时返回剩余载荷部分。 Next, in step 1299, the program returns to block descrambler descrambling the one or more load blocks, for example, starting a fixed size payload portion, and may return to the starting one or more additional fixed size payload portion, and may return the remaining loading portion.
现将描述流程图1260的示例性单端块解扰子程序。 Will now be described flowchart of an exemplary single-end block 1260 subroutine descrambling. 在流程图1260 中，通信设备在步骤1262中开始单端块解扰子程序并且前进到步骤1264。 In flowchart 1260, the communications device starts in step 1262 and a single end block routine proceeds to step descrambler 1264. 在步骤1264中，通信设备执行输入常数H与初始化向量IV的按位异或。 In step 1264, the communications device performs input and the initialization vector IV H constants bitwise exclusive or. 然后通信设备使用AES加密算法Ek在加密密钥K的控制下对输入常数H与初始化向量IV的按位异或进行加密。 Then the communication device using the AES encryption algorithm Ek under the control of the input encryption key, K and initialization vector IV H constants bitwise exclusive or encrypted. 然后，在步骤1266中，通信设备确定剩余部分的比特尺寸t，该剩余部分是加扰载荷部分，例如单端块加扰载荷部分C。 Then, in step 1266, the communications device determines the remaining portion of the t bit size, which is the remaining portion of the scrambled payload portion, such as a single end block scrambling loading portion C. 。 . 接下来，在步骤1268中，通信设备执行Ek (IV④H)的t个最低有效比特与加扰载荷部分C。 Next, in step 1268, the communications device performs Ek (IV④H) t least significant bits of the scrambling loading portion C. 的按位异或运算以获得解扰块。 Bitwise exclusive-OR operation to obtain a descramble blocks. 然后在步骤1270中，操作从返回在步骤1268 的获得的块的单端块解扰子程序返回到主程序。 Then, in step 1270, the operation returns from the block end in a single block obtained in step 1268 the subroutine returns to the main descrambling.
返回步骤1218，操作从步骤1218前进到步骤1220，其中通信设备从块解扰程序返回至少一个解扰块。 Returning to step 1218, operation proceeds from step 1218 to step 1220, wherein the communication device returns at least one descrambled program descramble blocks from the block. 返回步骤1222，操作从步骤1222 前进到步骤1224，其中通信设备从单端块解扰程序返回一个解扰块。 Returning to step 1222, operation proceeds from step 1222 to step 1224, wherein the communication device returns a descramble blocks from a single end block descramble the program. 操作从步骤1220或步骤1224前进到步骤1226，其中通信设备将报头和适配字段与获得的解扰块组合以形成解扰分组，例如IP传输流分组。 Operation proceeds from step 1220 or step 1224 to step 1226, where the communications device and a header adaptation field and descramble blocks obtained combined to form descrambled packets, such as IP transport stream packet. 操作从步骤1226前进到步骤1204，其中接收待处理和解扰的另一分组。 Operation proceeds from step 1226 to step 1204, where another packet received and descrambled to be treated. 在某些实施例中，使用模块实现多种特征。 In certain embodiments, various features are implemented using modules. 可以使用软件、硬件或者软件和硬件的组合实现该模块。 You may use a combination of software, hardware, or software and hardware implementing this module. 可以使用诸如软件的机器可执行指令实现许多上文描述的方法或方法步骤，所述软件包含在诸如存储器设备，例如RAM、软盘等的机器可读介质中，用于控制机器，例如具有或不具有额外的硬件的通用计算机，以在例如一个或多个节点中 Software may be used, such as machine executable instructions implement a method or methods described above, a number of steps, such as the software is included in a memory device such as RAM, floppy disk, etc. The machine readable medium, for controlling a machine, e.g., with or without a general purpose computer with additional hardware, for example, to one or more nodes
实现所有或部分上文描述的方法。 Implement all or portions of the above described methods. 因此，除其他事项外，本申请涉及一种包括机器可执行指令的机器可读介质，用于使机器，例如处理器和关联的硬件执行上文描述的方法的一个或多个步骤。 Thus, inter alia, the present application relates to a machine-executable instructions comprising a machine-readable medium, for causing a machine, e.g. the methods described above, a processor and associated hardware, or more steps.
在前面的说明书中，参考附图描述了多种优选实施例。 In the foregoing specification, with reference to the accompanying drawings it describes various preferred embodiments. 然而，显而易见的是，在不偏离如附属权利要求中阐述的本发明的更广泛的范围的前提下，可以进行多种修改和改变，并且可以实现额外的实施例。 However, it will be apparent that, under the premise of a wider range without departing from the appended claims as set forth in the present invention, various modifications and changes may be made, and additional embodiments may be implemented. 因此说明书和附图应被视为说明性的而非限制性的。 The specification and drawings are to be regarded as illustrative rather than restrictive.
1.一种方法，包括： 当载荷部分小于预定单位尺寸时处理包括第一部分和所述载荷部分的第一分组，其中所述第一部分包括至少一个报头字段，所述处理包括： 通过使加密输入经历使用加密密钥执行的加密运算，生成第一组τ个比特； 处理第一分组的载荷，当所述载荷部分小于预定单位尺寸时，所述载荷是第二组τ个比特，所述处理包括所述第一组个τ比特与所述第二组个τ比特的按位异或以产生新的载荷，所述第一分组包括第一部分和载荷部分，其中所述第一部分包括至少一个报头字段；以及通过将所述新的载荷附加到包括所述至少一个报头字段的报头来生成第二分组。 1. A method, comprising: processing a first packet comprising a first portion and a portion of the load when the load is less than a predetermined portion of a unit size, wherein said first portion comprises at least a header field, said process comprising: input by encrypting an encryption key using the encryption arithmetic subjected executed, generating a first set of bits τ; processing load of the first packet, when a part is smaller than the predetermined size of the unit load, the load is a second set of τ bit, the process the first set comprises one of said second set of bits τ τ a bitwise XOR of bits to generate a new load, the first packet comprising a first portion and a payload portion, wherein said first portion comprises at least one header field; and attached to the new load by comprising at least a header field of the header of the second packet generation.
2. 如权利要求1所述的方法，其中，所述加密输入是初始化向量。 2. The method according to claim 1, wherein the encryption initialization vector is input.
3. 如权利要求l所述的方法，进一步包括： 通过初始化向量与常数的异或，生成所述加密输入； 其中，所述加密输入包括多于T个比特，以及其中，所述加密运算产生多于T个比特；以及其中生成所述第一组T个比特包括将所述加密运算的输出的T个最低有效比特取为所述第一组T个比特。 3. The method of claim l, further comprising: different initialization vector and a constant or generating the encrypted input; wherein the encryption comprises more than T input bits, and wherein the encryption operation produces than T bits; and wherein generating the first group of T bits T comprises least significant bits of the output of the cryptographic operation is taken as the first group of T bits.
4. 如权利要求3所述的方法，其中，所述载荷包括至少某些MPEG视频内容；以及通过将所述新的载荷附加到包括所述至少一个报头字段的报头生成第二分组，包括：将所述新的载荷附加到所述第一分组的所述第一部分的复本。 4. The method according to claim 3, wherein said load comprises at least some of MPEG video content; and by the new loads to additionally comprises at least one packet header to generate a second packet header field, comprising: the new copy of the load attached to the first portion of the first packet.
5.如权利要求4所述的方法，其中所述第一分组是MPEG-2传输流分组并且其中所述第二分组是包括加扰载荷的MPEG-2传输流分组。 5. The method according to claim 4, wherein the first packet is an MPEG-2 transport stream packet and wherein said second packet is a MPEG-2 transport stream packet payload scrambling.
6.如权利要求5所述的方法，其中，t是大于或等于1并且小于128的整数；以及其中，所述加密运算是AES加密运算。 6. The method according to claim 5, wherein, t is an integer greater than or equal to 1 and less than 128; and wherein the encryption algorithm is an AES cryptographic operation.
7.如权利要求4所述的方法，其中，所述第一分组是包括加扰载荷的MPEG-2传输流分组，并且其中所述第二分组是包括解扰载荷的MPEG-2传输流分组。 7. The method according to claim 4, wherein said first packet is a MPEG-2 transport stream packet payload scrambling, and wherein the second packet is a MPEG-2 payload descrambling transport stream packet .
8.如权利要求7所述的方法，其中，t是大于或等于1并且小于128的整数；以及其中，所述加密运算是AES加密运算。 8. The method according to claim 7, wherein, t is an integer greater than or equal to 1 and less than 128; and wherein the encryption algorithm is an AES cryptographic operation.
9. 一种装置，所述装置包括：加密模块，用于通过使加密输入经历使用加密密钥执行的加密运算，生成第一组t个比特；异或模块，用于处理包括第一部分并且包括载荷的第一分组的所述载荷，其中所述第一部分包括至少一个报头字段，所述载荷是第二组t个比特，所述处理包括所述第一组t个比特与所述第二组t个比特的按位异或以产生新的载荷；以及分组生成模块，用于通过将所述新的载荷附加到包括所述至少一个报头字段的报头来生成第二分组。 9. An apparatus, said apparatus comprising: an encryption module for encrypting input subjected by using the encryption operation executed by the encryption key, generating a first set of t bits; XOR means for processing includes a first portion and comprising the loading of the first packet of a load, wherein said first portion comprises at least a header field, a payload of the second group of t bits, said process comprising the first set of t bits with the second group t bits bitwise XOR to generate a new load; and a packet generation module for the new load by comprising attached to said at least one header field of the packet header to generate a second.
10.如权利要求9所述的装置，进一步包括：异或模块，其通过初始化向量与常数H的异或，生成所述加密输其中，所述加密输入包括多于t个比特， 其中，所述加密模块产生多于t个比特；以及其中，所述装置包括比特控制模块，用于将所述加密运算的输出的T个最低有效比特取为所述第一组T个比特。 10. The apparatus according to claim 9, further comprising: XOR module, by different initialization vector and a constant or H, wherein generating the encrypted transmission, the encrypted input comprises bits than t, wherein the said encryption module to generate more than t bits; and wherein T means the least significant bits of the output of the cryptographic operation is taken as the first set of bits includes a bit T control module for.
11. 如权利要求10所述的装置，其中，所述载荷包括至少某些MPEG视频内容。 11. The apparatus according to claim 10, wherein said load comprises at least some of MPEG video content.
12. 如权利要求ll所述的装置，其中，通过将所述新的载荷附加到包括所述至少一个报头字段的报头来生成第二分组，包括：将所述新的载荷附加到所述第一分组的所述第一部分的复本。 12. The apparatus according to claim ll, wherein said new load by comprising attached to said at least one packet header to generate a second packet header field, comprising: the new load attached to the first a copy of the first portion of the packet.
13. 如权利要求12所述的装置，其中，T是大于或等于l并且小于128的整数；以及其中，所述加密模块是AES加密模块。 13. The apparatus of claim 12, wherein, T is an integer greater than or equal to l and smaller than 128; and wherein said encryption module is an AES encryption module.
14. 如权利要求12所述的装置，其中，所述第一分组是包括加扰载荷的MPEG-2传输流分组，并且其中所述第二分组是包括解扰载荷的MPEG-2传输流分组。 14. The apparatus of claim 12, wherein said first packet is a MPEG-2 transport stream packet payload scrambling, and wherein the second packet is a MPEG-2 payload descrambling transport stream packet .
15. —种处理包括第一部分和载荷部分的第一分组的方法，其中所述第一部分包括至少一个报头字段，所述方法包括：通过在至少第一和第二初始化值之间的可控选择生成加密初始化向量；以及作为所述生成的加密初始化向量的功能对所述载荷部分的至少一部分执行加密运算。 15. - The method of treatments comprising a first portion and a first portion of the packet payload, wherein the first portion comprises at least a header field, the method comprising: controllably selecting between at least a first and a second initialization value generating the encrypted initialization vector; and as a function of the generated encrypted initialization vector to perform encryption operation on at least a portion of the load portion.
16. 如权利要求15所述的方法，进一步包括： 通过使用生成的加密控制密钥对第三常数执行加密运算来生成所述第一初始化值。 16. The method according to claim 15, further comprising: a third operation key to perform encryption to generate the first constant value by using an encryption initialization generated control.
17. 如权利要求16所述的方法，其中，生成所述第一初始化值进一步包括：通过在另一加密控制密钥的控制下对所述第三常数执行加密运算来生成所述生成的加密控制密钥。 17. The method as claimed in claim 16, wherein said generating a first initial value further comprising: under control of another encryption key in said third constant control operation to perform encryption to generate the generated encrypted control key.
18. 如权利要求17所述的方法，其中，在初始化向量标志的控制下实现所述可控选择。 18. The method according to claim 17, wherein said controllable implemented under the control of the initialization vector selection marker.
19. 如权利要求18所述的方法，其中，在MPEG-2传输流中接收所述初始化向量标志。 19. The method as claimed in claim 18, wherein receiving the initialization vector flag in MPEG-2 transport stream.
20. 如权利要求18所述的方法，其中，所述初始化向量标志用于处理MPEG-2节目流中包括的分组。 20. The method according to claim 18, wherein the initialization vector flag MPEG-2 program stream packet included for processing.
21. 如权利要求18所述的方法，其中，所述初始化向量标志基于每个分组进行更新。 21. The method according to claim 18, wherein the initialization vector for each packet based on the flag to be updated.
22. 如权利要求17所述的方法，其中，所述第二初始化值是常数。 22. The method according to claim 17, wherein the second initialization value is a constant.
23. 如权利要求22所述的方法，其中，所述第二初始化值与所述第三常数相同。 23. The method according to claim 22, wherein the second initialization value is the same as the third constant.
24. 如权利要求17所述的方法，其中，作为所述生成的加密初始化向量的功能对所述载荷部分的至少一部分执行加密运算，包括：将所述载荷划分为划分载荷，其中，所述划分载荷包括第一预定尺寸部分；使用所述初始化向量作为异或模块的输入，所述异或模块接收所述第一预定尺寸部分作为输入；以及使所述异或运算的输出经历第一载荷加密运算以生成第一加扰载荷部分。 24. The method according to claim 17, wherein, as a function of the generated encrypted initialization vector to perform encryption arithmetic load at least a portion of said part, comprising: a divider for dividing the load of a load, wherein said dividing the load portion includes a first predetermined size; using the initialization vector as an input of the XOR module, said exclusive oR means for receiving the first predetermined size portion as an input; and an output of said exclusive oR operation subjected to a first load a first encryption algorithm to generate a scrambled payload section.
25. 如权利要求24所述的方法，其中，所述第一载荷加密运算是AES加密运算。 25. The method according to claim 24, wherein said first cryptographic operation is a load operation AES encryption.
26. 如权利要求24所述的方法，其中，所述划分载荷进一步包括第二预定尺寸部分；并且其中，对所述载荷部分的至少一部分执行加密运算进一步包括： 使用所述第一载荷加密运算的输出作为附加的异或模块的输入， 所述附加的异或模块接收所述第二预定尺寸部分作为输入。 26. The method according to claim 24, wherein said load further comprises a second divided portion of a predetermined size; and wherein the cryptographic operation performed on at least a portion of the load section further comprises: using the first encryption computation load as input the output of the additional XOR module XOR module to said additional receiving the second portion of predetermined size as an input.
27. 如权利要求24所述的方法，其中，所述划分载荷进一步包括具有第一组T个比特的第一剩余部分，其中T小于所述预定部分尺寸，以及其中，对所述载荷部分的至少一部分执行加密运算进一步包括：执行所述第一组T个比特与第二组T个比特的按位异或以产生加扰载荷剩余部分。 27. The method according to claim 24, wherein said partitioning further comprises a load having a first group of T bits of the first portion of the remainder, wherein T is less than the predetermined size portion, and wherein said load portion at least a portion of the cryptographic operations performed further comprising: performing a first group of T bits of the second group of T bits to generate a bitwise exclusive-or scrambling the remaining portion of the load.
28. 如权利要求27所述的方法，进一步包括：通过将包括至少所述第一加扰载荷部分和所述加扰载荷剩余部分的加扰载荷附加到所述第一分组部分的复本来生成第二分组。 28. The method according to claim 27, further comprising: additionally comprise at least by the first portion and the scrambled payload scrambling scrambled payload load the remaining portion of the first packet to the replica generating portion The second grouping.
29. —种处理包括加扰分组载荷的第一分组的方法，所述加扰分组载荷包括具有第一预定尺寸的第一加扰块和具有小于所述第一预定尺寸的第二尺寸的一个加扰剩余块，所述方法包括：使所述第一加扰块经历解密运算以产生第一解密结果； 使用所述第一解密结果执行异或运算以产生第一解扰载荷部分；并且使所述加扰剩余块经历与从加密运算获得的一组比特的异或运算以产生解扰剩余载荷部分。 29. - Method treatments comprising a first packet of the payload packets scrambled, the scrambled packet payload comprising a first scrambling block having a first predetermined size and having a second size smaller than said first predetermined sizes scrambling the remaining blocks, the method comprising: the first scrambling block subjected to decryption operation result to generate a first decrypted; using the first decryption result of performing an exclusive oR operation to generate a first descrambler loading portion; and the the remaining blocks subjected to scrambling with a set of bits of the exclusive-oR operation is obtained from the encrypted part load operation to produce a residual descrambling.
30. 如权利要求29所述的方法，进一步包括：将所述第一解扰载荷部分和解扰剩余载荷部分与从所述第一分组获得的报头部分的复本组合以生成包括解扰载荷的第二分组。 30. The method according to claim 29, further comprising: descrambling the first loading portion and loads the remaining partial replica composition descrambling the header portion of the packet obtained from the first and including descrambling to produce a load The second grouping.
31. 如权利要求30所述的方法，其中，所述解密运算是AES解密运算，并且其中所述加密运算是AES加密运算。 31. The method according to claim 30, wherein the decryption operation is AES decryption operation, and wherein the cryptographic operation is an AES encryption operation.
32. 如权利要求31所述的方法，其中，所述第二分组是符合MPEG-2的传输分组。 32. The method according to claim 31, wherein the second packet is consistent with the MPEG-2 transport packets.
33. 如权利要求30所述的方法，进一步包括： 执行所述加密运算，所述加密运算包括使用位于所述第一分组中的紧邻所述加扰剩余载荷部分的前面的加扰载荷分组部分与作为加密输入的常数H的异或运算的结果。 33. The method according to claim 30, further comprising: performing the cryptographic operations, said cryptographic operation comprises using in the first packet in the immediately adjacent packet scrambling scrambled payload portion of the front portion of the remaining load as a result of the exclusive oR operation constant H encrypted input.
34. —种装置，包括：第一解密模块，用于使第一加扰块经历解密运算以产生第一解密结果，所述第一加扰块来自包括加扰分组载荷的第一分组，所述加扰分组载荷包括具有第一预定尺寸的第一加扰块和具有小于所述第一预定尺寸的第二尺寸的一个加扰剩余块；第一异或模块，用于使用所述第一解密结果执行异或运算以产生第一解扰载荷部分；以及第二异或模块，用于使所述加扰剩余块经历与从加密运算获得的一组比特的异或运算以产生解扰剩余载荷部分。 34. - species apparatus, comprising: a first decryption module, for scrambling blocks undergo a first operation to generate a first decryption result of decrypting the first packet from the first scrambling block comprises the scrambled packet payload, the scrambling said packet comprises a payload having a first predetermined size having a first scrambled block and a residual block scrambling dimension smaller than the first predetermined second size; a first exclusive oR means for using the first exclusive oR operation result of the decryption to generate the first descrambler loading portion; and a second exclusive oR means for scrambling the remaining blocks and a set of bits subjected to the exclusive-oR operation is obtained from the encrypted descrambling operation to generate residual loading portion.
35. 如权利要求34所述的装置，进一步包括： 分组生成模块，用于将所述第一解扰载荷部分和解扰剩余载荷部分与从所述第一分组获得的报头部分的复本组合以生成包括解扰载荷的第二分组。 35. The apparatus according to claim 34, further comprising: a packet generating module, configured to descramble the first loading portion and a payload portion remaining copy of descrambling the header portion of the composition obtained from the first packet to generating a second packet comprising a payload descrambling.
36. 如权利要求35所述的装置，其中，所述解密模块是AES解密模块，并且其中所述加密模块是AES加密模块。 36. The apparatus according to claim 35, wherein the decryption module is an AES decryption module, and wherein said encryption module is an AES encryption module.
37. 如权利要求36所述的装置，其中，所述第二分组是符合MPEG-2的传输分组。 37. The apparatus according to claim 36, wherein the second packet is consistent with the MPEG-2 transport packets.
38. 如权利要求35所述的装置，进一步包括：加密模块，用于执行所述加密运算，所述加密运算包括使用位于所述第一分组中的紧邻所述加扰剩余载荷部分的前面的加扰载荷分组部分与作为加密输入的常数H的异或运算的结果。 38. The apparatus according to claim 35, further comprising: an encryption module, for performing the encryption operation, said encryption operation comprises using in the first packet in the immediately preceding the scrambled payload portion of the remaining scrambled packet payload portion and the encryption result as a constant H input exclusive oR operation.
CN 200780039891 2006-10-25 2007-10-25 Methods and apparatus for content scrambling in a communications system CN101554004A (en)
US11588065 US8345713B2 (en) 2006-10-25 2006-10-25 Methods and apparatus for content scrambling in a communications system
US11/588,065 2006-10-25
CN101554004A true true CN101554004A (en) 2009-10-07
ID=39325443
CN 200780039891 CN101554004A (en) 2006-10-25 2007-10-25 Methods and apparatus for content scrambling in a communications system
US (1) US8345713B2 (en)
EP (1) EP2076985A4 (en)
CN (1) CN101554004A (en)
WO (1) WO2008052141A3 (en)
CN102238003A (en) * 2011-03-17 2011-11-09 中国电力科学研究院 Root key generating method
CN103988513A (en) * 2011-11-22 2014-08-13 纳格拉影像股份有限公司 Method, cryptographic system and security module for descrambling content packets of a digital transport stream
US8509439B2 (en) * 2007-12-31 2013-08-13 Intel Corporation Assigning nonces for security keys
US8675864B2 (en) * 2010-09-14 2014-03-18 CompuGroup Medical AG Apparatus for encrypting data
US8725788B2 (en) * 2011-05-27 2014-05-13 Adobe Systems Incorporated System and method for decryption of content including partial-block discard
US8687809B2 (en) * 2011-05-27 2014-04-01 Adobe Systems Incorporated System and method for decryption of content including disconnected encryption chains
EP2717511A1 (en) * 2012-10-05 2014-04-09 Nagravision S.A. Method and device for digital data blocks encryption and decryption
CA2907304A1 (en) * 2013-03-15 2014-09-18 Videri Inc. Systems and methods for distributing, viewing, and controlling digital art and imaging
US9137011B2 (en) 2013-05-07 2015-09-15 Empire Technology Development Llc Rapid data encryption and decryption for secure communication over open channels with plausible deniability
CN107547918A (en) * 2016-06-28 2018-01-05 中兴通讯股份有限公司 Safely playing method, device and system of internet protocol television channel
US6986045B2 (en) * 2001-08-17 2006-01-10 Pitney Bowes Inc. Single algorithm cipher suite for messaging
US20040228401A1 (en) 2003-05-12 2004-11-18 Chen Sherman (Xuemin) Method and system for protecting image data in frame buffers of video compression systems
WO2005064836A1 (en) * 2003-12-22 2005-07-14 America Online, Inc A system and method for using a streaming protocol
EP1610490A1 (en) * 2004-06-21 2005-12-28 France Telecom Method and apparatus for data encryption or decryption
WO2006086554A3 (en) 2005-02-09 2007-03-01 Shekhar Ambe Methods and systems for incremental crypto processing of fragmented packets
CN102238003B (en) * 2011-03-17 2015-11-04 中国电力科学研究院 A method of generating a root key
CN103988513B (en) * 2011-11-22 2017-07-28 纳格拉影像股份有限公司 SUMMARY A method for descrambling a digital transport stream packet, an encryption system, and the security module
US8345713B2 (en) 2013-01-01 grant
EP2076985A4 (en) 2011-02-23 application
WO2008052141A3 (en) 2008-08-28 application
EP2076985A2 (en) 2009-07-08 application
WO2008052141A2 (en) 2008-05-02 application
US20080101414A1 (en) 2008-05-01 application
US20100284537A1 (en) 2010-11-11 Method for efficiently decoding a number of data channels
WO2000056068A1 (en) 2000-09-21 A global copy protection system for digital home networks
WO2001065762A2 (en) 2001-09-07 Conditional access system and method for prevention of replay attacks
Ref document number: 1135809
2014-01-29 C12 Rejection of a patent application after its publication