Skip to Content
AxiomsAxioms
  • Article
  • Open Access

8 July 2026

14 Pages

Towards Effective Recognition of Black Box Rings

and
1
Department of Mathematics, University of Manchester, Manchester M13 9PL, UK
2
Department of Mathematics, Istinye University, Istanbul 34396, Turkey
*
Author to whom correspondence should be addressed.
This article belongs to the Section Algebra and Number Theory

Abstract

Black box algebra is a part of computational algebra focused on probabilistic methods of solving problems in very large finite algebraic objects where deterministic approaches simply do not work. The present paper provides a construction of structural proxies for black box rings encrypting rings of 2 × 2 matrices over finite fields.

1. Introduction

General discussion of problems in black box algebra, and extensive bibliography and historic remarks on black box groups, fields and rings, can be found in [1]. Terminology and notation in the present paper follow more updated papers [2,3].
As an example of application of black box analysis of an algebraic structure, we prove the following.
Theorem 1. 
Let R be a black box ring encrypting the ring of 2 × 2 matrices M 2 × 2 ( F ) , where F is an unknown finite field F of unknown odd characteristic, and let E be a computationally feasible global exponent for invertible cryptoelements x of R (that is, x E = 1 , see Axiom GE in Section 2). Then, there is a Las Vegas algorithm which constructs, in time polynomial in log E , a black box field Z = Z ( R ) encrypting F , and isomorphisms
R ⟷ M 2 × 2 ( Z ) .
Corollary 1. 
Let R be a black box ring encrypting the ring of 2 × 2 matrices M 2 × 2 ( F ) , where F is a finite field of known odd order q. Then, there is a Las Vegas algorithm which constructs, in time polynomial in log q , a black box field Z encrypting F , and isomorphisms
R ⟷ M 2 × 2 ( Z ) .
Estimates for the complexity of the various algorithms in our construction are detailed in [1] (Section 12). The overall running time is fundamentally dominated by the construction of the two-way isomorphism X / Z ( X ) ↔ PGL 2 ( K ) , where X is the group of invertible elements of R and K is a specially constructed black box field. But the black box field Z = Z ( R ) has small fixed cost, negligible in comparison with that of K . Consequently, as stated in [1] (Sections 12.13 and 12.14) the algorithm runs in O ( ξ log 2 E log log E + μ log 3 E log log E ) time for Theorem 1 and O ( ξ log 2 q log log q + μ log 3 q log log q ) time for Corollary 1, where μ is an upper bound on the time required for a single group operation in X and ξ is an upper bound on the time requirement, per element, for the construction of random elements of X .
A few words about the nature of algorithms could be useful. Most probabilistic algorithms used in black box algebra are divided in two classes:
Monte-Carlo: 
they give correct answer with probability > 1 / 2 . Repeating the calculation makes the probability of error exponentially small.
One-sided version: answer YES is always correct but answer NO may be wrong with probability < 1 / 2 .
Las Vegas: 
they give always a correct answer or fail with probability < 1 / 2 .
In the proof of Theorem 1, we construct and use Monte-Carlo algorithms, for example, constructing the field of scalars, see Step 4 of the proof. But the ultimate check of correctness of the answer is done by verifying the Identities (3) for the matrix elements e i j of a standard matrix basis constructed in the proof:
e i j e k l = e i l i f j = k 0 i f j ≠ k .
Therefore the full algorithm is Las Vegas.
This paper is designed to be self-contained as much as possible. An interested reader can find a more detailed discussion of the wider context of our work, of techniques used, and of methods to estimate computational complexity of algorithms in our paper [3], as well as a deeper discussion of methodology in [1]. Consulting these papers could be useful, but not necessary.

2. Axiomatic Description of Black Box Algebraic Structures

A black box algebraic structure  X is a black box (device, algorithm, or oracle) which produces and operates with 0–1 strings of uniform length l ( X ) encrypting (not necessarily in a unique way) elements of some fixed algebraic structure A: if x is one of these strings, then it corresponds to a unique (but unknown to us) element π ( x ) ∈ A . Here, π is the decrypting map, not necessarily known to us in advance.
Our axioms for black boxes are the same as in [1,2,3], but stated in a more formal language.
BB1 
On request, X produces a string x of fixed length l ( X ) , which depends on X , encrypting an element π ( x ) for some fixed explicitly given algebraic structure A; this is done in time polynomial in l ( X ) . When this procedure is repeated, the elements π ( x 1 ) , π ( x 2 ) , … are independent and uniformly distributed in A.
In this paper, we work only with groups and fields so we assume that operations on A are unary or binary; a general case can be treated in exactly the same way.
BB2 
On request, X performs algebraic operations on the encrypted strings which correspond to operations in A in a way which makes the map π (unknown to us!) a homomorphism: for every binary (unary case is similar) operation ⊡ and strings x and y produced or computed by X ,
π ( x ⊡ X y ) = π ( x ) ⊡ A π ( y ) .
We shall write x ∈ X if the string x is produced by X .
It should be noted that we do not assume the existence of an algorithm which allows us to decide whether a specific string can be potentially produced by X ; requests for operations on strings can be made only in relation to strings previously output by X . Also, we do not make any assumptions on probabilistic distribution of strings.
BB3 
On request, X determines, in time polynomial in l ( X ) , whether two strings x and y encrypt the same element in A, that is, check whether π ( x ) = π ( y ) .
We say in this situation that a black box X  encrypts the algebraic structure A and we write X ⊧ A . We shall call strings produced by X  cryptoelements. If x ∈ X and π ( x ) = a ∈ A , we shall express that as x ⊧ a and use the expressions x  encrypts a and x  represents a interchangeably.
In the specific case where A is a group (written multiplicatively), the following axiom formalizes a crucial property frequently encountered when applying black-box methods to computational finite algebra. This is especially relevant in the context of cryptography and computations involving matrix groups over finite fields.
GE 
We are given a global exponent of X , that is, a natural number E : = E ( X ) such that
  • x E = 1 for all strings x produced by X ; and
  • log E is polynomially bounded in terms of l ( X ) .
