+

CN105681033A - Out-of-order encryption device for multivariable quadratic equation - Google Patents

Out-of-order encryption device for multivariable quadratic equation Download PDF

Info

Publication number
CN105681033A
CN105681033A CN201610053768.4A CN201610053768A CN105681033A CN 105681033 A CN105681033 A CN 105681033A CN 201610053768 A CN201610053768 A CN 201610053768A CN 105681033 A CN105681033 A CN 105681033A
Authority
CN
China
Prior art keywords
monomial
quadratic equation
subscript
multivariate quadratic
encryption device
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.)
Granted
Application number
CN201610053768.4A
Other languages
Chinese (zh)
Other versions
CN105681033B (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.)
Guangdong Polytechnic Normal University
Original Assignee
Guangdong Polytechnic Normal University
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 Guangdong Polytechnic Normal University filed Critical Guangdong Polytechnic Normal University
Priority to CN201610053768.4A priority Critical patent/CN105681033B/en
Publication of CN105681033A publication Critical patent/CN105681033A/en
Application granted granted Critical
Publication of CN105681033B publication Critical patent/CN105681033B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0822Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using key encryption key
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses an out-of-order encryption device for a multivariable quadratic equation. The out-of-order encryption device comprises a monomial subscript generator, used for generating n(n+1)/2 monomial subscripts (i, j) out of order when computing each multivariable quadratic equation, wherein the i is greater than or equal to 1, the j is greater than or equal to i, and the n is greater than or equal to j; a monomial multiplying unit, used for sequentially computing n monomials aijxixj of the multivariable quadratic equations according to the generation sequence of the monomial subscripts (i, j), wherein aij is plaintext, and xi is a secret key, or aij is the secrete key, and xi is the plaintext; and an accumulator, used for sequentially accumulating the n monomials aijxixj and then writing into a register to obtain ciphertext. By using the out-of-order encryption device provided by the invention, the security of the secret key can be effectively improved, and the side channel attack can be resisted.

Description

一种多变量二次方程的乱序加密装置An out-of-order encryption device for multi-variable quadratic equations

技术领域technical field

本发明涉及信息安全技术领域,尤其涉及一种多变量二次方程的乱序加密装置。The invention relates to the technical field of information security, in particular to an out-of-order encryption device for multivariable quadratic equations.

背景技术Background technique

MQ问题(MQproblem)是指在一个有限域上求解一组多变量二次方程的问题,一般来说该问题是NP困难的。MQ问题在密码学上是一个非常有研究前景的难题,大量的密码算法基于MQ问题被设计出来,主要包括多变量公钥密码算法(MPKC)、流密码算法QUAD和身份认证算法等。其中,多变量二次方程可以表示如下:The MQ problem (MQproblem) refers to the problem of solving a set of multivariable quadratic equations on a finite field. Generally speaking, the problem is NP difficult. The MQ problem is a very promising research problem in cryptography. A large number of cryptographic algorithms have been designed based on the MQ problem, including multivariate public key cryptography (MPKC), stream cipher algorithm QUAD, and identity authentication algorithms. Among them, the multivariate quadratic equation can be expressed as follows:

Q(x)=∑1≤i≤j≤nαijxixj+∑1≤i≤nβijxiQ(x)=∑ 1≤i≤j≤n α ij x i x j +∑ 1≤i≤n β ij x i

侧信道攻击(sidechannelattack简称SCA),又称旁路攻击,是一种针对加密电子设备在运行过程中的时间消耗、功率消耗或电磁辐射之类的侧信道信息泄露而对加密设备进行攻击的方法。这种攻击方法给密码设备带来了严重的威胁。Side channel attack (side channel attack referred to as SCA), also known as side channel attack, is a method of attacking encryption equipment for side channel information leakage such as time consumption, power consumption or electromagnetic radiation during the operation of encryption electronic equipment. . This attack method brings serious threats to cryptographic devices.

但是,现有技术均未考虑多变量二次方程的侧信道泄露问题。加密时,直接按照相同顺序对多个多变量二次方程中的每一个单项式进行计算,再把每个单项式的计算结果累加后暂存于寄存器中。攻击者通过对每个多变量二次方程相应寄存器存储操作的功耗进行分析,即可获得密钥或明文信息(aij或者xj的信息),进而攻破密码算法。However, none of the prior art considers the side-channel leakage problem of multivariable quadratic equations. When encrypting, each monomial in multiple multivariate quadratic equations is directly calculated in the same order, and then the calculation results of each monomial are accumulated and temporarily stored in the register. By analyzing the power consumption of the corresponding register storage operation of each multivariate quadratic equation, the attacker can obtain the key or plaintext information (a ij or x j information), and then break the cryptographic algorithm.

