Next Article in Journal
Effect of Cobalt Catalyst Confinement in Carbon Nanotubes Support on Fischer-Tropsch Synthesis Performance
Next Article in Special Issue
A Computational Approach to Verbal Width for Engel Words in Alternating Groups
Previous Article in Journal
Image Enhancement for Inspection of Cable Images Based on Retinex Theory and Fuzzy Enhancement Method in Wavelet Domain
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

MPF Problem over Modified Medial Semigroup Is NP-Complete

by
Eligijus Sakalauskas
and
Aleksejus Mihalkovich
*
Department of Applied Mathematics, Kaunas University of Technology, LT-44249 Kaunas, Lithuania
*
Author to whom correspondence should be addressed.
Current address: Studentu str. 50-324.
Symmetry 2018, 10(11), 571; https://doi.org/10.3390/sym10110571
Submission received: 21 September 2018 / Revised: 16 October 2018 / Accepted: 22 October 2018 / Published: 1 November 2018
(This article belongs to the Special Issue Interactions between Group Theory, Symmetry and Cryptology)

Abstract

:
This paper is a continuation of our previous publication of enhanced matrix power function (MPF) as a conjectured one-way function. We are considering a problem introduced in our previous paper and prove that tis problem is NP-Complete. The proof is based on the dual interpretation of well known multivariate quadratic (MQ) problem defined over the binary field as a system of MQ equations, and as a general satisfiability (GSAT) problem. Due to this interpretation the necessary constraints to MPF function for cryptographic protocols construction can be added to initial GSAT problem. Then it is proved that obtained GSAT problem is NP-Complete using Schaefer dichotomy theorem. Referencing to this result, GSAT problem by polynomial-time reduction is reduced to the sub-problem of enhanced MPF, hence the latter is NP-Complete as well.

1. Introduction

It is very natural to look for a new conjectured one-way functions (OWFs) for cryptographic applications in connection with new challenges caused by quantum cryptanalysis. This paper is a continuation of research in this field and is dealing with so called matrix power function (MPF). Some cryptographic primitives were built on the basis that MPF is a conjectured OWF in [1,2,3,4,5]. Furthermore, some results were published considering the security of presented primitives in [6,7,8]. The security of these primitives is based on the complexity of MPF inversion named as MPF problem.
So far, it is thought that OWF security based on the NP-Complete problem is not vulnerable to the quantum cryptanalysis, while the cryptosystems based on conjectured OWFs such as factoring and discrete logarithm problems are vulnerable due to [9]. Therefore, it is very desirable to try to prove NP-Completeness of MPF problem. In [6] the NP-Completeness of a more general problem named as multivariate quadratic power problem is presented. However, the question of NP-Completeness of MPF problem remained open so far.
In [10] our efforts were directed toward the increasing expectable complexity of MPF problem by choosing more complicated algebraic structures for MPF definition but at the same time preserving the necessary properties for the cryptographic primitives construction. In that paper, we presented a key agreement protocol in Section 2, Construction 1 as well as an example of its realization with artificially small parameters in Section 6.
In this paper we present a proof of NP-Completeness of sub-problem of enhanced MPF problem previously considered in [10]. The notion of sub-problem is defined as follows:
Definition 1.
The decision problem P 1 is a sub-problem of problem P 2 if every assignment to input values, which provides the answer YES to problem P 2 , also implies the answer YES to the problem P 1 .
The proof is based on the duality of multivariate quadratic MQ problem interpretation as a system of MQ equations over Z 2 = { 0 , 1 } [11,12] and according to Schaefer dichotomy theorem [13] as a general satisfiability (GSAT) problem.
The main benefit of such approach is the opportunity to include some constraints to MPF necessary to construct cryptographic primitives as an additional GSAT equations.
The proof is based on proving that this GSAT is NP-Complete and on polynomial-time reduction from GSAT to the sub-problem of enhanced MPF problem.

2. Matrix Power Function