Introducing Axiom GE dramatically clarifies the underlying sub-algorithms, resulting in cleaner and more structured GAP code for practical implementation. Its uniforming role is obvious in Theorem 3: in the proof of Theorem 1 we will be able to manipulate with elements in a black box group X ⊧ PGL 2 ( F ) without even knowing the characteristic of the field F .
Global exponents are ubiquitous. For example, if a black box group X encrypts a subgroup embedded in GL n ( F ) , we can simply take the exponent of GL n ( F ) as the global exponent for X . This happens all the time in matrix algebra over finite fields, see [3] (Introduction) for more detail.
Clearly, in black box problems, the decrypting map π is not given in advance. However, it is useful to think about any algebraic structure (say, a finite field) implemented on a computer as a trivial black box, with π being the identity map, and with random elements produced with the help of a random number generator. In this situation, obviously, the axioms BB1–BB3 hold.
In our algorithms, we have to build new black boxes from existing ones and work with several black box structures at once: this is why we have to keep track of the length l ( X ) on which a specific black box X operates. For example, in [1] it turns out that it is useful to consider an automorphism of A as a graph in A × A . This produces another algebraic structure isomorphic to A which can be seen as being encrypted by a black box Z producing, and operating on, certain pairs of cryptoelements from X , see [1] for more examples. In this case, clearly, l ( Z ) = 2 l ( X ) .
Axiom BB1 is the only difference between our axioms and the original set-up of Babai and Szemerédi [4]: when we construct a new black box structure Y from X , operations on Y are usually more expensive than a direct construction of random cryptoelements in Y from random cryptoelements in X —this is the case, for example, of a black box field constructed from a black box projective plane constructed from a black box group PGL 2 ( F ) , which, in its turn, was constructed from a black box group SL 2 ( F ) [1]. Another example where Axiom BB1 is very natural in analysis of an impersonation attack on homomorphic encryption [2]: here, supply of random cryptoelements is achieved simply by picking random codewords from the intercepted communication traffic.

3. Black Box Fields

We use Axioms BB1–BB3 to define black box fields with a few obvious changes in the wording. In Axiom BB2, we assume that the black box can perform the addition, multiplication, and inversion in the field. The reader may wish to compare our exposition with [5]. We remind that, in this paper, we do not necessarily know the characteristic of the field. Therefore we slightly generalize the definition of a black box field given in [5,6] by removing the assumption that the characteristic of the field is known. We refer the reader to [5,6] for more details of black box fields of known characteristic.
The explicit data for a finite field of cardinality p n is defined to be a system of structure constants over the prime field, that is, n 3 elements ( c i j k ) i , j , k = 1 n of the prime field F p = Z / p Z (represented as integers in [ 0 , p − 1 ] ) so that F p n becomes a field with ordinary addition and multiplication by elements of F p , and multiplication determined by
s i s j = ∑ k = 1 n c i j k s k ,
where s 1 , s 2 , … , s n denotes a basis of F p n over F p . The concept of an explicitly given field of order p n is robust; indeed, Lenstra Jr. has shown in [7] (Theorem 1.2) that for any two fields A and B of order p n given by two sets of structure constants ( a i j k ) i , j , k = 1 n and ( b i j k ) i , j , k = 1 n , an isomorphism A ⟶ B can be constructed in time polynomial in n log p .
By an efficient isomorphism between a black box field and an explicitly given finite field F p n , we mean an algorithm constructing such an isomorphism in time polynomial in the input length, that is, we find a procedure which computes images and preimages, in time polynomial in n and log p .
One of the key results on black box fields belongs to Maurer and Raub [6]; its statement and proof can be reformulated to yield the following result.
Theorem 2 
(Maurer and Raub [6]). Let K be a black box field of known characteristic p encrypting an explicitly given finite field F p n and K 0 the prime subfield of K . Then the isomorphism problem between K and F p n can be efficiently reduced to the isomorphism problem between K 0 and F p . In particular,
  • an efficient isomorphism K 0 ⟶ F p can be extended in time polynomial in the input length l ( K ) to an efficient isomorphism K ⟶ F p n ;
  • there exists an isomorphism F p n ⟶ K computable in time polynomial in l ( K ) .