发明内容Contents of the invention

本发明实施例提出一种多变量二次方程的乱序加密装置,能够有效提高密钥的安全性,抵御侧行道攻击。The embodiment of the present invention proposes a multi-variable quadratic equation out-of-sequence encryption device, which can effectively improve the security of keys and resist sidewalk attacks.

本发明实施例提供一种多变量二次方程的乱序加密装置,包括:An embodiment of the present invention provides an out-of-order encryption device for multivariable quadratic equations, including:

单项式下标生成器,用于在计算每个多变量二次方程时,乱序生成n(n+1)/2个单项式下标值(i,j);1≤i≤j≤n;A monomial subscript generator, used to generate n(n+1)/2 monomial subscript values (i,j) out of order when calculating each multivariate quadratic equation; 1≤i≤j≤n;

单项式乘法器,用于按照单项式下标值(i,j)生成的顺序,依次计算所述多变量二次方程的n个单项式αijxixj;其中,αij为明文,xi为密钥,或者,αij为密钥,xi为明文;以及,A monomial multiplier, used to sequentially calculate n monomials α ij x i x j of the multivariate quadratic equation in the order in which the monomial subscript values (i, j) are generated; wherein, α ij is plaintext, and x i is key, or, α ij is the key, xi is the plaintext; and,

累加器,用于将所述n个单项式αijxixj依次累加后写入到寄存器中,获得密文。The accumulator is used for accumulating the n monomials α ij x i x j in sequence and writing them into the register to obtain the ciphertext.

进一步地,所述单项式下标生成器采用乱序生成方法生成单项式下标;所述乱序生成方法具体包括:Further, the monomial subscript generator uses an out-of-order generation method to generate a monomial subscript; the out-of-order generation method specifically includes:

S11、在计算每个多变量二次方程时,随机生成单项式下标初始值i=is,j=js;1≤is≤js≤n;S11. When calculating each multivariate quadratic equation, randomly generate the monomial subscript initial value i=i s , j=j s ; 1≤i s ≤j s ≤n;

S12、判断j是否为n,若是,则执行步骤S13,若否,则执行步骤S14;S12, judging whether j is n, if so, then execute step S13, if not, then execute step S14;

S13、判断i是否为n,若是,则执行步骤S15,若否,则执行步骤S16;S13, judging whether i is n, if so, then execute step S15, if not, then execute step S16;

S14、将j赋值为j+1,并继续执行步骤S17;S14. Assign j as j+1, and continue to execute step S17;

S15、将i和j均赋值为1,并继续执行步骤S17;S15. Assign i and j as 1, and continue to execute step S17;

S16、将i赋值为i+1,将j赋值为i+1,并继续执行步骤S17;S16. Assign i as i+1, assign j as i+1, and continue to execute step S17;

S17、判断i是否为is,且j是否为js-1,若是,则所述多变量二次方程中单项式下标值生成完毕,若否,则继续执行步骤S12。S17. Judging whether i is i s and j is j s -1, if yes, then the monomial subscript value in the multivariate quadratic equation is generated, if not, continue to step S12.

进一步地,所述累加器具体用于按照单项式αijxixj的计算顺序,依次将每个单项式αijxixj累加到寄存器中,所述寄存器中累加后的值即为密文。Further, the accumulator is specifically used to sequentially accumulate each monomial α ij x i x j into the register according to the calculation sequence of the monomial α ij x i x j , and the accumulated value in the register is the ciphertext .

进一步地,所述每个多变量二次方程相应的密文为 Q ( x ) = &Sigma; j s &le; j &le; n &alpha; i s j x i s x j + &Sigma; i s < i &le; j &le; n &alpha; i j x i x j + &Sigma; 1 &le; i &le; i s , i &le; j &le; n &alpha; i j x i x j + &Sigma; i s &le; j < j s &alpha; i s j x i s x j . Further, the ciphertext corresponding to each multivariate quadratic equation is Q ( x ) = &Sigma; j the s &le; j &le; no &alpha; i the s j x i the s x j + &Sigma; i the s < i &le; j &le; no &alpha; i j x i x j + &Sigma; 1 &le; i &le; i the s , i &le; j &le; no &alpha; i j x i x j + &Sigma; i the s &le; j < j the s &alpha; i the s j x i the s x j .

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