MPF was first introduced in [4]. To be self-contained, we present here MPF in the following way:
Definition 2.
Symbolically MPF corresponds to matrix W m × m = w i j powered by matrix X m × m = x i j on the left and by matrix Y m × m = y i j on the right with MPF value equal to matrix E m × m = e i j and is expressed in the following way
X W Y = E , e i j = k = 1 m l = 1 m w k l x i k · y l j .
The matrix W that is powered is named the base matrix and the matrices X and Y that are powering the base matrix are named power matrices. In general, we define the base matrix over the multiplicative (semi)group S and power matrices over some numerical (semi)ring R . We call semigroup S a platform (semi)group, which according to the MPF definition, is multiplicative, and R –an exponent (semi)ring. The appropriate matrix semigroups M S and matrix semiring M R contain base matrices and power matrices respectively.
The exact MPF definition depends on the type of sets over which matrices are defined.
In [3] authors proved, that if platform semigroup and power semiring are commutative, then the following associative properties of MPF takes place:
Definition 3.
MPF is one-side associative, (left-side and right-side associative, respectively) if the following identities hold:
Y X W = Y X W = Y X W ; W X Y = W X Y = W X Y .
Definition 4.
MPF is two-side associative if the following identities hold:
X W Y = X W Y = X W Y .
In [3] authors proved, that if platform semigroup S and power semiring R are commutative, then MPF S R is one and two-side associative.
It follows from Equation (1), that in general, MPF is a function
MPF : M R × M S × M R M S .
Definition 5.
The direct MPF value computation is to find matrix E, when matrices X , W , Y are given.
Definition 6.
The inverse MPF value computation is to find matrices X and Y, when matrices W and E are given.
Definition 7.
MPF problem is its inverse value computation.
Definition 8.
MPF presented in 1 is a candidate one-way function (OWF) if the following necessary (but not sufficient) conditions are satisfied:
1. 
The direct MPF value computation is easy;
2. 
The MPF problem is polynomially equivalent to a certain hard problem with not known polynomial time algorithm.
Assume, that the base matrix W in Expression 1 is defined over a platform semigroup denoted by S and the power matrices X and Y are defined over a power semiring denoted by R . We denote the MPF problem defined by these structures by MPF S R . Assume, that power matrices X and Y have to satisfy some constrains denoted by C . In this case we denote the MPF problem by MPF S R , C .
To build cryptographic primitives, e.g., key agreement protocol, based on MPF S R the following additional property must be satisfied: square matrices of m-th order X and Y defined over the power semiring R must be elements of two subsets M R , 1 and M R , 2 of commuting matrices in M R respectively, i.e., for any U M R , 1 and V M R , 1 the following identities take place
C : X U = U X ; Y V = V Y . .
This defines a constrained MPF that we previously denoted by MPF S R , C . Further we will use the single subset of commuting matrices in M R , namely the subset of circulant matrices i.e., matrices of the following general form [14]:
X = x 1 x m x 2 x 2 x 1 x m x 3 x 2 x 1 x m x m x 3 x 2 x 1 .
Any circulant matrix X can be represented by its column vector x , which transposed form is expressed by the following row vector x T = ( x 1 , x 2 , , x m ) . If MPF S R , C satisfies the conditions of Definition 8, then the following secret-key agreement protocol can be executed as proposed in [10]:
Both parties agree on a public information: the modified medial semigroup S and a public base matrix W with its entries randomly chosen from S . Alice and Bob can agree on a common key as follows:
  • Alice chooses two secret circulant matrices X and Y at random of size m. Using these matrices she computes the MPF value A = X W Y and sends it to Bob;
  • Bob chooses two secret circulant matrices U and V at random of size m. Using these matrices he computes the MPF value B = U W V and sends it to Alice;
  • Alice and Bob compute the same secret key in the following way:
    K A = X B Y = X U W V Y = U X W Y V = K B = K .
The Identity (6) is true due to the fact, that circulant matrices are commuting and associativity Conditions (2) and (3).
Remark 1.
In general two-sided association Condition (3) will be not necessary, if we agree upon on the order of operations, e.g., from the left to the right.
In our previous research the base matrix W was defined over the multiplicative platform group Z p * = { 1 , 2 , . . . , p 1 } and power matrices X and Y over the numerical power ring Z p 1 = { 0 , 1 , 2 , . . . , p 2 } . This kind of MPF is denoted by MPF Z p * Z p 1 and constrained version by MPF Z p * Z p 1 , C . It represents the MPF defined over commutative algebraic structures considered in [1,2,5,7,15].
However, recently a linear algebra attack to the protocol presented in [3] based on MPF Z p * Z p 1 , C was found by [16]. This attack to MPF Z p * Z p 1 , C problem runs in polynomial time and hence can be used to break the algorithms presented in [1,3]. The authors of [16] also suggested some improvements of our protocols to resist the proposed attack. In [7] we fixed this flaw for the asymmetric encryption protocol, presented in [1].
The intriguing idea was to extend MPF construction to non-commutative algebraic structures, namely S and R , hence expecting higher complexity of MPF problem and achieving a higher potential security for the construction of cryptographic primitives. The main problem of this approach was the loss of associativity of MPF, which made its application in cryptography impossible.
This approach was successful and is presented in [10], when platform semigroup S is a modified medial semigroup and power semiring is a special kind of so called near semiring N S R . In this study as a power semiring we use a semiring of non-negative integers denoted by N 0 = { 0 , 1 , 2 , 3 , . . . } . So we deal with the MPF denoted by MPF S N 0 . If power matrices satisfies commutation Constraints in (4), then we denote corresponding MPF by MPF S N 0 , C .
In this paper we consider a class of MPF S N 0 , C problems when power matrices are circulant matrices over the N 0 and hence they are commuting and satisfying Conditions (4). Interestingly enough, matrices X and Y are almost never invertible due to the fact, that both fractions and negative numbers are not contained in N 0 . This is essential to our proof of NP-Completeness of the MPF S N 0 , C problem.
In earlier work, the proof that random generated multivariate quadratic power problem over Z n is NP-Complete is presented. This proof is insufficient to prove the NP-Completeness of MPF S N 0 , C problem due to fact that we are considering a partial case of this problem. Our multivariate quadratic power system of equations is predetermined by the matrix power equations. Hence this special case is not random generated. Therefore, the aim of this paper is to fill this gap.
In general, it is hard to prove that a problem with arbitrary constraints is NP-Complete (NP-Hard). We present here an approach to prove it based on Schaefer dichotomy theorem [13]. This theorem is formulated for the GSAT problem, represented by arbitrary finite set of Boolean relations (formulas) with respect to the finite set of Boolean variables. The theorem defines six criteria when either GSAT is in P or in NP-Complete complexity class.
In this paper, we construct a certain sub-problem of GSAT problem which is a one-to-one mapping of certain sub-problem of MPF S N 0 , C problem. We show, that this GSAT problem satisfies the Schaefer criteria to be NP-Complete. Hence, using polynomial-time reduction, we will prove that decision version of MPF S N 0 , C problem is also NP-Complete.
We revise the definition and basic properties of modified medial semigroup in the next section and present the main result in Section 4.