In our terminology, Theorem 2 provides a structural proxy for black box fields of known characteristic, see Section 4. Indeed, if K is a black box field of known characteristic p, then we can construct an isomorphism F p = Z / p Z ⟶ K 0 by the map
m ↦ 1 + 1 + ⋯ + 1 ( m   times )
where 1 is the unit in K 0 ; it is computable in linear in log p time by double-and-add method. Construction of an isomorphism K 0 ⟶ F p remains an open problem when p is an astronomically large prime.

4. Structural Proxy and Structure Recovery

Most groups of Lie type (we exclude B 2 2 , D 4 3 , F 4 2 and G 2 2 to avoid technical details) can be seen as functors G : F ⟶ G from the category of fields F with an automorphism of order ⩽ 2 to the category of groups G . There are also other algebraic structures which can be defined in a similar way as functors from F , for example, projective planes or simple Lie algebras (viewed as rings). The following problem is natural and, as our results show, useful in this context.
  • Structure recovery: Suppose that we are given a black box structure X ⊧ A ( F ) . Construct, in time polynomial in l ( X ) ,
    –
    a black box field K ⊧ F , and
    –
    an isomorphism A ( K ) ⟶ X .
If we construct a black box field K by using X as a computational engine, then we can construct the natural representation A ( K ) of the structure A over the black box field K . A trickier part of structure recovery is construction of isomorphism A ( K ) ⟶ X . If we achieved that, then by Maurer and Raub [6] (see also [1] (Theorem 3.1)), we have a computable in probabilistic polynomial time isomorphism F q ⟶ K and, hence, isomorphisms
A ( F q ) ⟶ A ( K ) ⟶ X
producing a more powerful and useful structure recovery of X .
If a structural recovery is achieved, this means that we can force the black box to produce cryptoelements with specific properties.
A much stronger and harder-to-achieve version of structure recovery is the concept of structure proxy.
  • Construction of a structural proxy: Suppose that we are given a black box structure X ⊧ A ( F ) . Construct, in time polynomial in l ( X ) ,
    –
    a black box field K ⊧ F
    –
    two-way bijective morphisms A ( K ) ⟷ X .
In this situation, we call A ( K ) a structural proxy of the black box X .
Structure recoveries and structural proxies play a crucial role in our papers [1,3]. We construct the structural proxies for
  • a black box projective plane with polarity Z ⊧ P ( F q ) ;
  • the projectivisation of a black box Lie algebra Y ⊧ sl 2 ( F q ) (this one appears in disguise as construction of the “cross product” on the projective plane);
  • black box groups X 1 ⊧ SO 3 ( F q ) ≃ PGL 2 ( F q ) , X 2 ⊧ PSL 2 ( F q ) , X 3 ⊧ SL 2 ( F q ) .
In all these cases, q is odd.
Corollary 1 of the present paper adds to this list
  • a structural proxy for the black box ring R ⊧ M 2 ( F q ) , q odd.
  • Proof of Theorem 1 critically depends on the use of a structural proxy for groups PGL 2 constructed in our previous paper [3] (Theorem 2).
Theorem 3 
(Borovik and Yalçınkaya [3]). Let X be a black box group encrypting PSL 2 ( F ) or PGL 2 ( F ) , where F is an unknown finite field of unknown odd characteristic, and let E be a global exponent for X . Then there is a Las Vegas algorithm which constructs, in probabilistic time polynomial in log E , structural proxies
X ⟷ PSL 2 ( K )
or
X ⟷ PGL 2 ( K ) ,
respectively.
The present paper is evidence of the power of this approach to black box algebra.
These observations strongly suggest that the black box analysis of most structures built from finite fields (and they dominate finite algebra) could be most likely reduced to black box analysis of fields, with implications for algebraic cryptography discussed in [2].

5. Preparing Proof of Theorem 1: Dihedral Subgroups of Order 8 in  GL 2 ( F )