本发明实施例提供的多变量二次方程的乱序加密装置,能够在计算每个多变量二次方程时,采用乱序生成单项式下标值的方式来生成n(n+1)/2个单项式下标值(i,j),并按照单项式下标值(i,j)的生成顺序,依次计算n(n+1)/2个单项式αijxixj,使不同多变量二次方程中单项式的计算顺序各不相同,最后,将多变量二次方程中每个单项式累加到寄存器中,实现对密钥的加密,通过打乱各个单项式的计算顺序,使相同的密钥信息在不同时刻出现,从而抵御侧行道攻击,有效提高密钥的安全性。The out-of-order encryption device for multivariate quadratic equations provided by the embodiments of the present invention can generate n(n+1)/2 subscript values in a way of out-of-order generation of monomial subscript values when calculating each multivariate quadratic equation The monomial subscript value (i, j), and according to the generation sequence of the monomial subscript value (i, j), calculate n(n+1)/2 monomial formulas α ij x i x j sequentially, so that different multivariate quadratic The calculation order of the monomials in the equation is different. Finally, each monomial in the multivariable quadratic equation is accumulated in the register to realize the encryption of the key. By disrupting the calculation order of each monomial, the same key information can be used in the appear at different times, thereby resisting sidewalk attacks and effectively improving the security of the key.

附图说明Description of drawings

图1是本发明提供的多变量二次方程的乱序加密装置的第一个实施例的结构示意图;Fig. 1 is the structure schematic diagram of the first embodiment of the out-of-order encryption device of multivariable quadratic equation provided by the present invention;

图2是本发明提供的多变量二次方程的乱序加密装置中乱序生成方法的一个实施例的流程示意图;Fig. 2 is a schematic flow chart of an embodiment of a random order generation method in a multivariable quadratic equation random order encryption device provided by the present invention;

图3是本发明提供的多变量二次方程的乱序加密装置的第二个实施例的结构示意图。Fig. 3 is a structural schematic diagram of a second embodiment of the out-of-order encryption device for multivariable quadratic equations provided by the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参见图1,是本发明提供的多变量二次方程的乱序加密装置的一个实施例的结构示意图,包括:Referring to Fig. 1, it is a schematic structural diagram of an embodiment of an out-of-order encryption device for multivariate quadratic equations provided by the present invention, including:

单项式下标生成器1,用于在计算每个多变量二次方程时,乱序生成n(n+1)/2个单项式下标值(i,j);1≤i≤j≤n;Monomial subscript generator 1, used to generate n(n+1)/2 monomial subscript values (i, j) out of order when calculating each multivariate quadratic equation; 1≤i≤j≤n;

单项式乘法器2,用于按照单项式下标值(i,j)生成的顺序,依次计算所述多变量二次方程的n个单项式αijxixj;其中,αij为明文,xi为密钥,或者,αij为密钥,xi为明文;以及,Monomial multiplier 2, used to sequentially calculate n monomials α ij x i x j of the multivariate quadratic equation in the order in which the monomial subscript values (i, j) are generated; wherein, α ij is plaintext, x i is the key, or, α ij is the key, and xi is the plaintext; and,

累加器3,用于将所述n个单项式αijxixj依次累加后写入到寄存器中,获得密文。The accumulator 3 is used for sequentially accumulating the n monomials α ij x i x j and writing them into registers to obtain ciphertext.

需要说明的是,在有限域上计算具有r个方程的多变量二次方程组 Q 1 ( x ) = &Sigma; 1 &le; i &le; j &le; n &alpha; i j 1 x i x j + &gamma; 1 ... ... Q r ( x ) = &Sigma; 1 &le; i &le; j &le; n &alpha; i j r x i x j + &gamma; r 来实现对密钥、明文的加密。其中,若αij为明文,则xi为密钥;若αij为密钥,则xi为明文。在本实施例中,在计算多变量二次方程组中的每个多变量二次方程时,随机打乱每个多变量二次方程中的各个单项式αijxixj的计算顺序,使不同多变量二次方程中的单项式αijxixj的计算顺序各不相同。It should be noted that computing a multivariate quadratic system with r equations over a finite field Q 1 ( x ) = &Sigma; 1 &le; i &le; j &le; no &alpha; i j 1 x i x j + &gamma; 1 ... ... Q r ( x ) = &Sigma; 1 &le; i &le; j &le; no &alpha; i j r x i x j + &gamma; r To realize the encryption of the key and plaintext. Wherein, if α ij is the plaintext, then xi is the key; if α ij is the key, then xi is the plaintext. In this embodiment, when calculating each multivariate quadratic equation in the multivariate quadratic equation system, the calculation order of each monomial α ij x i x j in each multivariate quadratic equation is randomly disrupted, so that The order of computation of the monomial α ij x i x j in different multivariate quadratic equations varies.

