ArticleslgStudy

computer science

XTR

XTR is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand XTR rather than just read about it. In short: In cryptography, XTR is an algorithm for public-key encryption. XTR stands for 'ECSTR', which is an abbreviation for Efficient and Compact Subgroup Trace Representation.

Key takeaways

  • XTR belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect XTR to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of XTR from memory before moving on to harder problems.

Reference excerpt

In cryptography, XTR is an algorithm for public-key encryption. XTR stands for 'ECSTR', which is an abbreviation for Efficient and Compact Subgroup Trace Representation. It is a method to represent elements of a subgroup of a multiplicative group of a finite field. To do so, it uses the trace over GF(p2) to represent elements of a subgroup of GF(p6)∗. From a security point of view, XTR relies on the difficulty of solving Discrete Logarithm related problems in the full multiplicative group of a finite field. Unlike many cryptographic protocols that are based on the generator of the full multiplicative group of a finite field, XTR uses the generator g of a relatively small subgroup of some prime order q of a subgroup of GF(p6)∗. With the right choice of q, computing Discrete Logarithms in the group, generated by g, is, in general, as hard as it is in GF(p6)∗ and thus cryptographic applications of XTR use GF(p2) arithmetics while achieving full GF(p6) security leading to substantial savings both in communication and computational overhead without compromising security. Some other advantages of XTR are its fast key generation, small key sizes and speed.

Fundamentals of XTR XTR uses a subgroup, commonly referred to as XTR subgroup or just XTR group, of a subgroup called XTR supergroup, of the multiplicative group of a finite field GF(p6) with p6 elements. The XTR supergroup is of order p2−p+1, where p is a prime such that a sufficiently large prime q divides p2−p+1. The XTR subgroup has now order q and is, as a subgroup of GF(p6)∗, a cyclic group ⟨g⟩ with generator g. The following three paragraphs will describe how elements of the XTR supergroup can be represented using an element of GF(p2) instead of an element of GF(p6) and how arithmetic operations take place in GF(p2) instead of in GF(p6).

Arithmetic operations in GF(p2) Let p be a prime such that p ≡ 2 mod 3 and p2 - p + 1 has a sufficiently large prime factor q. Since p2 ≡ 1 mod 3 we see that p generates (ℤ/3ℤ)∗ and thus the third cyclotomic polynomial Φ3(x)=x2+x+1 is irreducible over GF(p). It follows that the roots α and αp form an optimal normal basis for GF(p2) over GF(p) and

GF(p2)≅{x1α+x2αp:x1,x2∈GF(p)}. Considering that p ≡ 2 mod 3 we can reduce the exponents modulo 3 to get

GF(p2)≅{y1α+y2α2:α2+α+1=0,y1,y2∈GF(p)}. The cost of arithmetic operations is now given in the following Lemma labeled Lemma 2.21 in "An overview of the XTR public key system": Lemma

Computing xp is done without using multiplication Computing x2 takes two multiplications in GF(p) Computing xy takes three multiplications in GF(p) Computing xz-yzp takes four multiplications in GF(p).

Traces over GF(p2) The trace in XTR is always considered over GF(p2). In other words, the conjugates of h∈GF(p6) over GF(p2) are h,hp2 and hp4 and the trace of h is their sum:

Tr(h)=h+hp2+hp4. Note that Tr(h)∈GF(p2) since

Tr(h)p2=hp2+hp4+hp6=h+hp2+hp4=Tr(h) Consider now the generator g of the XTR subgroup of a prime order q. Remember that ⟨g⟩ is a subgroup of the XTR supergroup of order p2−p+1, so q∣p2−p+1. In the following section we will see how to choose p and q, but for now it is sufficient to assume that q>3. To compute the trace of g note that modulo p2−p+1 we have

p2=p−1 and p4=(p−1)2=p2−2p+1=−p and thus

Tr(g)=g+gp2+gp4=g+gp−1+g−p. The product of the conjugates of g equals 1, i.e., that g has norm 1. The crucial observation in XTR is that the minimal polynomial of g over GF(p2)

(x−g) (x−gp−1)(x−g−p) simplifies to

x3−Tr(g) x2+Tr(g)px−1 which is fully determined by Tr(g). Consequently, conjugates of g, as roots of the minimal polynomial of g over GF(p2), are completely determined by the trace of g. The same is true for any power of g: conjugates of gn are roots of polynomial

x3−Tr(gn) x2+Tr(gn)px−1 and this polynomial is completely determined by Tr(gn). The idea behind using traces is to replace gn∈GF(p6) in cryptographic protocols, e.g. the Diffie–Hellman key exchange by Tr(gn)∈GF(p2) and thus obtaining a factor of 3 reduction in representation size. This is, however, only useful if there is a quick way to obtain Tr(gn) given Tr(g). The next paragraph gives an algorithm for the efficient computation of Tr(gn). In addition, computing Tr(gn) given Tr(g) turns out to be quicker than computing gn given g.

Algorithm for the quick computation of Tr(gn) given Tr(g) A. Lenstra and E. Verheul give this algorithm in their paper titled The XTR public key system in. All the definitions and lemmas necessary for the algorithm and the algorithm itself presented here, are taken from that paper. Definition For c in GF(p2) define

F(c,X)=X3−cX2+cpX−1∈GF(p2)[X]. Definition Let h0, h1,h2 denote the, not necessarily distinct, roots of F(c,X) in GF(p6) and let n be in ℤ. Define

cn=h0n+h1n+h2n. Properties of cn and F(c,X)

c=c1 c−n=cnp=cnp cn∈GF(p2) for n∈ℤ cu+v=cucv−cvpcu−v+cu−2v for u,v∈ℤ Either all hj have order dividing p2−p+1 and >3 or all hj are in GF(p2). In particular, F(c,X) is irreducible if and only if its roots have order diving p2−p+1 and >3. F(c,X) is reducible over GF(p2) if and only if cp+1∈GF(p) Lemma Let c, cn−1,cn,cn+1 be given.

Computing c2n=cn2−2cnp takes two multiplication in GF(p). Computing cn+2=cn+1⋅c−cp⋅cn+cn−1 takes four multiplication in GF(p). Computing c2n−1=cn−1⋅cn−cp⋅cnp+cn+1p takes four multiplication in GF(p). Computing c2n+1=cn+1⋅cn−c⋅cnp+cn−1p takes four multiplication in GF(p). Definition Let Sn(c)=(cn−1,cn,cn+1)∈GF(p2)3. Algorithm 1 for computation of Sn(c) given n and c

If n<0 apply this algorithm to −n and c, and apply Property 2 to the resulting value. If n=0, then S0(c) =(cp,3,c). If n=1, then S1(c) =(3,c,c2−2cp). If n=2, use the computation of cn+2=cn+1⋅c−cp⋅cn+cn−1 and S1(c) to find c3 and thereby S2(c). If n>2, to compute Sn(c) define S¯i(c)=S2i+1(c) and m¯=n if n is odd and m¯=n−1 otherwise. Let m¯=2m+1,k=1 and compute S¯k(c)=S3(c) using the Lemma above and S2(c). Let further m=∑j=0rmj2j with mj∈0,1 and mr=1. For j=r−1,r−2,...,0 in succession, do the following: If mj=0, use S¯k(c) to compute S¯2k(c). If mj=1, use S¯k(c) to compute S¯2k+1(c). Replace k by 2k+mj. When these iterations finish, k=m and Sm¯(c)=S¯m(c). If n is even use Sm¯(c) to compute S¯m+1(c).

Parameter selection

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with XTR

Start with the simplest possible case. Write down what XTR claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to XTR before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about XTR ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of XTR

In research
XTR appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses XTR in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
XTR is common in secondary-school and first-year university syllabi. It links to neighbouring topics Asymmetric-key algorithms, Finite fields, so understanding it makes those chapters shorter.
In everyday life
Look for XTR outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “XTR” →

How to study XTR in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what XTR means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain XTR out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is XTR in simple terms?

In cryptography, XTR is an algorithm for public-key encryption. XTR stands for 'ECSTR', which is an abbreviation for Efficient and Compact Subgroup Trace Representation.

Why does XTR matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study XTR?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on XTR.

Tags

  • Asymmetric-key algorithms
  • Finite fields

Keep exploring