ArticleslgStudy

science

LEA (cipher)

LEA (cipher) is a 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 LEA (cipher) rather than just read about it. In short: The Lightweight Encryption Algorithm (also known as LEA) is a 128-bit block cipher developed by South Korea in 2013 to provide confidentiality in high-speed environments such as big data and cloud computing, as well as lightweight environments such as IoT devices and mobile devices. LEA has three different key lengths: 128, 192, and 256 bits.

LEA (cipher) — main illustration
LEA (cipher) — illustration

Key takeaways

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

Reference excerpt

The Lightweight Encryption Algorithm (also known as LEA) is a 128-bit block cipher developed by South Korea in 2013 to provide confidentiality in high-speed environments such as big data and cloud computing, as well as lightweight environments such as IoT devices and mobile devices. LEA has three different key lengths: 128, 192, and 256 bits. LEA encrypts data about 1.5 to 2 times faster than AES, the most widely used block cipher in various software environments. LEA is one of the cryptographic algorithms approved by the Korean Cryptographic Module Validation Program (KCMVP) and is the national standard of Republic of Korea (KS X 3246). LEA is included in the ISO/IEC 29192-2:2019 standard (Information security - Lightweight cryptography - Part 2: Block ciphers).

Specification The block cipher LEA consisting of ARX operations (modular Addition: ⊞, bitwise Rotation: ⋘, ⋙, and bitwise XOR ⊕) for 32-bit words processes data blocks of 128 bits and has three different key lengths: 128, 192, and 256 bits. LEA with a 128-bit key, LEA with a 192-bit key, and LEA with a 256-bit key are referred to as “LEA-128”, “LEA-192”, and “LEA-256”, respectively. The number of rounds is 24 for LEA-128, 28 for LEA-192, and 32 for LEA-256.

Encryption Let P=P[0]‖P[1]‖P[2]‖P[3] be a 128-bit block of plaintext and C=C[0]‖C[1]‖C[2]‖C[3] be a 128-bit block of ciphertext, where P[i] and C[i] (0≤i<4) are 32-bit blocks. Let Ki=Ki[0]‖Ki[1]‖Ki[2]‖Ki[3]‖Ki[4]‖Ki[5] (0≤i<Nr) be 192-bit round keys, where Ki[j] (0≤j<6) are 32-bit blocks. Here Nr is the number of rounds for the LEA algorithm. The encryption operation is described as follows:

X0[0]‖X0[1]‖X0[2]‖X0[3]←P[0]‖P[1]‖P[2]‖P[3] for i=0 to Nr−1 Xi+1[0]←((Xi[0]⊕Ki[0])⊞(Xi[1]⊕Ki[1]))⋘9 Xi+1[1]←((Xi[1]⊕Ki[2])⊞(Xi[2]⊕Ki[3]))⋙5 Xi+1[2]←((Xi[2]⊕Ki[4])⊞(Xi[3]⊕Ki[5]))⋙3 Xi+1[3]←Xi[0] C[0]‖C[1]‖C[2]‖C[3]←XNr[0]‖XNr[1]‖XNr[2]‖XNr[3]

Decryption The decryption operation is as follows:

XNr[0]‖XNr[1]‖XNr[2]‖XNr[3]←C[0]‖C[1]‖C[2]‖C[3] for i=(Nr−1) down to 0 Xi[0]←Xi+1[3] Xi[1]←((Xi+1[0]⋙9)⊟(Xi[0]⊕Ki[0]))⊕Ki[1] Xi[2]←((Xi+1[1]⋘5)⊟(Xi[1]⊕Ki[2]))⊕Ki[3] Xi[3]←((Xi+1[2]⋘3)⊟(Xi[2]⊕Ki[4]))⊕Ki[5] P[0]‖P[1]‖P[2]‖P[3]←X0[0]‖X0[1]‖X0[2]‖X0[3]

Key schedule The key schedule of LEA supports 128, 192, and 256-bit keys and outputs 192-bit round keys Ki (0≤i<Nr) for the data processing part.

Key schedule for LEA-128 Let K=K[0]‖K[1]‖K[2]‖K[3] be a 128-bit key, where K[i] (0≤i<4) are 32-bit blocks. The key schedule for LEA-128 takes K and four 32-bit constants δ[i] (0≤i<4) as inputs and outputs twenty-four 192-bit round keys Ki (0≤i<24). The key schedule operation for LEA-128 is as follows:

T[0]‖T[1]‖T[2]‖T[3]←K[0]‖K[1]‖K[2]‖K[3] for i=0 to 23 T[0]←(T[0]⊞(δ[imod4]⋘i))⋘1 T[1]←(T[1]⊞(δ[imod4]⋘(i+1)))⋘3 T[2]←(T[2]⊞(δ[imod4]⋘(i+2)))⋘6 T[3]←(T[3]⊞(δ[imod4]⋘(i+3)))⋘11 Ki←T[0]‖T[1]‖T[2]‖T[1]‖T[3]‖T[1]

Key schedule for LEA-192 Let K=K[0]‖K[1]‖K[2]‖K[3]‖K[4]‖K[5] be a 192-bit key, where K[i] (0≤i<6) are 32-bit blocks. The key schedule for LEA-192 takes K and six 32-bit constants δ[i] (0≤i<6) as inputs and outputs twenty-eight 192-bit round keys Ki (0≤i<28). The key schedule operation for LEA-192 is as follows:

T[0]‖T[1]‖T[2]‖T[3]‖T[4]‖T[5]←K[0]‖K[1]‖K[2]‖K[3]‖K[4]‖K[5] for i=0 to 27 T[0]←(T[0]⊞(δ[imod6]⋘i))⋘1 T[1]←(T[1]⊞(δ[imod6]⋘(i+1)))⋘3 T[2]←(T[2]⊞(δ[imod6]⋘(i+2)))⋘6 T[3]←(T[3]⊞(δ[imod6]⋘(i+3)))⋘11 T[4]←(T[4]⊞(δ[imod6]⋘(i+4)))⋘13 T[5]←(T[5]⊞(δ[imod6]⋘(i+5)))⋘17 Ki←T[0]‖T[1]‖T[2]‖T[3]‖T[4]‖T[5]

Key schedule for LEA-256 Let K=K[0]‖K[1]‖K[2]‖K[3]‖K[4]‖K[5]‖K[6]‖K[7] be a 256-bit key, where K[i] (0≤i<8) are 32-bit blocks. The key schedule for LEA-192 takes K and eight 32-bit constants δ[i] (0≤i<8) as inputs and outputs thirty-two 192-bit round keys Ki (0≤i<32). The key schedule operation for LEA-256 is as follows:

T[0]‖T[1]‖T[2]‖T[3]‖T[4]‖T[5]‖T[6]‖T[7]←K[0]‖K[1]‖K[2]‖K[3]‖K[4]‖K[5]‖K[6]‖K[7] for i=0 to 31 T[6imod8]←(T[6imod8]⊞(δ[imod8]⋘i))⋘1 T[6i+1mod8]←(T[6i+1mod8]⊞(δ[imod8]⋘(i+1)))⋘3 T[6i+2mod8]←(T[6i+2mod8]⊞(δ[imod8]⋘(i+2)))⋘6 T[6i+3mod8]←(T[6i+3mod8]⊞(δ[imod8]⋘(i+3)))⋘11 T[6i+4mod8]←(T[6i+4mod8]⊞(δ[imod8]⋘(i+4)))⋘13 T[6i+5mod8]←(T[6i+5mod8]⊞(δ[imod8]⋘(i+5)))⋘17 Ki←T[6imod8]‖T[6i+1mod8]‖T[6i+2mod8]‖T[6i+3mod8]‖T[6i+4mod8]‖T[6i+5mod8]

Constant values The eight 32-bit constant values δ[i] (0≤i<8) used in the key schedule are given in the following table.

Security As of 2019, no successful attack on full-round LEA is known. As is typical for iterated block ciphers, reduced-round variants have been attacked. The best published attacks on LEA in the standard attack model (CPA/CCA with unknown key) are boomerang attacks and differential linear attacks. The security margin to the whole rounds ratio is greater than 37% against various existing cryptanalytic techniques for block ciphers.

Performance LEA has very good performance in a general-purpose software environment. In particular, it is possible to encrypt at a rate of about 1.5 to 2 times on average, compared to AES, the most widely used block cipher in various software environments. The tables below compare the performance of LEA and AES using FELICS (Fair Evaluation of Lightweight Cryptographic Systems), a benchmarking framework for evaluation of software implementations of lightweight cryptographic primitives.

Test vectors Test vectors for LEA for each key length are as follows. All values are expressed in hexadecimal form.

LEA-128 Key: 0f 1e 2d 3c 4b 5a 69 78 87 96 a5 b4 c3 d2 e1 f0 Plaintext: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f Ciphertext: 9f c8 4e 35 28 c6 c6 18 55 32 c7 a7 04 64 8b fd LEA-192 Key: 0f 1e 2d 3c 4b 5a 69 78 87 96 a5 b4 c3 d2 e1 f0 f0 e1 d2 c3 b4 a5 96 87 Plaintext: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f Ciphertext: 6f b9 5e 32 5a ad 1b 87 8c dc f5 35 76 74 c6 f2 LEA-256 Key: 0f 1e 2d 3c 4b 5a 69 78 87 96 a5 b4 c3 d2 e1 f0 f0 e1 d2 c3 b4 a5 96 87 78 69 5a 4b 3c 2d 1e 0f Plaintext: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f Ciphertext: d6 51 af f6 47 b1 89 c1 3a 89 00 ca 27 f9 e1 97

Implementations LEA is free for any use: public or private, commercial or non-commercial. The source code for distribution of LEA implemented in C, Java, and Python can be downloaded from KISA's website. In addition, LEA is contained in Crypto++ library, a free C++ class library of cryptographic schemes.

KCMVP LEA is one of the cryptographic algorithms approved by the Korean Cryptographic Module Validation Program (KCMVP).

Standardization LEA is included in the following standards.

… excerpt ends here. Continue reading the full article.

Illustrations

LEA (cipher) illustration

Worked examples

Example 1 — a first encounter with LEA (cipher)

Start with the simplest possible case. Write down what LEA (cipher) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 LEA (cipher) 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 LEA (cipher) 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 LEA (cipher)

In research
LEA (cipher) appears in 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 LEA (cipher) 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
LEA (cipher) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Block ciphers, so understanding it makes those chapters shorter.
In everyday life
Look for LEA (cipher) 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 “LEA (cipher)” →

How to study LEA (cipher) in 20 minutes

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

Frequently asked questions

What is LEA (cipher) in simple terms?

The Lightweight Encryption Algorithm (also known as LEA) is a 128-bit block cipher developed by South Korea in 2013 to provide confidentiality in high-speed environments such as big data and cloud computing, as well as lightweight environments such as IoT devices and mobile devices. LEA has three d…

Why does LEA (cipher) matter?

Because it connects several 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 LEA (cipher)?

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 LEA (cipher).

Tags

  • Block ciphers

Keep exploring