3. Modified Medial Semigroup as Platform Semigroup of MPF

Let us consider medial semigroup S M , which was previously introduced by [17]. Assume, that the presentation of this semigroup consists of two generators a and b and a relation R M written in the following way:
S M = a , b | R M ;
R M : ω 1 a b ω 2 = ω 1 b a ω 2 .
where ω 1 and ω 2 are arbitrary non-empty words in S M , written in terms of generators a and b.
Let us now present an important identity, which is useful to us for application of medial semigroup S M to MPF:
ω 1 ω 2 e = ω 1 e ω 2 e .
This identity is based on the Relation (8) and is valid for all words ω 1 , ω 2 S M and any exponent e N 0 .
To prevent the growth of powers of generators when exponentiation takes place we introduce a modified medial semigroup S with two extra relations R 1 and R 2 in the following general form:
R 1 : b a p + 2 b p + 1 = b a 2 b ; R 2 : a b p + 2 b p + 1 = a b 2 a .
Thus, modified medial semigroup S has the following presentation:
S = a , b | R M , R 1 , R 2 ,
with relations R M , R 1 and R 2 defined above.
Note, that we define S as a multiplicative, non-commuting, non-cancellative and infinite semigroup which is a non-symmetric algebraic structure.
Remark 2.
The modified medial semigroup is well defined if relations R 1 and R 2 are symmetric, i.e., they link both generators in such a way, that the order of generators is symmetric and exponents of each generator add up to the same number. In our case the sum of exponents of generators a and b on the left side of R 1 and R 2 in Realtions (10) equals p + 2 and on the right side it equals 2.
Remark 3.
In our previous paper we considered a special case of p = 3 .
Semigroups S M and S are made monoids by introducing an empty word as a multiplicatively neutral element, denoted by 1. Then conveniently, the following identities hold for all ω S M :
ω 1 = 1 ω = ω , w 0 = 1 , 0 N 0 .
The normal form for the words in S M was also defined in the following way:
Definition 9.
The normal form ω M , n f of any word ω 0 in semigroup S M is expressed as follows:
ω M , n f = max α a , β b b β b a r a b s b a α a = b β a i a b j b a α ,
where α , β { 0 , 1 } and α a , β b , r a , s b , i a , j b N .
To obtain the normal form for the word ω we consider its first and last literals. Using Relation (9) we can determine the values of α and β . For example the normal form for the word b 7 a 8 b 2 a 6 is b a 13 b 8 a . The word b 6 a 7 b 3 a 7 has the same normal form and hence we consider all these words equivalent. The normal form for the word a 7 b 8 a 2 b 6 is b 0 a 9 b 14 a 0 . Hence in the last case we have α = 0 and β = 0 . Evidently for the normal form of the word a 5 b 7 a 3 we have α = 1 and β = 0 whereas in case of the word b 5 a 7 b 3 we have α = 0 and β = 1 . In fact, the normal forms for the presented words are b 0 a 7 b 7 a and b a 7 b 7 a 0 respectively. We generally omit zeroth powers when writing normal forms.
On the base of ω M , n f the normal form in S is defined as follows:
Definition 10.
The normal form ω n f of any word ω 0 in semigroup S is expressed by the following expression:
ω n f = min i a , j b max β , α b β a i a b j b a α .
Let T be an additive non-commuting semigroup consisting of the tuples β , i , j , α , where α , β 0 , 1 N 0 and i , j N 0 , with the following addition operation:
β 1 , i 1 , j 1 , α 1 + β 2 , i 2 , j 2 , α 2 =
= β 1 , i 1 + α 1 + i 2 , j 1 + β 2 + j 2 , α 2 ,
then there is an isomorphism φ : S M , n f T , which can be expressed by the following relation for any word ω n f
φ ( ω n f ) = φ ( b β a i b j a α ) = ( β , i , j , α ) .
Hence, using our notation, we defined MPF S N 0 , where S is modified medial semigroup. It is important to note, that MPF S N 0 satisfies associativity conditions in Definitions (2) and (3) due to the properties of medial semigroup.
Adding the commutation Constraints (4) to the power matrices X and Y defined over N 0 , constrained MPF S N 0 problem we denoted by MPF S N 0 , C .
In the next section we prove, that MPF S N 0 , C problem is NP-Complete.