We prove the following useful lemmas.
Lemma 1. 
Let G = GL 2 ( F ) where F is a finite field of odd characteristic. Then the subgroups isomorphic to a dihedral group of order 8 in G are all conjugate.
Proof. 
Let e 1 = − 1 0 0 1 and w 1 = 0 1 − 1 0 . Then, it is easy to check that
e 1 2 = w 1 4 = 1 a n d e 1 − 1 w 1 e 1 = w 1 − 1 .
Therefore D = ⟨ e 1 , w 1 ⟩ is a dihedral group of order 8. Assume that H = ⟨ r , s ∣ r 2 = s 4 = 1 , r − 1 s r = s − 1 ⟩ is any other dihedral group of order 8 in G and e 1 ↦ r , w 1 ↦ s is an isomorphism. As r is an element of order 2, its characteristic polynomial is the same as the characteristic polynomial of the element e 1 and its matrix representation with respect to the ordered basis consisting of its eigenvectors corresponding to the eigenvalues − 1 and 1 is the same matrix element e 1 . This means that there exists g ∈ G such that r g = e 1 . By a direct computation, we see that the elements of order 4 in G which are inverted by e 1 have the form
0 t − t − 1 0
for some 0 ≠ t ∈ F . Since ⟨ r g , s g ⟩ is a dihedral group of order 8, we must have s g = 0 t − t − 1 0 for some 0 ≠ t ∈ F . Since
0 t − t − 1 0 1 0 0 t − 1 = 0 1 − 1 0 ,
setting h = 1 0 0 t − 1 , we have
r g h = e 1 a n d s g h = w 1
which proves that H g h = D and all dihedral groups of order 8 in G are conjugate. □
Lemma 2. 
In any black box field K of odd or zero characteristics, we can construct cryptoelements 0 , 1 , and − 1 —without even knowing the characteristic of K . After that, it can be directly checked that the matrices
e ⊧ 1 0 0 1 , − e ⊧ − 1 0 0 − 1 , e 1 ⊧ − 1 0 0 1 , e 2 ⊧ 1 0 0 − 1
together with
w 1 ⊧ 0 1 1 0 , − w 1 ⊧ 0 − 1 − 1 0 , w 2 ⊧ 0 1 − 1 0 , − w 2 ⊧ 0 − 1 1 0 .
form a dihedral subgroup of order 8 in the matrix group G = GL 2 ( K ) .
Proof. 
Obvious. □
We denote this group as D . Elements listed in (1) form the elementary abelian subgroup E ⊲ D of order 4. The element e is of course the identity of G and of the matrix ring M 2 × 2 ( K ) . Elements e and − e belong to Z ( G ) .

6. Proof of Theorem 1

We start with an obvious observation that even if the zero 0 ⊧ 0 is not given explicitly in the set-up of the black box ring R , we can easily construct it by taking a random r ∈ R and computing 0 = r − r .
Construction of a structural proxy of R is explained in the steps below. The crucial ingredient of the proof is to construct the field of scalars and a dihedral group of order 8 in the multiplicative group of R .
For the purpose of estimating probabilities, we formally assume that the underlying field has order | F | = q . We use q simply as a variable to help express these probabilities clearly.
  • Step 1: Construction of the black box group X ⊧ GL 2 ( F ) . Observe first that a random element in R = M 2 × 2 ( F ) is invertible with probability 1 − O 1 q . Therefore a random element r ∈ R is invertible with probability close to 1 when q is large. Now we use the global exponent E: For an invertible cryptoelement r ∈ R , we have r E = 1 where 1 encrypts the multiplicative identity of R. Therefore we can easily construct the identity cryptoelement in R . Hence the invertible cryptoelements in R give us the black box group X ⊧ GL 2 ( F ) .
  • Step 2: Generation of trace 0 cryptoelements. Our next task is to construct in R a black box subring Z encrypting the subring Z = Z ( R ) of scalar matrices in R. Of course, Z is a field, and therefore Z ⊧ F . When Z is constructed, it will turn R into a black box Z -algebra.
It is easy to check that, for any matrices a , b ∈ M 2 × 2 ( F ) over any field F , the matrix [ a , b ] 2 = ( a b − b a ) 2 is a scalar matrix; hence we have a natural map
R × R ⟶ Z ( r , s ) ↦ [ r , s ] 2
with values in Z = Z ( R ) . We need to check that this map gives almost uniformly distributed cryptoelements in Z .
Matrices of trace zero in M 2 × 2 ( F ) form the Lie subalgebra sl 2 ( F ) . The Lie algebra gl 2 ( F ) of M 2 × 2 ( F ) can be decomposed as the sum of two ideals
z ⊕ sl 2 ( F ) ,
where z is the center of gl 2 ( F ) . Therefore, the probability of an element c ∈ sl 2 ( F ) to be a commutator of two independent random elements from gl 2 ( F ) is the same as the probability of being a commutator of two independent random elements from sl 2 ( F ) . For estimating the latter, observe that if c = [ a , b ] and c ≠ 0 , then a and b belong to the plane in gl 2 ( F ) orthogonal to c with respect to the Killing form on gl 2 ( F ) . This plane, denoted by c ⊥ , does not contain c if c is semisimple, and contains c if c is nilpotent.
Because a and b are restricted to this 2-dimensional plane c ⊥ , we can evaluate the commutator map strictly on c ⊥ . Observe that, for any x , y ∈ c ⊥ , [ x , y ] is orthogonal to all of c ⊥ . Thus, [ x , y ] ∈ ( c ⊥ ) ⊥ = Span ( c ) . Choosing a basis { e 1 , e 2 } for c ⊥ , any a , b ∈ c ⊥ can be written as a = x 1 e 1 + y 1 e 2 and b = x 2 e 1 + y 2 e 2 , making their commutator [ a , b ] = ( x 1 y 2 − x 2 y 1 ) [ e 1 , e 2 ] . Since [ e 1 , e 2 ] is a non-zero multiple of c, setting [ a , b ] = c is equivalent to solving the determinant equation x 1 y 2 − x 2 y 1 = k for some non-zero constant k ∈ F * . The number of solutions corresponds to the number of 2 × 2 matrices over F with determinant k. The general linear group GL 2 ( F ) has ( q 2 − 1 ) ( q 2 − q ) elements, evenly distributed across the q − 1 non-zero determinants, yielding exactly q ( q 2 − 1 ) = q 3 − q valid pairs for ( a , b ) . Given ( q 3 ) 2 = q 6 total pairs in sl 2 ( F ) × sl 2 ( F ) , the probability of c being a commutator of random elements from sl 2 ( F q ) is q 3 − q q 6 = 1 q 3 − 1 q 5 .
  • Step 3: The quadratic form on sl 2 . Now we turn our attention to the square map
    σ : sl 2 ( F ) ⟶ Z s ↦ s 2 .
