ArticleslgStudy

computer science

FourQ

FourQ 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 FourQ rather than just read about it. In short: In cryptography, FourQ is an elliptic curve developed by Microsoft Research. It is designed for key agreements schemes (elliptic-curve Diffie–Hellman) and digital signatures (Schnorr), and offers about 128 bits of security.

Key takeaways

  • FourQ 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 FourQ to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of FourQ from memory before moving on to harder problems.

Reference excerpt

In cryptography, FourQ is an elliptic curve developed by Microsoft Research. It is designed for key agreements schemes (elliptic-curve Diffie–Hellman) and digital signatures (Schnorr), and offers about 128 bits of security. It is equipped with a reference implementation made by the authors of the original paper. The open source implementation is called FourQlib and runs on Windows and Linux and is available for x86, x64, and ARM. It is licensed under the MIT License and the source code is available on GitHub. Its name is derived from the four dimensional Gallant–Lambert–Vanstone scalar multiplication, which allows high performance calculations. The curve is defined over a two dimensional extension of the prime field defined by the Mersenne prime 2127−1.

History The curve was published in 2015 by Craig Costello and Patrick Longa from Microsoft Research on ePrint. The paper was presented in Asiacrypt in 2015 in Auckland, New Zealand, and consequently a reference implementation was published on Microsoft's website. There were some efforts to standardize usage of the curve under IETF; these efforts were withdrawn in late 2017.

Mathematical properties The curve is defined by a twisted Edwards equation

−x2+y2=1+dx2y2 d is a non-square in 𝔽p2, where p is the Mersenne prime 2127−1. In order to avoid small subgroup attacks, all points are verified to lie in an N-torsion subgroup of the elliptic curve, where N is specified as a 246-bit prime dividing the order of the group. The curve is equipped with two nontrivial endomorphisms: ψ related to the p-power Frobenius map, and ϕ, a low degree efficiently computable endomorphism (see complex multiplication).

Cryptographic properties

Security The currently best known discrete logarithm attack is the generic Pollard's rho algorithm, requiring about 2122.5 group operations on average. Therefore, it typically belongs to the 128 bit security level. In order to prevent timing attacks, all group operations are done in constant time, i.e. without disclosing information about key material.

Efficiency Most cryptographic primitives, and most notably ECDH, require fast computation of scalar multiplication, i.e. [k]P for a point P on the curve and an integer k, which is usually thought as distributed uniformly at random over {0,…,N−1}. Since we look at a prime order cyclic subgroup, one can write scalars λψ,λϕ such that ψ(P)=[λψ]P and ϕ(P)=[λϕ]P for every point P in the N-torsion subgroup. Hence, for a given k we may write

k=a1+a2λϕ+a3λψ+a4λϕλψ(modN) If we find small ai, we may compute [k]P quickly by utilizing the implied equation

[k]P=[a1]P+[a2]ϕ(P)+[a3]ψ(P)+[a4]ϕ(ψ(P)) Babai rounding technique is used to find small ai. For FourQ it turns that one can guarantee an efficiently computable solution with ai<264. Moreover, as the characteristic of the field is a Mersenne prime, modulations can be carried efficiently. Both properties (four dimensional decomposition and Mersenne prime characteristic), alongside usage of fast multiplication formulae (extended twisted Edwards coordinates), make FourQ the currently fastest elliptic curve for the 128 bit security level.

Uses

FourQ is implemented in the cryptographic library CIRCL, published by Cloudflare.

See also Elliptic-curve cryptography Curve25519 Curve448

References

External links Reference implementation by Microsoft

Worked examples

Example 1 — a first encounter with FourQ

Start with the simplest possible case. Write down what FourQ 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 FourQ 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 FourQ 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 FourQ

In research
FourQ 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 FourQ 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
FourQ is common in secondary-school and first-year university syllabi. It links to neighbouring topics Elliptic curve cryptography, Microsoft free software, Software using the MIT license, so understanding it makes those chapters shorter.
In everyday life
Look for FourQ 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 “FourQ” →

How to study FourQ in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what FourQ 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 FourQ out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is FourQ in simple terms?

In cryptography, FourQ is an elliptic curve developed by Microsoft Research. It is designed for key agreements schemes (elliptic-curve Diffie–Hellman) and digital signatures (Schnorr), and offers about 128 bits of security.

Why does FourQ 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 FourQ?

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 FourQ.

Tags

  • Elliptic curve cryptography
  • Microsoft free software
  • Software using the MIT license

Keep exploring