4. Proof of NP-Completeness

Let us consider the following binary matrix equation:
X Q Y = A ,
where all matrices Q , A , X and Y are defined over the field Z 2 = { 0 , 1 } with multiplication operation denoted by ∧ (logical AND) and addition operation by ⊕ (logical XOR). This equation corresponds to binary matrix multivariate quadratic (BMMQ) equation and associated problem to BMMQ problem.
Definition 11.
The binary matrix MQ (BMMQ) problem is to find matrices X and Y in Equation (16), when matrices Q and A are given.
Remark 4.
Throughout this paper we assume, that matrix Q is well-balanced, i.e., the quantity of 1’s is close to m 2 / 2 . Furthermore all the 1’s are distributed uniformly in the rows and columns of matrix Q.
If at least one of square matrices X or Y is invertible, then BMMQ Problem (16) is solvable in polynomial time due to one the following transformations:
X Q A Y 1 = 0 ; Q Y X 1 A = 0 ,
since XOR operation is inverse to itself.
It is clear, that both transformations represent the system of m 2 homogeneous linear equations with 2 m 2 unknown variables.
However, if both binary matrices X and Y are singular, then Transformations (17) are not possible and hence the initial Problem (16) bears a resemblance to the well known multivariate quadratic (MQ) problem. It is known, that random generated MQ problem is NP-Complete over any field [11,12].
Hence, we define the following problem:
Definition 12.
The singular binary matrix MQ problem (SBMMQ) is to solve BMMQ problem, when matrices X and Y in Equation (16) are singular.
It is important to note, that we are interested in this particular problem, since in case of MPF S N 0 , C power matrices are defined over the semiring N 0 and hence any randomly chosen power matrix is not invertible with overwhelming probability. Here and onwards we say that a random event happens with overwhelming probability if its probability of failure is negligible.
We begin from the complexity consideration of CSBMMQ problem.
Our proof is based on Schaefer dichotomy theorem [13]. Let us define a set of Boolean relations { r 1 , r 2 , , r M } with variables defined by two vectors x T = ( x 1 , x 2 , . . . , x m ) and y T = ( y 1 , y 2 , , y m ) . Then the following generalized satisfiability problem GSAT can be formulated:
r 1 ( x , y ) = 1 ; r 2 ( x , y ) = 1 ; r M ( x , y ) = 1 ,
where 1 is a true value assignment to the relations.
Definition 13.
The decision GSAT problem is to answer YES/NO to the question: are there any assignment to the variables x and y that all Boolean relations in Problem (18) are true?
Theorem 1.
(Schaefer dichotomy theorem [13]). If at least one of the following criteria is satisfied, then the satisfiability problem GSAT is in P, otherwise it is NP-Complete:
(a) 
Every relation in S is satisfied when all the variables are 0 (0-valid clause);
(b) 
Every relation in S is satisfied when all the variables are 1 (1-valid clause);
(c) 
Every relation in S is definable by a CNF formula in which each conjunct has at most one negated variable (dual Horn clause);
(d) 
Every relation in S is definable by a CNF formula in which each conjunct has at most one unnegated variable (Horn clause);
(e) 
Every relation in S is definable by a CNF formula having at most two literals in each conjunct (bijunctive clause);
(f) 
Every relation in S is the set of solutions of a system of linear equation over the two element field { 0 , 1 } (affine clause).
As it was mentioned above, to satisfy the commutation Conditions (4), matrices X and Y are chosen to be circulant. Then matrix Equation (16) can be transformed to the following system of equations:
x T Q 11 y = a 11 ; x T Q 12 y = a 12 ; x T Q m m y = a m m ,
where vectors x T and y T are row vectors of the first row and first column of matrix Q respectively, and matrices Q 11 , Q 12 , , Q m m are obtained by cyclic permutations of matrix Q. For example, Q 11 = Q and Q 12 = q 2 q 3 q m q 1 , where the vector q j denotes the j-th column of matrix Q. All matrices Q i j are obtained from the initial matrix by performing shifts of rows and/or columns.
The latter system consist of m 2 quadratic equations with 2 m variables being a components of vectors x and y . System (19) is a special type of random generated MQ problem over Z 2 defined by special type of matrices Q 11 , Q 12 , , Q m m , generated by deterministic permutations of random generated matrix Q in Equation (16). Every equation in System (19) represents a Boolean relation written in terms of logical operations AND and XOR.
To choose a suitable GSAT problem to prove NP-Completeness of the initial MPF S N 0 , C problem the set of logical Relations (18) must be supplemented by logical relations defining the singularity constraints of matrices X and Y. Since System (19) is defined over Z 2 = { 0 , 1 } , these constraints can be expressed by the following Boolean relations:
det X = 0 ; det Y = 0 ,
where 0 is a false value assignment to the relations. The actual expressions of (20) are determined by the format of matrices X and Y. Hence, here and onwards we consider square matrices of m-th order X and Y with even values of determinants.
Definition 14.
The constrained singular binary matrix MQ problem (CSBMMQ) is to solve SBMMQ problem, when matrices X and Y in Equation (16) are singular and hence satisfy Conditions (4) and (16) while also satisfying Condition (20).
Theorem 2.
Decision CSBMMQ problem is NP-Complete.
Proof. 
To prove the theorem, we use the Schaefer dichotomy theorem. System of binary Equation (19) and Relations (20) represent the system of generalized satisfiability relations in Problem (18) and corresponds to GSAT problem with M = m 2 + 2 . Then to prove NP-Completeness of CSBMMQ we need to verify inconsistency of Schaefer criteria (a)–(f).
The first two criteria (a) and (b) are not satisfied due to the fact, that we are choosing matrix Q at random and hence the satisfiability of these criteria has a negligible probability.
To verify Schaefer criteria (c)–(e) we denote three pairs of vectors satisfying Equations (19) and (20) by ( x 1 , y 1 ) , ( x 2 , y 2 ) and ( x 3 , y 3 ) . Note, that we generate circulant matrices from selected vectors to check the validity of Equation (20). Schaefer criteria (c)–(e) can be reformulated as follows [18]:
(c’)
For all pairs ( x 1 , y 1 ) and ( x 2 , y 2 ) , satisfying System (19) and Equation (20), the pair ( x 1 x 2 , y 1 y 2 ) is a solution of System (19) and Equation (20);
(d’)
For all pairs ( x 1 , y 1 ) and ( x 2 , y 2 ) , satisfying System (19) and Equation (20), the pair ( x 1 x 2 , y 1 y 2 ) is a solution of System (19) and Equation (20);
(e’)
For all pairs ( x 1 , y 1 ) , ( x 2 , y 2 ) and ( x 3 , y 3 ) , satisfying System (19) and Equation (20), the pair ( ( x 1 x 2 ) ( x 1 x 3 ) ( x 2 x 3 ) , ( y 1 y 2 ) ( y 1 y 3 ) ( y 2 y 3 ) ) is a solution of System (19) and Equation (20).
Remark 5.
All logical operations in criteria ( c )-( e ) are performed component-wise.
Then applying criterion ( c ) to the single equation in System (19) in vector form and assigning arbitrary values to the vectors ( x 1 , y 1 ) , ( x 2 , y 2 ) we obtain the corresponding values b i j satisfying the following equation in every case
( x 1 x 2 ) T Q i j ( y 1 y 2 ) = b i j .
Evidently, in most cases b i j a i j . Note, however, that for this criterion to be valid the identity b i j = a i j has to hold for all i , j = 1 , 2 , , m . Hence, dual Horn clause in System (19) is not satisfied and criterion ( c ) is inconsistent.
Analogously, verifying Horn clause we obtain
( x 1 x 2 ) T Q i j ( y 1 y 2 ) = c i j ,
where c i j a i j . Hence, Horn clause in System (19) is not satisfied for all i , j = 1 , 2 , , m and criterion ( d ) is inconsistent.
Inconsistency of criterion ( e ) follows directly from the latter three expressions. Note, that the key point which allows us to claim the desired result is Remark 5 since no distributive law can be applied to the latter two expressions.
Criterion (f) is not satisfied since, in general, relations in System (19) are non-linear.
So, CSBMMQ problem is NP-Complete. □
Remark 6.
Two additional Relations (20) are needed to ensure that matrices X and Y are singular and hence to ensure the inconsistency of Schaefer criteria.
Now we turn to constrained singular matrix multivariate quadratic (CSMMQ) problem defined over the semiring of integers N 0 which we denote by CSMMQ N 0 . This means that Equation (16) and corresponding Conditions (19) and (20) are defined over N 0 .
Theorem 3.
CSBMMQ problem is a sub-problem of CSMMQ N 0 .
Proof. 
Let us consider all matrices in Equation (16) defined over N 0 . Then they can be rewritten in the following way:
X = 2 U + X ; Y = 2 V + Y ; Q = 2 P + Q ; A = 2 T + A .
By substituting these expressions in Equation (16) we obtain the following result:
2 U + X 2 P + Q 2 V + Y = 2 T + A
and hence
X Q Y A mod 2 .
Let us consider the following decision problem: does there exist assignments to matrices X and Y defined over the semiring N 0 satisfying Equation (16), which adding commutation constraints corresponds to Relations (19), (20) and is a CSMMQ N 0 problem? Assume, that we have an answer YES to decision CSMMQ N 0 problem. Due to penultimate equation, it implies the answer YES to CSBMMQ problem.
In computational CSMMQ N 0 version its transformation to CSBMMQ requires the reduction of the solution modulo 2. This is done in polynomial time.
We proved, that CSBMMQ problem is a sub-problem of CSMMQ N 0 problem, when semiring N 0 is homomorphically mapped to the field Z 2 . □
Since Theorem 3 is valid, every solution of CSMMQ N 0 problem has to satisfy CSBMMQ problem as well. Clearly, this problem is non-trivial and was proven to be NP-Complete.
Let us consider the following system of equations
X Λ Y = B ; X Σ Y C mod 2 p .
where p is an odd prime, matrices X , Y , Σ and C are defined over the semiring of positive integers N 0 , and matrices Λ and B over the ring Z . Furthermore, the parity of matrices Λ and Σ is the same, i.e., Λ Σ = 2 T , where T M Z .
Theorem 4.
The decision CSMMQ problem, defined by System (21), is NP-Complete.
Proof. 
It is easy to assume also with overwhelming probability, that matrices X and Y defined over the N 0 are not invertible. We define the following sub-problem of Problem (21) by reducing its first equation modulo 2 p :
X Λ Y B mod 2 p ; X Σ Y C mod 2 p .
Clearly, if the answer to the initial Problem (21) is YES, then the same answer applies also to Problem (22), since to obtain the solution of the Problem (21) extra matrices T and S in the relations
X = ( 2 p ) T + X ˜ 2 p ;
Y = ( 2 p ) S + Y ˜ 2 p
have to be found. Here matrices X ˜ 2 p and Y ˜ 2 p satisfy the Problem (22).
We can rewrite the System (22) in the following way by using Chinese Remainder Theorem:
X Λ Y B mod p ; X Σ Y C mod p .
X Λ Y B mod 2 ; X Σ Y C mod 2 ;
It is important to note, that, due to Chinese Remainder Theorem, Systems (23) and (24) must be considered separately. These systems of equations provide two different and mutually independent components of solution of Problem (22). Matrices X ˜ 2 p and X ˜ 2 p satisfying System (22) are calculated as follows:
X ˜ 2 p = p X ˜ 2 + ( p + 1 ) X ˜ p ;
Y ˜ 2 p = p Y ˜ 2 + ( p + 1 ) Y ˜ p ,
where matrices X ˜ p and Y ˜ p satisfy System (23) and X ˜ 2 and Y ˜ 2 satisfy System (24).
We can assume, that solution of (23) can be found in polynomial time if at least one of matrices X or Y are invertible modulo p. However, nevertheless we cannot recover the solution of (22) from the one component ( X ˜ p , Y ˜ p ), i.e., the component ( X ˜ 2 , Y ˜ 2 ) is required. It is directly implied by the Chinese Remainder Theorem isomorphism.
Furthermore, since matrices Λ and Σ have the same parity the following congruence is valid:
Λ Σ mod 2 .
Hence we have B C mod 2 , since otherwise the answer to Problem (22) is NO. However in this case we can remove either one of equations of System (24) and hence we obtain a CSBMMQ problem. This problem was proven to be NP-Complete in Theorem 2.
We have shown, that the proof of complexity of Problem (21) relies on the complexity of CSBMMQ problem. Since CSBMMQ is NP-Complete and is a sub-problem of CSMMQ Problem (21), then the latter is also NP-Complete. □
Remark 7.
Theorem 3 is the key factor, which allows us to claim the correctness of Theorem 4. However, based on our logic presented here, we cannot claim, that the singular MMQ problem is NP-Complete over Z p , where p is prime, due to the fact that CSBMMQ problem is not a sub-problem of the latter problem.
To demonstrate the relation of CSMMQ Problem (21) to modified medial semigroup S let us define the following mappings:
λ b β a i b j a α = i + α j + β ;
σ b β a i b j a α = i + α + j + β .
Remark 8.
Obviously Mappings (25) and (26) define functions of powers i and j if we preset the values of α and β.
Remark 9.
In general we have λ ( w ) Z and σ ( w ) N 0 . Furthermore, if σ ( w ) = 0 , then w is an empty word, i.e., w = 1 .
It is clear that if we preset two exponents α , β { 0 , 1 } , then the pair λ w , σ w defines a unique element w if these elements have the same parity and satisfy inequality | λ w | < σ w . Clearly, this reduction is polynomial since for a fixed pair φ ( α 0 , β 0 ) λ , σ we have:
i = λ + σ 2 α 0 ; j = σ λ 2 β 0 .
Then the following theorem can be formulated:
Theorem 5.
The mapping λ w is an invariant of the reduction, i.e., λ w = λ w n f , and the mapping σ w is an invariant modulo 2 p of the reduction, i.e., σ w σ w n f mod 2 p , where w n f is the any word in S reduced to its normal form.
The proof of this theorem follows from the definition of the reduction and thus we omit it.
The defined mappings have the following important property:
λ w k = k λ w ;
σ w k = k σ w .
Let us assume that the entries of matrices Λ and Σ satisfy the conditions presented in Problem (21). Then the following one-to-one-mapping mapping can be defined:
φ ( α 0 , β 0 ) λ , σ = b β 0 a i b j a α 0 ,
where the values of α 0 and β 0 are fixed.
Example 1.
Assume, that λ = 3 and σ = 7 . Then we have:
φ ( 0 , 0 ) ( 3 , 7 ) = a 5 b 2 ; φ ( 0 , 1 ) ( 3 , 7 ) = a 4 b 2 a ; φ ( 1 , 0 ) ( 3 , 7 ) = b a 5 b ; φ ( 1 , 1 ) ( 3 , 7 ) = b a 4 b a .
Furthermore, if λ = 3 and σ = 7 , then:
φ ( 0 , 0 ) ( 3 , 7 ) = a 2 b 5 ; φ ( 0 , 1 ) ( 3 , 7 ) = a b 5 a ; φ ( 1 , 0 ) ( 3 , 7 ) = b a 2 b 4 ; φ ( 1 , 1 ) ( 3 , 7 ) = b a b 4 a .
However, φ ( α 0 , β 0 ) ( 3 , 6 ) and φ ( α 0 , β 0 ) ( 7 , 3 ) are undefined for any values of α 0 and β 0 .
If we apply mapping φ ( α 0 , β 0 ) to the pair of matrices ( Λ , Σ ) elementwise then we obtain a matrix W = { w i j } , where the entries w i j are defined as follows:
w i j = φ ( α 0 , β 0 ) λ i j , σ i j .
Now we introduce the following expression:
X Λ , Σ Y = X Λ Y , X Σ Y ,
and apply the mapping φ ( α 0 , β 0 ) to it. Due to Properties (28) and (29) we have:
φ ( α 0 , β 0 ) X Λ Y , X Σ Y = X W Y .
where the entries of matrix W are defined by Expression (31). Furthermore, we apply the mapping φ ( α 0 , β 0 ) to the pair of matrices ( B , C ) in Problem (21) to obtain the following matrix:
φ ( α 0 , β 0 ) B , C = D ,
where the entries of matrix D are defined by Expression (31). The two latter equations can be combined to yield MPF S N 0 , C problem, symbolically presented in Definition 1.
Theorem 6.
MPF S N 0 , C is NP-Complete.
Proof. 
Due to the properties of mappings λ w and σ w in Expressions (25)–(27), the property of bijective mapping φ ( α 0 , β 0 ) and Theorem 4, we find that CSBMMQ is a sub-problem of MPF S N 0 , C . Since, according to Theorem 2, CSBMMQ is NP-Complete, then the MPF S N 0 , C problem is NP-Complete as well. □
Remark 10.
In fact, circulant MPF problem is NP-Complete in more general case, since for matrices X and Y with no zero entries only the upper left corner and bottom right corner entries of the base matrix W play an important role. More precisely the first and the last literal of the specified entries produce fixed values α 0 and β 0 . Normal forms of other entries of the base matrix W are irrelevant.