Let s be a trace zero matrix,
s = a b c − a ,
then it is easy to check that
s 2 = a 2 + b c 0 0 a 2 + b c ,
and that a 2 + b c = − det s is proportional to the Killing quadratic form on sl 2 ( F ) .
To determine the probability that a random element maps to a given scalar matrix x I ∈ Z , we must count the number of preimages ( a , b , c ) ∈ F 3 satisfying a 2 + b c = x . If b ≠ 0 , there are q − 1 choices for b and q choices for a, which uniquely determine c = b − 1 ( x − a 2 ) , yielding q ( q − 1 ) solutions. If b = 0 , then c can take any of the q values in F , and we must solve a 2 = x . Since the characteristic of F is odd, this yields 1, 2, or 0 solutions for a depending on whether x is zero, a non-zero quadratic residue, or a quadratic non-residue, respectively. Summing these cases gives q 2 , q 2 + q , or q 2 − q total preimages. Dividing by | sl 2 ( F ) | = q 3 , the probability of mapping to a specific element in Z is either 1 q , 1 q + 1 q 2 , or 1 q − 1 q 2 . Thus, elements of Z are images of random elements from sl 2 ( F ) with probability 1 q + O 1 q 2 .
  • Step 4: Construction of the field of scalars. Combining these two estimates, we see that the square map
    R × R ⟶ Z ( a , b ) ↦ [ a , b ] 2
    hits specific elements in Z with probabilities 1 q + O 1 q 2 , that is, it is essentially the uniform distribution. Therefore the map
    R × R ⟶ Z ( x , y ) ↦ [ x , y ] 2
    can be taken for a generator of random cryptoelements for the black box Z ; operations of addition, multiplication, inversion on Z are inherited from R and its multiplicative group.
Notice that construction of random elements in Z comes at remarkably low fixed cost: two generations of random elements in R , three multiplications and one subtraction. It is negligible in comparison with complexity of construction and running of the black box field K ⊧ F which will make its appearance in Step 5. An estimate for complexity of K can be found in [1] (Section 12): O ( ξ log 2 E log log E + μ log 3 E log log E ) , where μ is an upper bound on the time required for a single group operation in X and ξ is an upper bound on the time requirement, per element, for the construction of random elements of X .
  • Step 5: Construction of a dihedral group of order 8. Our aim is to construct a dihedral group of order 8 in X .
To construct in X a dihedral group of order 8, we consider the factor group X ˜ = X / Z ⊧ PGL 2 ( F ) . Observe that we can use the black box X to carry out computations in X ˜ by replacing the equality relation in X by the new one:
x ≡ y
if and only if x − 1 y commutes with cryptoelements r , s of odd order and [ r , s ] ≠ 1 .
By Theorem 3 we can construct a black box field K inside the black box group X ˜ and then surjective homomorphisms
X ˜ ⟵ Φ PGL 2 ( K ) ⟵ β GL 2 ( K ) .
We denote Ψ = Φ ∘ β .
Notice that the black box fields Z and K come from completely different origins; the latter was constructed in [1] by coordinatisation of a projective plane structure on the set of involutions in X ˜ .
Also notice that GL 2 ( K ) comes with the matrix algebra M 2 × 2 ( K ) and that the image α ∘ β ( e ) of the identity cryptoelement e ∈ M 2 × 2 ( K ) is the identity cryptoelement of Z . In later calculations, this will allow us to identify the cryptoelements representing 0 , 1 , − 1 , 2 , 1 2 in the two fields and use the same notation for them. In our calculations we will be using only a tiny ‘shared’ fragment of the two fields. From now on we shall call cryptoelements in K , M 2 × 2 ( K ) , and GL 2 ( K ) just ‘elements’—this level of deciphering will suffice for our purposes because the field K does not appear in the formulation of our results, Theorem 1  K and Corollary 1; it plays only a temporary role.
Now we apply Lemma 2 to construct in G = GL 2 ( K ) the dihedral subgroup D , its elements are listed in Equations (1) and (2). The image D ˜ = Ψ ( D ) of D in X ˜ is the factor group D / Z ( D ) , we have to lift it to a dihedral group of order 8 in X which we will denote, abusing notation, by the same symbol D , with the same notation for elements.
So far we know only elements e and − e from Z ( D ) < Z .
The full preimage of Ψ ( D ) < X ˜ in X is Z D . We need to look with some attention at the cosets of Z in Z D . The factor group D ˜ = Z D / Z is elementary abelian; therefore, if T is a coset of Z in Z D ∖ Z then Z ∪ T is an abelian group which contains elements from D ∖ Z and of course these elements belong to T . These elements can be of order 2 or 4.
Assume that the coset T contains an element of order 2 (involution). It is easy to see that T contains only two involutions, say x and − x . Pick an arbitrary element t ∈ T , then t = z x for some z ∈ Z and t 2 = z 2 x 2 = z 2 . We can construct square roots of z ˜ 2 in the cyclic group Z * by using the analog of Tonelli-Shanks algorithm for cyclic groups, see [1] (Lemma 5.6). There are two of them,
± s = z 2 ,
and is easy to check that ( ± s t ) 2 = ( ± s z x ) 2 = 1 , hence elements ± s t coincide with ± x and belong to D .
So we know involutions ± e 1 and ± w 1 , but do not know the correct choice of signs.
  • Step 6: Construction of a basis for R . Our task now is to construct in R cryptoelements { e i j } i , j = 1 , 2 which are linearly independent over Z and satisfy the relation
    e i j e k l = e i l i f j = k 0 i f j ≠ k .
We shall call a system of cryptoelements { e i j } i , j = 1 , 2 a standard basis for R .
We will do that by manipulating elements from the subgroup D in the additive group of the ring R . We have to consider four cases each one for a different choice of the signs ± of elements ± e 1 and ± w 1 .
  • Case 1, the lucky case. We pick at random an element in each pair of elements ± e 1 and ± w 1 and denote them e 1 ′ and w 1 ′ , respectively. If we are lucky and have picked
    w 1 ′ ⊧ 0 1 1 0 and   e 1 ′ ⊧ − 1 0 0 1
    (and this should definitely happen in one of the cases) then the following calculations
    w 2 ′ : = w 1 ′ · e 1 ′ ⊧ 0 1 1 0 · − 1 0 0 1 = 0 1 − 1 0 e 11 : = 1 2 ( e − e 1 ′ ) ⊧ 1 2 1 0 0 1 − − 1 0 0 1 = 1 0 0 0 e 22 : = 1 2 ( e + e 1 ′ ) ⊧ 1 2 1 0 0 1 + − 1 0 0 1 = 0 0 0 1 e 12 : = 1 2 ( w 1 ′ + w 2 ′ ) ⊧ 1 2 0 1 1 0 + 0 1 − 1 0 = 0 1 0 0 e 21 : = 1 2 ( w 1 ′ − w 2 ′ ) ⊧ 1 2 0 1 1 0 − 0 1 − 1 0 = 0 0 1 0
The symbol ⊧ here and from now on means that a particular cryptoelement from the ring R represents a particular element from M 2 × 2 ( K ) . Obviously, { e i j } i , j = 1 , 2 is a standard matrix basis in R because its cryptoelements represent canonical matrix units in M 2 × 2 ( K ) . This is obvious for a human observer—but the algorithm must check that by substituting cryptoelements e i j ’s in Equation (3).
  • Cases 2, 3, and 4. If we are not lucky in our choice of elements e 1 ′ and w 1 ′ and the system of cryptoelements { e i j } i , j = 1 , 2 found in Equation (4) does not satisfy the criteria of Equation (3), we adjust them within group D , realizing the three remaining choices of signs.
Case 2: We keep e 1 ′ and replace w 1 ′ by setting w 1 ′ : = − e w 1 ′ , so that now w 1 ′ ⊧ 0 − 1 − 1 0 .
Case 3: We replace e 1 ′ by setting e 1 ′ : = − e e 1 ′ , so that now e 1 ′ ⊧ 1 0 0 − 1 , and keep w 1 ′ .
Case 4: We replace e 1 ′ and w 1 ′ by setting e 1 ′ : = − e e 1 ′ and w 1 ′ : = − e w 1 ′ , so that now e 1 ′ ⊧ 1 0 0 − 1 and w 1 ′ ⊧ 0 − 1 − 1 0 .
We do calculations formulated in Equation (4) only once but without knowing in which of the Cases 1–4 we are. But in each of these cases we come to a standard basis in R which could be different from the one we get in Case 1.
Indeed, in Case 2, we get
e 11 ⊧ 1 0 0 0 e 22 ⊧ 0 0 0 1 , e 12 ⊧ 0 − 1 0 0 , e 21 ⊧ 0 0 − 1 0
which satisfy Equation (3) and therefore form a standard basis in R .
But in Case 3 we get
e 11 ⊧ 0 0 0 1 e 22 ⊧ 1 0 0 0 , e 12 ⊧ 0 0 1 0 , e 21 ⊧ 0 1 0 0 .
Equation (3) fail because e 12 · e 21 = e 22 instead of e 11 . Swapping notation between e 11 and e 22 and between e 12 and e 21 fixes the problem and produces a standard basis for R —the same as in Case 1.
In Case 4 we get the same standard basis as in Case 2.
  • Step 7: Representation of cryptoelements in R by 2 × 2 matrices over Z . Let { e i j } i , j = 1 , 2 be a standard basis for R = M 2 × 2 ( F ) constructed in Step 6.
Take an arbitrary x ∈ R and assume that
x ⊧ a 11 a 12 a 21 a 22 = ∑ i , j a i j e i j , a i j ∈ F .
We should construct proxies for a i j , i , j = 1 , 2 , that is, we should construct cryptoelements z i j ∈ Z such that z i j ⊧ a i j and
x = ∑ i , j z i j e i j ,
where e i j , i , j = 1 , 2 , are the cryptoelements constructed in Step 6. Since we have made an exhaustive search there, we may assume that cryptoelements e i j represent the standard matrix units and
w 1 ′ ⊧ 0 1 1 0 .
We start by setting the cryptoelements x i j ∈ R :
x 11 : = e 11 x e 11 ⊧ a 11 e 11 x 22 : = e 22 x e 22 ⊧ a 22 e 22 x 12 : = e 11 x e 22 ⊧ a 12 e 12 x 21 : = e 22 x e 11 ⊧ a 21 e 21
Notice that e 11 w 1 ′ = e 22 and e 22 w 1 ′ = e 11 . This allows us to produce scalar matrices:
z 11 : = x 11 + x 11 w 1 ′ ⊧ a 11 0 0 a 11 ,
hence
x 11 = z 11 e 11 .
Similarly,
z 22 : = x 22 + x 22 w 1 ′ ⊧ a 22 0 0 a 22 ,
hence
x 22 = z 22 e 22 .
Two other matrix element of x can be obtained as follows:
z 12 : = w 1 ′ x 12 + x 12 w 1 ′ ⊧ a 12 0 0 a 12 ,
yielding
x 12 = z 12 e 12 ,
and similarly
z 21 : = w 1 ′ x 21 + x 21 w 1 ′ ⊧ a 21 0 0 a 21 ,
yielding
x 21 = z 21 e 21 .
Hence, we have
∑ i , j z i j e i j ⊧ a 11 a 12 a 21 a 22 ,
and
∑ i , j z i j e i j = x
which establishes a two-way isomorphism between R and M 2 × 2 ( Z ) .

7. The Characteristic 2 Case

Theorem 1 deals only with fields of odd characteristic. The case of even characteristic is much simpler and allows us to re-use large chunks of proof Theorem 1.
Here is the result:
Theorem 4. 
Let R be a black box ring encrypting the ring of 2 × 2 matrices M 2 × 2 ( F ) , where F is an unknown finite field F of characteristic 2, and let E be a computationally feasible global exponent for invertible cryptoelements x of R (that is, x E = 1 ), see Axiom GE in Section 2. Then there is a Las Vegas algorithm which constructs, in time polynomial in log E , a black box field Z encrypting F , and isomorphisms
R ⟷ M 2 × 2 ( Z ) .
We shall use the following structure recovery theorem [8] (Theorem 3.1).
Theorem 5
(Borovik and Yalçınkaya [8]). Let Y be a black box group of global exponent E encrypting a group SL 2 ( F ) for some unknown field F of characteristic 2. We assume that we are given an involution u ∈ X .
Then there exists a Monte-Carlo algorithm which constructs, in polynomial in log E time,
  • a black box field U ⊧ F , and
  • a polynomial in log E time isomorphism
    Φ : SL 2 ( U ) ⟶ Y .
Now we can turn our attention to proof of Theorem 4.
Proof. 
We use the same notation as in proof of Theorem 1: Z = Z ( R ) and X is the group of invertible elements in R .
The same way as in Theorem 1, the map
R × R ⟶ Z ( x , y ) ↦ [ x , y ] 2
can be taken for a generator of random cryptoelements for the black box field Z . The structure of the group X is more transparent than in the odd characteristic case because
X = Z × Y ,
where Y ⊧ SL 2 ( F ) . To apply Theorem 5 to the group Y , we need to construct an involution in Y . This was done by Kantor and Kassabov in [9] (Proposition 4), but only in the case when the order of F is known. So we could not use their result in the set-up of the present paper, and used instead our construction of involutions from [1] (Section 4.9) where the size of the field remains unknown.
So now we have a polynomial in log E time isomorphism Φ : SL 2 ( U ) ⟶ Y . In any black box field we can locate elements 0 and 1 , so we can construct in SL 2 ( U ) matrices
1 0 0 1 , 0 1 1 0 , 1 1 1 0 , 0 1 1 1 , 1 1 0 1 , 1 0 1 1
and denote by y 1 , … , y 6 , respectively, their Φ -images in Y .
Then basic arithmetic modulo 2 shows that
e 11 = y 2 + y 3 ⊧ 1 0 0 0 , e 12 = y 1 + y 5 ⊧ 0 1 0 0
and
e 21 = y 1 + y 6 ⊧ 0 0 1 0 , e 22 = y 2 + y 4 ⊧ 0 0 0 1
are matrix units satisfying Equation (3).
Now we can rename w 1 ′ : = y 2 and repeat verbatim arguments from Step 7 of the proof of Theorem 1. □

8. Conclusions

Theorem 1 demonstrates that probabilistic methods of black box group theory can be successfully applied to black box rings.
What is most important, Theorem 1 is the basis of recursive algorithms for cryptanalysis of black box rings encrypting matrix rings M n × n ( F ) over finite fields F of odd order and n > 2 . This will be done in a separate paper because it requires completely different methods, work with the so-called Curtis-Phan-Tits systems defined for all simple algebraic group: they are systems of root SL 2 ( F ) -subgroups associated with the nodes of the extended Dynkin diagram of the corresponding group [10]. Similarly, rings M n × n ( F ) are built from subrings M 2 × 2 ( F ) corresponding to SL 2 ( F ) -subgroups in SL n ( F ) .
Theorem 1 allows us to start this delicate analysis.
Why do we focus on fields of odd characteristics (and, moreover, large characteristics)? Because a simple algebraic group over a large finite field behaves in probabilistic computations as a compact Lie group: a randomly chosen element is semisimple with probability astronomically close to 1. This affinity between finite groups and compact Lie groups is best explained in a remarkable paper of Boris Zilber [11] (Theorem 4.2):
Theorem 6
(Zilber [11]). Every simple compact Lie group is locally approximated by finite groups.
This means that simple compact Lie groups are “limits at infinity” of algebraic groups over finite fields of unboundedly growing characteristic. This “limit” is defined by means of (logical) model theory.
As Zilber explains [11] (p. 2),
[Simple compact Lie] groups are the backbone of the Standard Model of particle physics and also of the String Theory.
  • Zilber’s theorem explains why black box algebra adequately captures important aspects of mathematical objects and structures of quantum physics.

Author Contributions

Conceptualization, A.B. and Ş.Y.; methodology, A.B. and Ş.Y.; software, Ş.Y.; validation, A.B. and Ş.Y.; formal analysis, A.B. and Ş.Y.; investigation, A.B. and Ş.Y.; resources, A.B. and Ş.Y.; data curation, A.B. and Ş.Y.; writing—original draft preparation, A.B. and Ş.Y.; writing—review and editing, A.B. and Ş.Y.; visualization, A.B. and Ş.Y.; supervision, A.B. and Ş.Y.; project administration, A.B. and Ş.Y.; funding acquisition, none. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Acknowledgments

This paper—and other papers in our project—would have never been written if the authors did not enjoy the warm hospitality offered to them at the Nesin Mathematics Village in Şirince, Izmir Province, Turkey, as part of their Research in Pairs programme; our thanks go to Ali Nesin and to all volunteers, staff, and students who have made the Village a mathematical paradise. We also thank the anonymous referees whose comments led to improvements in this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Borovik, A.; Yalçınkaya, Ş. Adjoint representations of black box groups PSL 2 ( F ) q . J. Algebra 2018, 506, 540–591. [Google Scholar] [CrossRef] [Scilit]
  2. Borovik, A.; Yalçınkaya, Ş. Homomorphic encryption and some black box attacks. In Proceedings of Mathematical Software—ICMS 2020—7th International Conference, Braunschweig, Germany, 13—16 July 2020; Lecture Notes in Computer Science, volume 12097; Springer: Cham, Switzerland, 2020; pp. 115–124. [Google Scholar]
  3. Borovik, A.; Yalçınkaya, Ş. Natural representations of black boxgroups SL 2 ( F ) . Axioms 2025, 14, 895. [Google Scholar] [CrossRef] [Scilit]
  4. Babai, L.; Szemerédi, E. On the complexity of matrix group problems. In Proceedings of 25th IEEE Symposium on Foundations of Computer Science (1984); IEEE: Piscataway, NJ, USA, 1984; pp. 229–240. [Google Scholar]
  5. Boneh, D.; Lipton, R.J. Algorithms for black-box fields and their application to cryptography. In Advances in Cryptology—CRYPTO ’96; Koblitz, N., Ed.; Lecture Notes in Computer Science, volume 1109; Springer: Berlin/Heidelberg, Germany, 1996; pp. 283–297. [Google Scholar]
  6. Maurer, U.; Raub, D. Black-box extension fields and the inexistence of field-homomorphic one-way permutations. In Advances in Cryptology—ASIACRYPT 2007; Lecture Notes in Computer Science, volume 4833; Springer: Berlin, Germany, 2007; pp. 427–443. [Google Scholar]
  7. Lenstra, H.W., Jr. Finding isomorphisms between finite fields. Math. Comput. 1991, 56, 329–347. [Google Scholar] [CrossRef]
  8. Borovik, A.; Yalçınkaya, Ş. Fifty shades of black. arXiv 2013, arXiv:1308.2487. [Google Scholar]
  9. Kantor, W.M.; Kassabov, M. Black box groups isomorphic to PGL(2, 2e). J. Algebra 2015, 421, 16–26. [Google Scholar]
  10. Borovik, A.; Yalçınkaya, Ş. Construction of Curtis-Phan-Tits system for black box classical groups. arXiv 2010, arXiv:1008.2823. [Google Scholar]
  11. Zilber, B. Approximation of structures: Local and global. arXiv 2026, arXiv:2604.00720v1. [Google Scholar]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.