在分别计算每个多变量二次方程时,单项式下标生成器1乱序生成n(n+1)/2个单项式下标值(i,j),即将多变量二次方程的单项式下标值重新进行排序,使每个多变量二次方程的单项式下标值的顺序各不相同。其中,n(n+1)/2个单项式下标值(i,j)涵盖多变量二次方程中的所有单项式下标值。单项式乘法器2按照每个多变量二次方程各自的单项式下标值生成顺序,计算各个单项式αijxixj。累加器3在单项式乘法器2每计算一个单项式时,将该单项式累加到寄存器中,在累加完所有单项式后,即可获得该多变量二次方程相应的密文。多变量二次方程组中的r个方程的计算结果分别相应写入到r个寄存器中。When calculating each multivariate quadratic equation separately, the monomial subscript generator 1 randomly generates n(n+1)/2 monomial subscript values (i, j), that is, the monomial subscript of the multivariate quadratic equation The values are reordered so that the order of the monomial subscript values differs for each multivariate quadratic equation. Among them, n(n+1)/2 monomial subscript values (i, j) cover all monomial subscript values in the multivariate quadratic equation. The monomial multiplier 2 calculates each monomial α ij x i x j in accordance with the generation order of the respective monomial subscript values of each multivariate quadratic equation. When the monomial multiplier 2 calculates a monomial, the accumulator 3 accumulates the monomial into the register, and after accumulating all the monomials, the ciphertext corresponding to the multivariate quadratic equation can be obtained. The calculation results of the r equations in the multivariate quadratic equation group are correspondingly written into the r registers respectively.

每个多变量二次方程中具有n(n+1)/2项单项式,单项式计算顺序打乱后,攻击者若想通过对r个寄存器的功耗分析来获取密钥或明文信息,则需要考虑A(n(n+1)/2,n(n+1)/2)=(n(n+1)/2)!种可能性来进行分析,从而难以实现对侧信道的攻击。There are n(n+1)/2 monomials in each multivariate quadratic equation. After the calculation order of the monomials is disrupted, if an attacker wants to obtain the key or plaintext information by analyzing the power consumption of r registers, he needs Consider A(n(n+1)/2,n(n+1)/2)=(n(n+1)/2)! As a result, it is difficult to realize the attack on the side channel.

需要说明的是,本发明实施例提供的多变量二次方程的乱序加密方法一般应用在智能卡中,密钥通过多变量二次方程的算法进行加密后存储到智能卡的存储器中。其中,每个多变量二次方程中各个单项式计算顺序均不相同,累加到存储器中的顺序也不相同,从而防止攻击者通过对存储器进行功耗分析而获取密钥信息。It should be noted that the multivariable quadratic equation out-of-sequence encryption method provided by the embodiment of the present invention is generally applied in a smart card, and the key is encrypted by the algorithm of the multivariable quadratic equation and then stored in the memory of the smart card. Wherein, the calculation order of each monomial in each multivariable quadratic equation is different, and the order of accumulating into the memory is also different, so as to prevent an attacker from obtaining key information by analyzing the power consumption of the memory.

进一步地,所述单项式下标生成器1采用乱序生成方法生成单项式下标。如图2所示,所述乱序生成方法具体包括:Further, the monomial subscript generator 1 generates a monomial subscript using an out-of-order generation method. As shown in Figure 2, the out-of-order generation method specifically includes:

S11、在计算每个多变量二次方程时,随机生成单项式下标初始值i=is,j=js;1≤is≤js≤n;S11. When calculating each multivariate quadratic equation, randomly generate the monomial subscript initial value i=i s , j=j s ; 1≤i s ≤j s ≤n;

S12、判断j是否为n,若是,则执行步骤S13,若否,则执行步骤S14;S12, judging whether j is n, if so, then execute step S13, if not, then execute step S14;

S13、判断i是否为n,若是,则执行步骤S15,若否,则执行步骤S16;S13, judging whether i is n, if so, then execute step S15, if not, then execute step S16;