5. Conclusions

  • The proof of NP-Completeness of author’s constructed MPF in previous Symmetry journal publication is presented. It is a new evidence, that this type of MPF can be considered for construction of a non-commuting cryptography primitive as a conjectured OWF.
  • The proof is based on two main approaches: we prove that certain GSAT is NP-Complete using modified Schaefer criteria, and, using this result, we prove that this GSAT is a sub-problem of the considered MPF problem. Hence this type of MPF problem is NP-Complete.
  • It is a new step to prove that KAP presented in our previous publication mentioned above has a provable security property.

Author Contributions

This article was supervised by E.S. who proposed the methology later improved by both authors. A.M. performed the investigation and analyzed the obtained results together with his supervisor. Both authors collected resources for the paper. A.M. wrote the paper.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MPFMatrix power function
OWFone-way function
MQ problemMultivariate quadratic problem
MMQ problemMatrix MQ problem
BMMQ problemBinary matrix MQ problem
SBMMQ problemSingular binary matrix MQ problem
CSBMMQ problemConstrained singular binary matrix MQ problem
GSAT problemGeneral satisfiability problem
NP-Commplete problemNon-deterministic polynomial complete problem
CNFConjuntive normal form

References

  1. Mihalkovich, A.; Sakalauskas, E. Asymmetric cipher based on MPF and its security parameters evaluation. In Proceedings of the Lithuanian Mathematical Society, Klaipeda, Lithuania, 11–12 June 2012; VU Matematikos ir Informatikos Institutas: Vilnius, Lithuania, 2012. Ser. A. Volume 53, pp. 72–77. [Google Scholar]
  2. Mihalkovich, A.; Sakalauskas, E.; Venckauskas, A. New asymmetric cipher based on matrix power function and its implementation in microprocessors efficiency investigation. Elektron. Elektrotech. 2013, 19, 119–122. [Google Scholar] [CrossRef]
  3. Sakalauskas, E.; Listopadskis, N.; Tvarijonas, P. Key Agreement Protocol (KAP) Based on Matrix Power Function. In Advanced Studies in Software and Knowledge Engineering; International Book Series “Information Science and Computing”; World Scientific: Singapore, 2008; pp. 92–96. [Google Scholar]
  4. Sakalauskas, E.; Luksys, K. Matrix Power S-Box Construction. IACR Cryptology ePrint Archive 2007. Available online: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.78.2327&rep=rep1&type=pdf (accessed on 26 October 2018).
  5. Sakalauskas, E.; Mihalkovich, A. New asymmetric cipher of non-commuting cryptography class based on matrix power function. Informatica 2014, 25, 283–298. [Google Scholar] [CrossRef]
  6. Sakalauskas, E. The multivariate quadratic power problem over Zn is NP-Complete. Inf. Technol. Control 2012, 41, 33–39. [Google Scholar] [CrossRef]
  7. Sakalauskas, E.; Mihalkovich, A. Improved Asymmetric Cipher Based on Matrix Power Function Resistant to Linear Algebra Attack. Informatica 2017, 28, 517–524. [Google Scholar] [CrossRef]
  8. Sakalauskas, E.; Mihalkovich, A.; Venčkauskas, A. Improved asymmetric cipher based on matrix power function with provable security. Symmetry 2017, 9, 9. [Google Scholar] [CrossRef]
  9. Shor, P.W. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Rev. 1999, 41, 303–332. [Google Scholar] [CrossRef]
  10. Sakalauskas, E. Enhanced Matrix Power Function for Cryptographic Primitive Construction. Symmetry 2018, 10, 43. [Google Scholar] [CrossRef]
  11. Garey, M.R.; Johnson, D.S. Computers and Intractability; WH Freeman: New York, NY, USA, 2002. [Google Scholar]
  12. Patarin, J.; Goubin, L. Trapdoor one-way permutations and multivariate polynomials. In Proceedings of the International Conference on Information and Communications Security, Beijing, China, 11–14 November 1997; Springer: Berlin, Germany, 1997; pp. 356–368. [Google Scholar]
  13. Schaefer, T.J. The complexity of satisfiability problems. In Proceedings of the Tenth Annual ACM Symposium on Theory of Computing, San Diego, CA, USA, 1–3 May 1978; ACM: New York, NY, USA, 1978; pp. 216–226. [Google Scholar]
  14. Davis, P.J. Circulant Matrices; Wiley: New York, NY, USA, 1970. [Google Scholar]
  15. Sakalauskas, E.; Mihalkovich, A. Candidate One-Way Function Based on Matrix Power Function with Conjugation Constraints. In Proceedings of the Conference proceedings Bulgarian Cryptography Days 2012, Sofia, Bulgaria, 20–21 September 2012; pp. 29–37. [Google Scholar]
  16. Liu, J.; Zhang, H.; Jia, J. A linear algebra attack on the non-commuting cryptography class based on matrix power function. In Proceedings of the International Conference on Information Security and Cryptology, Beijing, China, 4–6 November 2016; Springer: Berlin, Germany, 2016; pp. 343–354. [Google Scholar]
  17. Chrislock, J.L. On medial semigroups. J. Algebra 1969, 12, 1–9. [Google Scholar] [CrossRef]
  18. Dechter, R.; Pearl, J. Structure identification in relational data. Artif. Intell. 1992, 58, 237–270. [Google Scholar] [CrossRef]

Share and Cite

MDPI and ACS Style

Sakalauskas, E.; Mihalkovich, A. MPF Problem over Modified Medial Semigroup Is NP-Complete. Symmetry 2018, 10, 571. https://doi.org/10.3390/sym10110571

AMA Style

Sakalauskas E, Mihalkovich A. MPF Problem over Modified Medial Semigroup Is NP-Complete. Symmetry. 2018; 10(11):571. https://doi.org/10.3390/sym10110571

Chicago/Turabian Style

Sakalauskas, Eligijus, and Aleksejus Mihalkovich. 2018. "MPF Problem over Modified Medial Semigroup Is NP-Complete" Symmetry 10, no. 11: 571. https://doi.org/10.3390/sym10110571

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop