Abstract
In several stream cipher designs, Boolean functions (BFs) play a crucial role as non-linear components, either serving as filtering functions or being used within the combining process. The overall strength of stream ciphers mainly depends on certain cryptographic properties of BFs, including their balancedness, non-linearity, resistance to correlation, and algebraic degrees. In this paper, we present novel findings related to the algebraic degrees of BFs, which play an important role in the design of symmetric cryptographic systems, and propose a novel algorithm to directly deduce the algebraic degree of a Boolean function (BF) from its truth table. We also explore new results concerning balanced Boolean functions, specifically characterizing them by establishing new results regarding their support. Additionally, we propose a new approach for a subclass of affine equivalent Boolean functions and discuss well-known cryptographic properties in a very simple and lucid manner using this newly introduced approach. Moreover, we propose the first algorithm in the literature to construct non-quadratic balanced Boolean functions (NQBBFs) that possess no linear structure where their derivative equals 1. Finally, we discuss the complexity of this algorithm and present a table that shows the time taken by this algorithm, after its implementation in SageMath, for the generation of Boolean functions corresponding to different values of n (i.e., number of variables).
1. Introduction
Let be a finite field of order 2, and let be a vector space of n-tuples over containing elements. A function is known as a Boolean function (BF). Beyond their combinatorial significance in mathematics, BFs are critical in coding theory [1,2,3], cryptography [2,4], and combinatorics [5]. In cryptography, BFs are integral to the design of linear feedback shift registers (LFSRs) [6], the substitution boxes (S-boxes) of symmetric ciphers [7], and stream ciphers, where they serve as non-linear filter or combiner functions [8,9].
The cryptographic strength of systems employing BFs relies on properties such as the algebraic degree, non-linearity, algebraic immunity, autocorrelation, balancedness, bentness, and affine equivalence [10,11,12]. Recent advancements have significantly expanded the understanding and construction of BFs with optimal cryptographic properties. For instance, Behera and Gangopadhyay [13] developed an improved hybrid genetic algorithm (HGA) to construct balanced BFs with high non-linearity and low autocorrelation, demonstrating superior efficiency over traditional genetic algorithms through a novel cost function. Similarly, Carlet et al. [14] utilized evolutionary algorithms to enhance the cryptographic properties of BFs derived from algebraic constructions, achieving significant improvements in non-linearity for various BF sizes. Arshad and Khan [15] proposed a method to construct S-boxes using bent BFs via the Maiorana–McFarland method, addressing their inherent imbalance to create bijective S-boxes with high non-linearity, outperforming other heuristic approaches. Additionally, Abughazalah et al. [16] introduced a multi-criteria decision-making technique (IVPF–TOPSIS) to select optimal S-boxes based on multiple cryptographic properties, enhancing the design of modern block ciphers.
Furthermore, Çeşmelioğlu and Meidl [17] extended the study of equivalence classes for generalized BFs, introducing constructions of generalized bent functions that yield large affine spaces of bent functions, applicable to cryptographic designs. Cusick and Cheon [18] explored extended quadratic truncated rotation symmetric BFs, providing explicit generating functions for their weights and solving the Dickson form for such functions. Sun et al. [19] proposed systematic constructions of rotation symmetric BFs with even variables, satisfying nearly all cryptographic criteria, including high non-linearity and algebraic immunity. Ȯzçekiç et al. [20] employed a genetic algorithm to optimize balanced BFs close to bent functions, achieving improved autocorrelation and non-linearity for specific variable ranges. Liu [21] provided tight lower bounds on the second-order non-linearity of three classes of BFs, enhancing their applicability in cryptographic systems.
Among the key properties, the algebraic degree of a BF, defined as the highest degree of a monomial in its algebraic normal form (ANF), is crucial for applications in hash functions, Reed–Muller codes, pseudo-random number generators for stream ciphers, and S-boxes in block ciphers [8,22]. Balanced BFs, characterized by a Hamming weight of , are essential in constructing symmetric ciphers resistant to differential cryptanalysis [11]. Recent designs, such as homophonic and FLIP ciphers [23], leverage balanced BFs on restricted subsets of [9]. Affine equivalence, where two BFs f and g of n variables satisfy for some and , remains a vital property for cryptographic analysis [9].
This work builds on these advancements by proposing novel results and algorithms for BFs. Unlike prior studies that often rely on the ANF to determine algebraic degree [24], we introduce an algorithm to compute the algebraic degree directly from a BF’s truth table for any degree, extending the results of [24]. We also establish new properties of balanced BFs and propose criteria for the assessment of balancedness, complementing the optimization techniques in [13,14,20]. Additionally, our novel approach to a subclass of affine equivalent BFs simplifies proofs for properties like non-linearity and autocorrelation, aligning with the equivalence studies in [17]. Finally, we present the first algorithm to construct non-quadratic balanced BFs with no linear structure where their derivative equals 1, addressing a gap in the literature and enhancing the cryptographic utility of BFs as seen in [15,19]. We elaborate on the main contribution of this paper in the following subsection.
1.1. Our Contribution
Typically, the algebraic degree of a Boolean function is computed by examining its algebraic normal form (). However, as shown in [24], the algebraic degree of an n-variable Boolean function can, in some cases, be directly obtained without explicitly determining its —specifically when the degree lies in the set . In this paper, we extend this idea to Boolean functions with degrees strictly less than . We also present a new algorithm as an alternative to the Fast Binary Möbius Transform [9] for the calculation of the algebraic degree. While the computational complexity of our method matches that of existing technique, the proposed algorithm offers the advantage of determining the algebraic degree without computing the , making it particularly effective for the quick or off-hand computation of the algebraic degree for functions with small numbers of variables.
Additionally, we introduce several new and practically relevant results for balanced Boolean functions, which are of interest due to their applications in symmetric cryptography. These results provide tools for checking the balancedness of Boolean functions that lack unit linear structures (a concept formally defined later in the paper).
We also revisit a well-known subclass of affine equivalent Boolean functions [25], and, through a non-exhaustive yet novel approach, we simplify several classical results regarding their algebraic degree, non-linearity, and autocorrelation.
Finally, we propose an original algorithm for the construction of non-quadratic balanced Boolean functions that do not possess any linear structure and whose derivative equals one (see Section 2 for the definition). The correctness and complexity of this construction are discussed in detail. To the best of our knowledge, no prior work has addressed this specific construction, and the functions generated by our method possess desirable cryptographic properties.
1.2. Organization of This Paper
In Section 2, we recall some preliminaries relevant to our work. In Section 3, we discuss our main results on the algebraic degrees of BFs. The same section also includes an algorithm for determining the algebraic degree of a Boolean function. Section 4 is focused on examining key properties associated with the support of balanced BFs, and we also put forward a sufficient condition under which a Boolean function can be considered balanced. In Section 5, we present a novel approach to studying the properties of a subclass of affine equivalent BFs and provide simple, elegant, and novel proofs for certain well-known results. Moreover, we propose an algorithm to construct non-quadratic balanced BFs that have no linear structure at which the derivative is equal to 1. In Section 5.3, we also provide the time and space complexity of our algorithm and a table in which we present empirical results obtained by running our SageMath implementation. This helps to demonstrate the practicality of our algorithm for moderate values of n and provides insights into its computational behavior. The concluding remarks of the paper are presented in Section 6.
2. Preliminaries
In this paper, we use the notation for a finite field of order 2, and, for any natural number n, we regard as an vector space of all n-tuples . Let represent the set of all Boolean functions from to . The functions from to are termed pseudo-Boolean functions, and the symbols are, respectively, used to denote the set and the power set of ∧. Throughout the paper, unless otherwise stated, will be used to denote an element of , and denotes the set of all permutations on ∧. For , we define , where if and 0 otherwise.
Generally, the truth table representation is a classical approach of representing every Boolean function in a unique way. However, for cryptographic and coding theory applications [8], the most commonly used form of Boolean function is the n-variable polynomial form over the quotient ring , where
The algebraic normal form of f, denoted by , is its representation as an element of As a result, for every , we have
where ⨁ is addition in and .
For a vector , the Hamming weight, represented by , refers to the total number of positions in that contain non-zero entries. That is, , where indicates the cardinality of the set . We define and the Hamming weight of as the number of , where f has a non-zero value. Precisely, the Hamming weight of f is the size of the set
Definition 1
([9]). Let be expressed in its algebraic normal form as
where for each . The algebraic degree of f, denoted , is defined by
Theorem 1
([22]). Consider a Boolean function whose algebraic normal form is given by
Then, for every , the corresponding coefficient is computed as
Definition 2
([22]). Let and . Then, the derivative of f at , symbolized by , is defined as
Definition 3
(Linear Kernel [8]). The linear kernel of any n-variable Boolean function f, represented by is the set of all those points for which is constant. Any element of is called a linear structure of f.
Theorem 2
([22]). For any non-constant Boolean function and any , we have
and there exist some such that
Definition 4
([22]). Let and . Then, the autocorrelation of f is defined as , where .
Definition 5
([22]). The non-linearity of a Boolean function is the minimum Hamming distance from f to all affine functions defined over . Formally, it is expressed as
where denotes the set of all affine functions over , and represents the Hamming distance between f and .
Theorem 3
([22]). An n-variable quadratic Boolean function (QBF) f is balanced if and only if there exists a vector for which holds.
Theorem 4
([24]). A Boolean function attains algebraic degree n if and only if its Hamming weight turns out to be an odd number.
Before proceeding to the main results, we introduce a new concept that will be instrumental in the subsequent analysis. While the notion of linear structures of Boolean functions is well established, we define a special case, which we refer to as a unit linear structure. This concept plays a central role in characterizing certain classes of balanced Boolean functions considered later in this paper. To the best of our knowledge, this terminology and its formal definition have not been previously explored in the literature.
Definition 6
(Unit Linear Structure). An element is said to be a unit linear structure of an n-variable Boolean function f if the derivative of f in the direction satisfies
The set of all unit linear structures of f is denoted by .
Furthermore, we denote by the set of all n-variable Boolean functions that admit at least one unit linear structure.
3. Algebraic Degrees of Boolean Functions: Novel Results and Computation Approach
In this section, we present new results on the algebraic degree, extending the findings discussed in [24]. In addition, we introduce an alternative method of computing the algebraic degree that maintains the same complexity as the Fast Binary Möbius Transform, yet determines the degree without requiring knowledge of the algebraic normal form (). This makes the method particularly useful for the quick estimation of the algebraic degree in Boolean functions with a small number of variables.
Theorem 5.
Any Boolean function has algebraic degree , where d is some positive integer such that , if and only if
- (a)
- f has an even weight;
- (b)
- there exists , with , such that is odd; and
- (c)
- there does not exist , with , such that is odd.
Proof.
For the forward part, assume that the algebraic degree of is Then, we show the following:
- (a)
- Using Theorem 4, we find that the weight of f is even.
- (b)
- The algebraic degree of f is , so the of f has a monomial of degree Let be this monomial, where Consequently, for , we haveorororThus, if we let , then we haveThis means that holds.
- (c)
- Suppose that there exists , with , such that is odd. Then, we haveThis implies that f has an algebraic degree greater than This is a contradiction to our assumption. Therefore, there does not exist , with , such that is odd.
Conversely, suppose that conditions – hold. This, along with Theorem 4, implies that Moreover, from part (b), we have
This leads to Additionally, from part (c), we know that there does not exist , with , and is odd. So, Thus, we conclude that is . □
Next, we prove a result that can be used to find the algebraic degrees of BFs without obtaining their algebraic normal forms. This result appears to be a straightforward case of Theorem 5; however, it is not.
Proposition 1.
Let f be a Boolean function with an even Hamming weight. Then, f possesses algebraic degree , where , if and only if the following conditions are satisfied:
- (a)
- There exists a reordering of the integers such that the sethas odd cardinality, or the restriction of f on has an even Hamming weight, where .
- (b)
- For all permutations of the integers , the sethas even cardinality for all
Proof.
Assume that the Boolean function f has an algebraic degree equal to and let . This further implies that the of f has a monomial of degree , and all the monomials of degrees greater than have zero coefficients. Let be the monomial with coefficient 1, where Then, for , we have
Moreover, the algebraic degree of f is and its has a monomial So, we may suppose that
where is the restriction of f on Consequently, since the of g does not contain any monomials with an of f that contain . So, for any with we have Thus, if we consider and as two BFs on , then the algebraic degrees of g and h are and (where ), respectively. So, using Theorem 4, the Hamming weight of g is odd and that of h is even. This further implies that has an odd Hamming weight on or has odd cardinality (as, if , then ).
Moreover, there holds
As the weight of f is even, this, along with (7), implies that f has an even Hamming weight on This completes the proof of part (a).
Now, we show part (b). Suppose that there exists a rearrangement of the elements such that the set
has odd cardinality for some Let be the restriction of f on Then, using a structure-transferring map, we may consider as a Boolean function on This, along with (8), implies that
Moreover, Theorem 4 along with (9) implies that is This means that However, and the algebraic degree of f is . This is a contradiction. Therefore, there does not exist a rearrangement of the elements such that the set given in (8) has odd cardinality for some This completes the proof of part (b).
Conversely, suppose that conditions (a) and (b) are met. Then, part (a) implies that there exists a permutation of the integers such that the set
has odd cardinality. By employing the technique incorporated in part (b), we note that On the other hand, part (b) implies that Thus, we conclude that □
Next, we present a result that can be applied to obtain the of a Boolean function whose Hamming weight is even.
Proposition 2.
Let have , and let the weight of f be even. Then, for every , we have
where and are any two sets such that
Proof.
Suppose that for some permutation of the integers Using part (a) of Proposition 1, it can be easily shown that
Hence, the proof is completed. □
The corollary stated below directly follows as a consequence of Proposition 2.
Corollary 1.
Let have , and let the weight of f be even. Then, for each , we have
Next, with the help of Proposition 2, we discuss an efficient alternative procedure to determine the algebraic degrees of BFs without knowing their . This algorithm (i.e., Algorithm 1) has complexity , which is the same as that of the Fast Binary Möbius Transform [22]. However, our algorithm offers the advantage of determining the algebraic degree without computing the , making it particularly effective for the quick or off-hand computation of the algebraic degree for functions with a small number of variables.
To this end, we describe some notations before we discuss the algorithm. Let and be a permutation of the integers We say that is a k-layer related to with respect to the positions if The set of all these elements will be denoted by For any , the set of elements is denoted by
| Algorithm 1 An algorithm to compute the algebraic degrees of BFs |
|
To show the practicality of Algorithm 1, we consider three BFs, each containing four variables, and deduce their algebraic degrees.
Example 1
(Algebraic degrees of Boolean functions). Consider three BFs on , whose truth tables are given in Table 1. Then, we have
Table 1.
Truth tables of BFs and h.
4. Balanced Boolean Functions: Structural Insights and New Characterizations
This section is devoted to exploring some new findings related to the balancedness of BFs. We begin by discussing two important results (Propositions 3 and 4) related to the support of a balanced Boolean function. Apart from this, we discuss a very interesting result in the form of Proposition 5, which is novel and very interesting from a linear algebra point of view and will be used in Proposition 6.
Proposition 3.
Let be a balanced Boolean function such that Then, is not a subspace of
Proof.
For the sake of contradiction, let us suppose that is a subspace of Then, it is a hyperplane, e.g., H. Thus, we have , for some . Consequently, we have
since and cannot be both in This in turn implies that which is a contradiction. So, is not a subspace of This completes the result. □
The following example illustrates that the converse of Proposition 3 is not valid.
Example 2.
Let f be a balanced Boolean function on such that
We note that 0010 and 0111 are elements of but This implies that is not a subspace of If we take then we have
To this end, we observe that which further implies that
Proposition 4.
Let be a balanced Boolean function such that Then, contains a set of n linearly independent vectors and
where
Proof.
Let be the set of maximum linearly independent vectors in If , then we have the following cases:
- (a)
- , or
- (b)
If (a) holds, then f is not balanced, and, if (b) holds, then must be a subspace of However, from Proposition 3, if , then is not a subspace of So, in both cases, we have a contradiction. Consequently, we must have that Moreover, as , we have
Let be an arbitrary element. Then, from (13), we obtain This further implies that for some So, and hence the result holds. □
The next key result of our work, namely Proposition 6, provides a sufficient condition under which a Boolean function is balanced. To establish this, we first require the following preliminary result.
Proposition 5.
Let V and W be two subsets of such that
- (a)
- (b)
- and and
- (c)
- there exists a unique element such that for allThen, there do not exist such that
Proof.
Let and From condition (c), if , then there exist such that (as b is the only element in W which cannot be expressed as the sum of two elements from V). In this case, neither nor is zero as In order to prove the result, we need to show that We note that, if , then (as , since Char() = 2). Here, Char denotes the characteristics of a field. Consequently, we define a map as follows:
It is straightforward to see that is one–one. We note that holds, provided that is an onto map. We take and If , then is trivially onto. Next, we assume For , let us construct and , each having 3 elements. To this end, we claim that Let, on the contrary, , and we take . This means that . As and V contains only a zero element, we deduce that is not the sum of any two elements from V. However, this is a contradiction to condition . Therefore, our claim holds, i.e., . Let . This means that . It follows from condition that there exist satisfying . We note that, if , then , which is not possible. Similarly, we have that . Moreover, if , then , which is again not possible. Consequently, we find that and are three distinct elements of V. We take and . We observe that
If , then and and, therefore, we are done. Otherwise, we have . At this point, we claim that . Let, on the contrary, and . This means that . Clearly, as , (14) allows us to deduce that x cannot be the sum of two elements from . This is a contradiction to condition . Therefore, our claim holds, i.e., . Let This implies that and . This guarantees the existence of , fulfilling . If , then , which is a contradiction. Similarly, we observe that . Moreover, if , then , which is not possible. Consequently, and are three distinct elements of V. We put and . Thus, we have the following possibilities:
- (i)
- If has an element different from the elements of , then there exists an element corresponding to the element with the condition that . This is because the map is one–one.
- (ii)
- If had two (or three) different elements from , then, by the same logic, would also have two (or three) different elements from .
Thus, with the increase in the index i of , we obtain one or two or three elements of that are not in the previous s. The same is the case with s due to the one–one property of . Since n is finite, there must exist a such that . Additionally, we note that . This confirms that is onto, which means that . Finally, we assume that, for some , we have . As is onto, there exist such that and . Hence, , which goes against the assumption that is unique. Hence, the result is complete. □
To conclude this section, we establish the principal result concerning the characterization of a balanced Boolean function.
Proposition 6.
Let be such that and there exists a unique element such that for all Then, f is a balanced Boolean function.
Proof.
Let and Then, as if and only if Moreover, if there exists such that then for some So, there does not exist any such that . This implies that and If then clearly f is a balanced function. Otherwise, let However, then, there exists such that
or
or
(since for some or
However, this is a contradiction to Proposition 5. So, we have and f is a balanced Boolean function. This completes the proof. □
5. A Revisit to a Subclass of Affine Equivalent Boolean Functions and the Construction of a Special Kind of Balanced Boolean Function
It has been established in [25,26,27] that affine equivalent Boolean functions (BFs) share important invariance properties, such as non-linearity, autocorrelation, algebraic degrees, and the absence of unit linear structures. Therefore, identifying criteria for affine equivalence or developing efficient tools to characterize such equivalence is a significant aspect of Boolean function analysis. Several criteria for determining affine equivalence have been discussed in the literature [9]. In this section, one of our aims is to revisit these criteria and derive them through alternative and simpler approaches. Specifically, we construct a subclass of affine equivalent BFs and demonstrate that all members of this subclass preserve the properties mentioned above. Consequently, from the perspective of affine equivalence, we offer new and simplified proofs of known results.
Non-quadratic balanced Boolean functions with no linear structure where the derivative equals 1 are known to have significant applications in cryptography [9,22]. For quadratic functions, it is both necessary and sufficient that for f to be balanced, as shown in [9]. However, for non-quadratic BFs, this condition remains sufficient but not necessary. To construct a non-quadratic Boolean function f such that , we consider a non-quadratic function g defined over variables and choose a hyperplane . We then define a linear bijection and construct f on using . The values of f on the rest of are then extended by defining for every , where is not in the direction of . This yields a balanced function that lies in .
On the other hand, to the best of our knowledge, no construction is known in the literature for a non-quadratic balanced Boolean function f satisfying . Therefore, another objective of this section is to present an algorithm that generates such functions—that is, non-quadratic balanced Boolean functions without any unit linear structure at which the derivative equals 1.
Before this, let us define some new terms that are necessary to comprehend our findings. For any let be the matrix of order obtained by assuming the elements of as a row in lexicographic order, where bits with greater significance are placed towards the right. Let be the set of all rows of matrix If and H is any square matrix of order n over , then, by , we mean the variable Boolean function with (and ⊠ is the matrix product). From this point on, we call this the H equivalent of f. Additionally, in the following part of this article, by , we mean the set of rows of matrix We begin the section by showing that, for any and f and have the same non-linearity.
5.1. Novel Results on Affine Equivalence of Boolean Functions
In this subsection, we revisit known results on the cryptographic properties of Boolean functions and derive them using alternative and simpler approaches.
Theorem 6.
For any Boolean function and , there holds , where is the same as defined in Definition 5.
Proof.
In order to prove that for any Boolean function and , it is sufficient to give the following statements:
- (a)
- If , then for all
- (b)
- If for some and then for all .
Let us begin by proving statement . Suppose that is a linear function and for some (here, is a transpose of ). Let matrix (or simply ) and . Then, there exists some Boolean function g such that Consider At this point, we claim that or . To prove our claim, we consider . This means that . Consequently, , which further implies that is a row of . In other words, we deduce that y is a matrix multiplication of a row of with H. From this, we conclude that . So, we have shown that .
The reverse direction, i.e., , can be proven along similar lines. Hence, our claim holds, i.e., . The proof of statement will be completed if we show that for all , where is of the form . We remark that its proof is similar to the case when is of the form .
Next, we give the proof of statement (b). It is straightforward to note that statement holds if we prove that, for all , there holds , where is arbitrary. Since for any , statement holds, provided that for any .
To see this, let H be an arbitrary but fixed element of . We may write H as
where are rows of Let . This in turn guarantees the existence of an element fulfilling
Since , we conclude that either or Without loss of generality, we may suppose that . This allows us to deduce that and Consequently, we have We remark that the reverse part of the proof, i.e., , can be obtained by reversing the steps of the proof of This completes the proof of statement , as well as that of the theorem. □
Next, in Theorem 7, we prove a result about the algebraic degrees of a Boolean function and its H equivalent. Before this, we discuss two results in the form of Propositions 7 and 8, which will be used in the proof of Theorem 7.
Proposition 7.
Let be a linearly independent set over . Suppose that
and . Then, viewing as a polynomial in , there holds
Proof.
First, since each is a linear polynomial, multiplying d of these linear polynomials results in the polynomial with maximum degree d. Secondly, since is a linearly independent set of vectors, the matrix obtained by assuming as rows over has rank d. Thus, there exist indices for which the sub-matrix
is non-singular over . In particular, . Since is a sub-polynomial in for all , it is easy to observe that is a sub-polynomial in . Hence, is a monomial in . This completes the proof. □
Proposition 8.
Let and let be its support. Then, for all , we have
Proof.
Since, for any holds, if and only if , if and only if , if and only if , if and only if . Hence, the proof is complete. □
Remark 1.
It is clear from Proposition 8 that f and have the same autocorrelation as
So, we have
Theorem 7.
For any Boolean function and , .
Proof.
Assuming that , our aim is to show that . For this, without loss of generality, we assume that is a monomial in the algebraic normal form of f. By following Proposition 8, we note that
Let the columns of the matrix be . Clearly, the set of all these columns is linearly independent over . In particular, the first d columns, namely , are also linearly independent over . It follows from (16) that
By assumption, the monomial is in the algebraic normal form of f; therefore, (17) implies that the monomial is in the algebraic normal form of . Therefore, it follows by Proposition 7 that the degree of and hence the algebraic degree of is d. Conversely, we assume that . Thus, , and the result follows as above. □
Next, we examine how the set of linear structures of f relates to its H-equivalent counterpart through the upcoming proposition and theorem.
Proposition 9.
For a Boolean function and , we have .
Proof.
We have if and only if for every , where c is some constant. The latter holds if and only if for every , if and only if for every ; equivalently, for every . This holds if and only if for every , which means that or . This completes the proof. □
Theorem 8.
For any Boolean function , if f is constant on , then is constant on .
Proof.
Let f be constant on . Then, for any , we have if and only if
Using Proposition 9, and for some and in (18) to attain that , and this is vacuously true. This completes the proof. □
5.2. Construction of NQBBFs
Now, we discuss an algorithm for the construction of non-quadratic balanced BFs that have no linear structure at which the derivative is equal to 1. It can be readily observed that the construction of such BFs is equivalent to finding a subset of such that for every and Let us denote .
Claim:
The set constructed in the above algorithm satisfies the desired property, i.e., for every .
Proof.
Suppose, on the contrary, that there exists a such that . This means that , since . Therefore, either or . In the latter case, i.e., if , then , which, by construction, is never possible. Hence, , but this implies that for some . Equivalently, for some or, in fact, for some However, this further implies that for some and (we explicitly write and keep as it is). Consequently, for and which is a contradiction as This proves the claim. Therefore, for every . □
Example 3
(Construction of a Non-Quadratic Balanced Boolean Function for ). We illustrate Algorithm 2 by constructing a non-quadratic balanced Boolean function (NQBBF) on with no linear structure where the derivative equals 1. The set is constructed to satisfy for all and .
- Let be the ambient space with elements, and .
- Initialization: Select , . Compute . Set and
- Iteration 1: Choose , . Compute . Update ,
- Iteration 2: Choose , . Compute . Update ,
- Iteration 3: Choose , . Compute . Update ,
- Iteration 4: Choose , . Compute . Update ,
- Iteration 5: Choose , . Compute . Update ,
- Iteration 6: Choose , . Compute . Update ,
- Iteration 7: Choose , . Compute . Update ,
- Balancedness: The set has , confirming that the Boolean function with support is balanced.
- No Linear Structure: For each , verify that . For example, for , computeand . Similar checks for all other confirm that the property holds, ensuring that no linear structure exists where the derivative is 1.
- Non-Quadratic Property: The Boolean function f with support has an algebraic normal form (ANF) with terms of degree at least 3. For instance, the vector contributes a monomial (degree 2), but combinations of vectors in (e.g., via the Möbius Transform) yield higher-degree terms, such as from interactions among , , and others. The maximum degree is 3, confirming that f is non-quadratic.Thus, the constructed defines an NQBBF on satisfying all required properties.
| Algorithm 2 Construction of a set with property for every and |
INPUT: An integer n
|
5.3. Computational Complexity and Performance Evaluation
The proposed algorithm incrementally constructs a subset of size such that, for every , the intersection is non-empty. Each iteration involves selecting random pairs from , computing their sum , and validating the newly formed element against the accumulated sets to avoid repetition. Since only one new element is added to per iteration, the total number of iterations grows linearly with .
The primary computational cost lies in generating random, valid pairs and checking their admissibility against the previously accumulated elements. As a result, the expected time complexity of the algorithm is , where denotes the average time needed to find a suitable, non-redundant pair at each iteration.
The space complexity is determined by the storage required for three dynamic sets: , the set of previously seen pairs, and the remaining unused elements of . Each of these has at most elements, leading to the overall space complexity of .
Importantly, to the best of our knowledge, this algorithm is the first in the literature to construct non-quadratic balanced Boolean functions with the additional constraint that no linear structure exists at which the derivative is equal to one. While its growth in complexity is exponential, this is expected due to the underlying combinatorial hardness of the imposed constraint. Nevertheless, the algorithm remains practically valuable for moderate values of n and provides a foundational step toward the structured generation of cryptographically relevant Boolean functions.
To evaluate its practical viability, the algorithm was implemented in SageMath and tested on functions of varying dimensions. The results, shown in Table 2, include both runtime measurements and sample elements of the generated subset . Since the algorithm uses randomized pair selection, the reported times reflect average-case behavior. Experiments were conducted on a general-purpose computing platform with the given hardware configuration to ensure reproducibility and context for the measured performance.
Table 2.
Execution time and space usage for construction of non-quadratic balanced Boolean functions (NQBBFs) without linear structure at which derivative equals one.
6. Conclusions
In this paper, we have discussed results regarding the algebraic degrees of Boolean functions and proposed an algorithm to directly compute the algebraic degree from the truth table without requiring its algebraic normal form. Furthermore, we have studied a number of important properties concerning the support of balanced Boolean functions and offered new tools for the analysis of balancedness in the absence of certain linear structures. Additionally, the class of affine equivalent Boolean functions has been revisited through a novel, non-exhaustive approach, offering simplified proofs for several classical results. Moreover, we propose an algorithm to construct non-quadratic balanced Boolean functions (NQBBFs) that do not admit any unit linear structure at which the derivative equals 1. To the best of our knowledge, this is the first known algorithm in the literature that guarantees such a construction. We also implemented the algorithm in SageMath and provide empirical results to demonstrate its practical effectiveness for moderate values of n. Although the proposed algorithm for constructing NQBBFs achieves the desired combinatorial properties, its current time complexity remains exponential in n. As a direction for future research, it would be valuable to investigate whether such Boolean functions can be constructed through a more efficient, possibly polynomial-time method. Developing a theoretical framework or heuristic to reduce the computational burden while preserving the intersection property would constitute a significant contribution to the field.
Author Contributions
Conceptualization, S.K.; methodology, S.K.; formal analysis, D.C.; investigation, D.C.; resources, S.A.L.; writing—original draft preparation, S.K. and S.A.L.; writing—review and editing, S.A.L. and C.-C.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
No data were used or generated during the course of this study.
Acknowledgments
The authors would like to express their gratitude to all individuals who contributed to this research. Special thanks are extended to those who provided valuable feedback and support throughout the process.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Carlet, C. A simple description of Kerdock codes. In International Colloquium on Coding Theory and Applications; Springer: Berlin/Heidelberg, Germany, 1988; pp. 202–208. [Google Scholar]
- Logachev, A.; Salnikov, A.; Yashchenko, V. Boolean Functions in Coding Theory and Cryptography; American Mathematical Society: Providence, RI, USA, 2012; Volume 241. [Google Scholar]
- Muller, D.E. Application of Boolean algebra to switching circuit design and to error detection. In Transactions of the I.R.E. Professional Group on Electronic Computers; IEEE: New York, NY, USA, 1954; Volume 3, pp. 6–12. [Google Scholar]
- Gao, J.; Kan, H.; Li, Y.; Xu, J.; Wang, Q. Monomial Boolean functions with large high-order nonlinearities. Inf. Comput. 2024, 297, 105152. [Google Scholar] [CrossRef]
- Bakoev, V. Combinatorial and algorithmic properties of one matrix structure at monotone Boolean functions. arXiv 2019, arXiv:1902.06110. [Google Scholar] [CrossRef]
- Golomb, S. Shift Register Sequences; World Scientific: Singapore, 2017. [Google Scholar] [CrossRef]
- Wu, C.-K.; Feng, D. Boolean function representation of s-boxes and Boolean permutations. In Advances in Computer Science and Technology; Springer: Berlin/Heidelberg, Germany, 2016; pp. 217–241. [Google Scholar]
- Canteaut, A. Lecture Notes on Cryptographic Boolean Functions. 2016. Available online: www.rocq.inria.fr/secret/Anne.Canteaut/poly.pdf (accessed on 5 August 2025).
- Carlet, C. Boolean Functions for Cryptography and Coding Theory; Cambridge University Press: Cambridge, UK, 2021. [Google Scholar]
- Millan, W.; Clark, A.; Dawson, E. Heuristic design of cryptographically strong balanced Boolean functions. In Advances in Cryptology—EUROCRYPT’98; Nyberg, K., Ed.; LNCS; Springer: Berlin/Heidelberg, Germany, 1998; Volume 1403, pp. 489–499. [Google Scholar]
- Stinson, D. Cryptography: Theory and Practice; Chapman and Hall/CRC: Boca Raton, FL, USA, 2005. [Google Scholar]
- Carlet, C.; Guillot, P. A new representation of boolean functions. In International Symposium on Applied Algebra, Algebraic Algorithms, and Error-Correcting Codes; Springer: Berlin/Heidelberg, Germany, 1999; pp. 94–103. [Google Scholar]
- Behera, P.K.; Gangopadhyay, S. An improved hybrid genetic algorithm to construct balanced Boolean function with optimal cryptographic properties. Evol. Intell. 2022, 15, 639–653. [Google Scholar] [CrossRef]
- Carlet, C.; Jakobovic, D.; Picek, S. Evolutionary algorithms-assisted construction of cryptographic Boolean functions. In Proceedings of the GECCO’21: Proceedings of the Genetic and Evolutionary Computation Conference, New York, NY, USA, 10–14 June 2021; pp. 565–573. [Google Scholar]
- Arshad, S.; Khan, M. Construction of nonlinear component based on bent Boolean functions. Comput. Appl. Math. 2024, 43, 46. [Google Scholar] [CrossRef]
- Abughazalah, N.; Khan, M.; Iqbal, M. Hybrid multi-criteria decision-making technique for the selection of best cryptographic multivalued Boolean function. Complex Intell. Syst. 2024, 10, 455–468. [Google Scholar] [CrossRef]
- Çeşmelioğlu, A.; Meidl, W. Construction and equivalence for generalized Boolean functions. Cryptogr. Commun. 2025, 1–24. [Google Scholar] [CrossRef]
- Cusick, T.W.; Cheon, Y. Extended quadratic truncated rotation symmetric Boolean functions. Appl. Math. Comput. 2025, 507, 129601. [Google Scholar] [CrossRef]
- Sun, L.; Shi, Z.; Liu, J.; Fu, F.W. Constructions of rotation symmetric Boolean functions satisfying almost all cryptographic criteria. Theor. Comput. Sci. 2024, 1020, 114869. [Google Scholar] [CrossRef]
- Özçekixcx, E.; Kavut, S.; Kutucu, H. Genetic approach to improve cryptographic properties of balanced Boolean functions using bent functions. Computers 2023, 12, 159. [Google Scholar] [CrossRef]
- Liu, Q. The lower bounds on the second-order nonlinearity of three classes of Boolean functions. Adv. Math. Commun. 2023, 17, 418–430. [Google Scholar] [CrossRef]
- Carlet, C. Boolean functions for cryptography and error-correcting codes. In Boolean Methods and Models; Crama, Y., Hammer, P.L., Eds.; Cambridge University Press: Cambridge, UK, 2007. [Google Scholar]
- Méaux, P.; Journault, A.; Standaert, F.-X.; Carlet, C. Towards stream ciphers for efficient FHE with low-noise ciphertexts. Eurocrypt 2016, 9665, 311–343. [Google Scholar]
- Kumar, S.; Singh, H.; Mittal, G. A novel approach towards degree and Walsh-transform of Boolean functions. Int. J. Found. Comput. Sci. 2022, 33, 453–479. [Google Scholar] [CrossRef]
- Fuller, J.E. Analysis of Affine Equivalent Boolean Functions for Cryptography. Ph.D. Thesis, Queensland University of Technology, Brisbane, Australia, 2003. [Google Scholar]
- Ho, C.J. Affine Equivalence and Constructions of Cryptographically Strong Boolean Functions. Ph.D. Thesis, Naval Postgraduate School Monterey Ca, Monterey, CA, USA, 2013. [Google Scholar]
- Wang, Z.; Zeng, X.; Wu, J.; Yang, G. A method for determining the affine equivalence of Boolean functions. IEEE Access 2019, 7, 156326–156337. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).