S14、将j赋值为j+1,并继续执行步骤S17;S14. Assign j as j+1, and continue to execute step S17;

S15、将i和j均赋值为1,并继续执行步骤S17;S15. Assign i and j as 1, and continue to execute step S17;

S16、将i赋值为i+1,将j赋值为i+1,并继续执行步骤S17;S16. Assign i as i+1, assign j as i+1, and continue to execute step S17;

S17、判断i是否为is,且j是否为js-1,若是,则所述多变量二次方程中单项式下标值生成完毕,若否,则继续执行步骤S12。S17. Judging whether i is i s and j is j s -1, if yes, then the monomial subscript value in the multivariate quadratic equation is generated, if not, continue to step S12.

需要说明的是,将每个多变量二次方程中的各个单项式完全打乱来抗侧信道攻击的效果最佳。同时,为了减少计算时间和存储开销,避免耗费大量的资源,采用仅打乱每个多变量二次方程中的初始计算顺序,使每个多变量二次方程从不同的初始单项式开始计算,之后仍按顺序计算即可。例如,单项式下标生成器1给第一个多变量二次方程随机生成单项式初始下标值(2,3),则第一个多变量二次方程从单项式α2x32x3开始按顺序计算到单项式αnxnnxn,接着再从单项式α1x11x1计算到单项式α2x22x2;给第二个多变量二次方程随机生成单项式初始下标值(6,9),则第一个多变量二次方程从单项式α69x6x9开始按顺序计算到单项式αnxnnxn,接着再从单项式α1x11x1计算到单项式α68x6x8等。这种乱序生成方法使得密钥、明文的在不同多变量二次方程中的相同操作隐藏在不同的时钟周期内,无法通过存储器的功耗曲线特征而观察得到,而且简单高效,有利于软硬件高效实现。It should be noted that the effect of resisting side-channel attacks is best by completely disrupting each monomial in each multivariate quadratic equation. At the same time, in order to reduce calculation time and storage overhead and avoid consuming a large amount of resources, only the initial calculation order in each multivariate quadratic equation is disrupted, so that each multivariate quadratic equation is calculated from a different initial monomial, and then It can still be calculated in order. For example, the monomial subscript generator 1 randomly generates the monomial initial subscript value (2,3) for the first multivariate quadratic equation, then the first multivariate quadratic equation starts from the monomial α 2 x 32 x 3 in order Calculate to the monomial α n x nn x n , then calculate from the monomial α 1 x 11 x 1 to the monomial α 2 x 22 x 2 ; randomly generate the initial subscript value of the monomial for the second multivariate quadratic equation (6,9 ), then the first multivariate quadratic equation is calculated sequentially from the monomial α 69 x 6 x 9 to the monomial α n x nn x n , and then from the monomial α 1 x 11 x 1 to the monomial α 68 x 6 x 8 etc. This out-of-order generation method makes the same operation of the key and plaintext in different multivariate quadratic equations hidden in different clock cycles, which cannot be observed through the characteristics of the power consumption curve of the memory, and is simple and efficient, which is beneficial to software Hardware efficient implementation.

进一步地,所述累加器3具体用于按照单项式αijxixj的计算顺序,依次将每个单项式αijxixj累加到寄存器中,所述寄存器中累加后的值即为密文。Further, the accumulator 3 is specifically used to sequentially accumulate each monomial α ij x i x j into the register according to the calculation order of the monomial α ij x i x j , and the accumulated value in the register is the encrypted arts.

在计算每个多变量二次方程时,按照单项式αijxixj的计算顺序,每计算一个单项式αijxixj,则将该单项式累加到寄存器中。其中,不同的多变量二次方程中的单项式存储在不同的寄存器中。When calculating each multivariate quadratic equation, according to the calculation order of the monomial α ij x i x j , each time a monomial α ij x i x j is calculated, the monomial is accumulated into the register. Wherein, monomials in different multivariable quadratic equations are stored in different registers.

进一步地,所述每个多变量二次方程相应的密文为 Q ( x ) = &Sigma; j s &le; j &le; n &alpha; i s j x i s x j + &Sigma; i s < i &le; j &le; n &alpha; i j x i x j + &Sigma; 1 &le; i &le; i s , i &le; j &le; n &alpha; i j x i x j + &Sigma; i s &le; j < j s &alpha; i s j x i s x j . Further, the ciphertext corresponding to each multivariate quadratic equation is Q ( x ) = &Sigma; j the s &le; j &le; no &alpha; i the s j x i the s x j + &Sigma; i the s < i &le; j &le; no &alpha; i j x i x j + &Sigma; 1 &le; i &le; i the s , i &le; j &le; no &alpha; i j x i x j + &Sigma; i the s &le; j < j the s &alpha; i the s j x i the s x j .

其中,每个多变量二次方程随机生成不同的单项式下标初始值(is,js),然后各自按照上述公式进行计算,获得密文。Among them, each multivariate quadratic equation randomly generates different monomial subscript initial values (i s , j s ), and then each calculates according to the above formula to obtain the ciphertext.

参见图3,是本发明提供的多变量二次方程的乱序加密装置的第二个实施例的结构示意图,包括乱序下标控制器31、多项式变量寄存器32、乘法器33、乘法器34、加法器35、寄存器36和判断器37。其中,多项式变量寄存器32中存储的值可以为密钥,也可以为明文。本发明实施例提供的多变量二次方程的加密装置用于实现多变量二次方程组的加密,其中,多变量二次方程组具有r个多变量二次方程。在计算每个多变量二次方程时,乱序下标控制器31随机生成单项式下标值i和j,其中,随机生成的初始的单项式下标值为is和js。多项式变量寄存器32根据乱序下标控制器31生成的单项式下标值,输出变量xi和xj。乘法器33接收变量xi和xj并将其相乘后输出,乘法器34将乘法器33输出的值与系数αij相乘后输出,获得单项式,再将单项式通过加法器35累加到寄存器36中。判断器37在寄存器36中累加了下标为(i,j)的单项式后判断该单项式的下标是否(is,js-1),若否,则判定为0,将寄存器36中的值与下一个单项式累加后写入到寄存器36中;若否,则判定为1,输出寄存器36中的值,即为密文。Referring to FIG. 3 , it is a schematic structural diagram of a second embodiment of the out-of-order encryption device for multivariable quadratic equations provided by the present invention, including out-of-order subscript controller 31, polynomial variable register 32, multiplier 33, and multiplier 34 , adder 35, register 36 and judger 37. Wherein, the value stored in the polynomial variable register 32 may be a key or plain text. The device for encrypting multivariate quadratic equations provided by the embodiment of the present invention is used to implement encryption of multivariate quadratic equations, wherein the multivariate quadratic equations have r multivariate quadratic equations. When calculating each multivariate quadratic equation, the out-of-sequence subscript controller 31 randomly generates monomial subscript values i and j, wherein the randomly generated initial monomial subscript values are i s and j s . The polynomial variable register 32 outputs variables x i and x j according to the monomial index values generated by the out-of-sequence index controller 31 . The multiplier 33 receives the variables x i and x j and multiplies them to output, and the multiplier 34 multiplies the value output by the multiplier 33 with the coefficient α ij and outputs it to obtain the monomial, and then the monomial is accumulated to the register by the adder 35 36 in. Determiner 37 judges whether the subscript of this monomial is (i s , j s -1) after accumulating subscript is (i, j) monomial in register 36, if not, then judges as 0, and will be in register 36 The value and the next monomial are accumulated and written into the register 36; if not, the judgment is 1, and the value in the output register 36 is the ciphertext.

本发明实施例提供的多变量二次方程的乱序加密装置,能够在计算每个多变量二次方程时,采用乱序生成单项式下标值的方式来生成n(n+1)/2个单项式下标值(i,j),并按照单项式下标值(i,j)的生成顺序,依次计算n(n+1)/2个单项式αijxixj,使不同多变量二次方程中单项式的计算顺序各不相同,最后,将多变量二次方程中每个单项式累加到寄存器中,实现对密钥的加密,通过打乱各个单项式的计算顺序,使相同的密钥信息在不同时刻出现,从而抵御侧行道攻击,有效提高密钥的安全性。The out-of-order encryption device for multivariate quadratic equations provided by the embodiments of the present invention can generate n(n+1)/2 subscript values in a way of out-of-order generation of monomial subscript values when calculating each multivariate quadratic equation The monomial subscript value (i, j), and according to the generation sequence of the monomial subscript value (i, j), calculate n(n+1)/2 monomial formulas α ij x i x j sequentially, so that different multivariate quadratic The calculation order of the monomials in the equation is different. Finally, each monomial in the multivariable quadratic equation is accumulated in the register to realize the encryption of the key. By disrupting the calculation order of each monomial, the same key information can be used in the appear at different times, thereby resisting sidewalk attacks and effectively improving the security of the key.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above description is a preferred embodiment of the present invention, and it should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications are also considered Be the protection scope of the present invention.

Claims (4)

1. the random sequence encryption device of a multivariate quadratic equation, it is characterised in that, comprising:
Monomial subscript maker, for when calculating each multivariate quadratic equation, random sequence generates n (n+1)/2 monomial subscript value (i, j); 1≤i≤j≤n;
Monomial multiplier, for the order generated according to monomial subscript value (i, j), calculates n monomial α of described multivariate quadratic equation successivelyijxixj; Wherein, αijFor plaintext, xiFor key, or, αijFor key, xiFor expressly; And,
Totalizer, for by described n monomial αijxixjIt is written in register after adding up successively, obtains ciphertext.
2. the random sequence encryption device of multivariate quadratic equation as claimed in claim 1, it is characterised in that, described monomial subscript maker adopts random sequence generation method to generate monomial subscript; Described random sequence generation method specifically comprises:
S11, calculate each multivariate quadratic equation time, stochastic generation monomial subscript initial value i=is, j=js; 1≤is≤js≤ n;
S12, whether be n, if then performing step S13, if not, then perform step S14 if judging j;
S13, whether be n, if then performing step S15, if not, then perform step S16 if judging i;
S14, it is j+1 by j assignment, and continues to perform step S17;
S15, it is 1 by equal for i and j assignment, and continues to perform step S17;
S16, it is i+1 by i assignment, it is i+1 by j assignment, and continue to perform step S17;
Whether S17, to judge i be is, and whether j be js-1, if then in described multivariate quadratic equation, monomial subscript value generates complete, if not, then continue to perform step S12.
3. the random sequence encryption device of multivariate quadratic equation as claimed in claim 1, it is characterised in that, described totalizer is specifically for according to monomial αijxixjCalculating order, successively by each monomial αijxixjBeing added in register, the value after cumulative in described register is ciphertext.
4. the random sequence encryption device of multivariate quadratic equation as claimed in claim 2, it is characterised in that, the described corresponding ciphertext of each multivariate quadratic equation is Q ( x ) = &Sigma; j s &le; j &le; n &alpha; i s j x i s x j + &Sigma; i s < i &le; j &le; n &alpha; i j x i x j + &Sigma; 1 &le; i &le; i s , i &le; j &le; n &alpha; i j x i x j + &Sigma; i s &le; j < j s &alpha; i s j x i s x j .
CN201610053768.4A 2016-01-26 2016-01-26 An Out-of-Order Encryption Device for Multivariable Quadratic Equations Expired - Fee Related CN105681033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610053768.4A CN105681033B (en) 2016-01-26 2016-01-26 An Out-of-Order Encryption Device for Multivariable Quadratic Equations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610053768.4A CN105681033B (en) 2016-01-26 2016-01-26 An Out-of-Order Encryption Device for Multivariable Quadratic Equations

Publications (2)

Publication Number Publication Date
CN105681033A true CN105681033A (en) 2016-06-15
CN105681033B CN105681033B (en) 2019-02-05

Family

ID=56304356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610053768.4A Expired - Fee Related CN105681033B (en) 2016-01-26 2016-01-26 An Out-of-Order Encryption Device for Multivariable Quadratic Equations

Country Status (1)

Country Link
CN (1) CN105681033B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039590A (en) * 2017-06-09 2018-12-18 深圳九磊科技有限公司 Memory, electronic equipment and its encipher-decipher method for preventing side-channel attack
CN110299991A (en) * 2019-05-27 2019-10-01 广东技术师范大学 The QUAD stream cipher generating means of preventing side-channel attack
CN110299990A (en) * 2019-05-27 2019-10-01 广东技术师范大学 In conjunction with out-of-order and mask QUAD stream cipher generating means
CN110299986A (en) * 2019-05-27 2019-10-01 广东技术师范大学 Multivariate quadratic equation encryption method and device based on RSA random ordering

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7557941B2 (en) * 2004-05-27 2009-07-07 Silverbrook Research Pty Ltd Use of variant and base keys with three or more entities
CN101834724A (en) * 2010-04-27 2010-09-15 武汉大学 A public key authentication encryption method and digital signature method
CN102006169A (en) * 2010-11-11 2011-04-06 西安理工大学 Ring signature method for anonymizing information based on secondary multivariate problem in finite field
CN103200001A (en) * 2013-03-27 2013-07-10 武汉大学 Multivariate public key encryption method
US20150280906A1 (en) * 2014-03-27 2015-10-01 Samsung Israel Research Corporation Algebraic manipulation detection codes from algebraic curves

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7557941B2 (en) * 2004-05-27 2009-07-07 Silverbrook Research Pty Ltd Use of variant and base keys with three or more entities
CN101834724A (en) * 2010-04-27 2010-09-15 武汉大学 A public key authentication encryption method and digital signature method
CN102006169A (en) * 2010-11-11 2011-04-06 西安理工大学 Ring signature method for anonymizing information based on secondary multivariate problem in finite field
CN103200001A (en) * 2013-03-27 2013-07-10 武汉大学 Multivariate public key encryption method
US20150280906A1 (en) * 2014-03-27 2015-10-01 Samsung Israel Research Corporation Algebraic manipulation detection codes from algebraic curves

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王后珍: "扩展MQ密码体制的构造理论研究", 《中国博士学位论文全文数据库 信息科技辑(2011)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039590A (en) * 2017-06-09 2018-12-18 深圳九磊科技有限公司 Memory, electronic equipment and its encipher-decipher method for preventing side-channel attack
CN110299991A (en) * 2019-05-27 2019-10-01 广东技术师范大学 The QUAD stream cipher generating means of preventing side-channel attack
CN110299990A (en) * 2019-05-27 2019-10-01 广东技术师范大学 In conjunction with out-of-order and mask QUAD stream cipher generating means
CN110299986A (en) * 2019-05-27 2019-10-01 广东技术师范大学 Multivariate quadratic equation encryption method and device based on RSA random ordering
CN110299990B (en) * 2019-05-27 2021-11-02 广东技术师范大学 QUAD stream cipher generation device combining out-of-order and mask
CN110299991B (en) * 2019-05-27 2022-01-11 广东技术师范大学 QUAD stream cipher generating device for resisting side channel attack

Also Published As

Publication number Publication date
CN105681033B (en) 2019-02-05

Similar Documents

Publication Publication Date Title
KR100720726B1 (en) Security maintenance system using RSA algorithm and method
Park et al. Side-channel attacks on post-quantum signature schemes based on multivariate quadratic equations:-rainbow and uov
JP4086503B2 (en) Cryptographic operation apparatus and method, and program
US20150333906A1 (en) System and method for generating and protecting cryptographic keys
US11418334B2 (en) Protecting modular inversion operation from external monitoring attacks
Zheng et al. First-order collision attack on protected NTRU cryptosystem
CN105681033A (en) Out-of-order encryption device for multivariable quadratic equation
KR101601684B1 (en) Method for implementing symmetric key encryption algorithm against power analysis attacks
Roy et al. Point generation and base point selection in ECC: An overview
Liang et al. Design of a masked S-box for SM4 based on composite field
CN110299986B (en) Multivariate quadratic equation encryption method and device based on RSA disorder
Fanfara et al. Usage of asymmetric encryption algorithms to enhance the security of sensitive data in secure communication
CN105610571A (en) Chaos sequence encryption method for multi-variable quadratic equation
Mukherjee et al. A counter measure to prevent timing-based side-channel attack on FPGA
KR20100059571A (en) Apparatus and method for operating inversion of aes with masking method, and aes cipher system and method using thereof
Kamoun et al. Experimental Implementation of 2ODPA attacks on AES design with flash-based FPGA Technology
CN110299992B (en) Out-of-order encryption method and device of multivariable quadratic equation based on sliding window
CN105743644A (en) Mask encryption device of multivariable quadratic equation
KR101112570B1 (en) Apparatus and Method for digital signature immune to power analysis and fault attacks, and Recording medium thereof
CN105721150B (en) A kind of mask encryption method of multivariate quadratic equation
Leadbitter et al. Attacking DSA under a repeated bits assumption
KR102067065B1 (en) A matrix-vector multiplication apparatus based on message randomization which is safe for power analysis and electromagnetic analysis, and an encryption apparatus and method using the same
Mahanta et al. Comparative modular exponentiation with randomized exponent to resist power analysis attacks
CN110299991B (en) QUAD stream cipher generating device for resisting side channel attack
Somsuk A new modified integer factorization algorithm using integer modulo 20's technique

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510000 No. 293 Shipai Zhongshan Avenue, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: Guangdong Normal University of Technology

Address before: 510665 293 Zhongshan Avenue, Tianhe District, Guangzhou, Guangdong.

Patentee before: Guangdong Technical Normal College

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190205

Termination date: 20210126

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载