Skip to main content
IoT
PSUT Engineering StudioPrincess Sumaya University for Technology
Student Edition
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
IoT Security and Privacy / LC02
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
ESSENTIAL LABORATORY · LC02 · IoT SECURITY AND PRIVACY
IoT Security and Privacy

SIMON — lightweight Feistel block cipher

Trace SIMON32/64 key expansion, encryption, inverse and avalanche.

Design experiment & verify evidence →
LC02 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice
LC02 · Academic orientation

Scope and objectives

Scope of the experiment

Trace SIMON32/64 key expansion, encryption, inverse and avalanche.

The focus of this experiment is to trace SIMON round rotations, AND and XOR on fixed-width words. Students then calculate selected round states and inverse recovery, and verify reference vectors and distinguish lightweight historical evaluation from deployment advice. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.

Learning objectives

  • Trace SIMON round rotations, AND and XOR on fixed-width words.
  • Calculate selected round states and inverse recovery.
  • Verify reference vectors and distinguish lightweight historical evaluation from deployment advice.
  • Record the relevant inputs, intermediate states and final verification result before changing the reference configuration.
  • Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.

Expected learning outcomes

On completion, students can trace SIMON round rotations, AND and XOR on fixed-width words, calculate selected round states and inverse recovery, and verify reference vectors and distinguish lightweight historical evaluation from deployment advice.

Required deliverables

Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing verify reference vectors and distinguish lightweight historical evaluation from deployment advice. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to SPECK — lightweight ARX block cipher.

Environment and experimental methodology

The included teaching workstation and the listed Python/Colab or WSL implementation. Historical and small-number constructions are instructional, not deployment recommendations.

Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.

Scientific concepts and engineering principles

Scientific architecture · LC02 · SIMON — lightweight Feistel block cipher

Rotate the left word, AND and XOR the branches, mix the right word and subkey, then exchange words.
Rotate the left word, AND and XOR the branches, mix the right word and subkey, then exchange words.

Scientific foundations and analytical reasoning

SIMON32/64 uses 16-bit words and Feistel function f(x)=(ROL1(x)&ROL8(x)) XOR ROL2(x); XOR with y and round key, then exchange.

Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.

Scientific theory · Bitwise Feistel round

SIMON32/64 uses two 16-bit words and a 64-bit key with 32 rounds. Its nonlinear function combines rotations and AND; the next left word is y XOR f(x) XOR k, and the next right word is x. A Feistel structure permits inversion using the round keys in reverse order. Rotation wraps bits within the fixed word width.

Worked example and engineering interpretation

For x=0001 hex, ROL1=0002, ROL8=0100, ROL2=0004; their AND/XOR combination is 0004. With y=0000 and k=0000 the next words are 0004 and 0001. Check against the round inspector, then compare the supplied full-round vector. This small block size is for education.

Engineering principles · additional worked teaching example

SIMON is a lightweight Feistel-family block cipher using rotations, bitwise AND and XOR; exact round/key schedule depends on variant. Feistel structure permits inverse round by reconstructing previous right from next left, then XORing round function.

From theory to experiment

Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.

How to investigate SIMON — lightweight Feistel block cipher

Trace SIMON32/64 key expansion, encryption, inverse and avalanche.

Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.

Experiment-specific guided practice

Objective: Trace SIMON32/64 key expansion, encryption, inverse and avalanche.

  1. SIMON family and round equations — complete its numbered steps and record the requested evidence.
  2. Key schedule and worked encryption — complete its numbered steps and record the requested evidence.
  3. Avalanche, inverse and implementation cost — complete its numbered steps and record the requested evidence.
  4. Compare observations with the reference checks and submit the required evidence.

Reference check: c69be9bb a28aa932 32 round keys; k0 is the rightmost word. Original plaintext recovered; distance varies by round.

Model boundary: SIMON is a lightweight block cipher family oriented toward simple hardware operations. This lab uses 32-bit blocks and a 64-bit key (four 16-bit words), z0 and 32 rounds, as in the supplied slides. The round function is f(x)=(ROL1(x) AND ROL8(x)) XOR ROL2(x); the new left is old right XOR f(left) XOR round key, and the new right is old left. The least significant master-key word is k0. Small variants are educational, not modern IoT deployment choices; raw block ciphers do not authenticate data.

Independent task and submission evidence

2. Key schedule and worked encryption — complete its numbered steps and record the requested evidence. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.

Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.

SIMON block-cipher family

SIMON uses a Feistel-like two-word structure oriented toward simple hardware logic. SIMON32/64 uses 32-bit blocks, four 16-bit master-key words and 32 rounds. This small configuration is an educational example, not a modern bulk-encryption choice.

Round datapath

For left word x, define f(x)=(ROL1(x) AND ROL8(x)) XOR ROL2(x). The new pair is (y XOR f(x) XOR k,x). Word rotations wrap bits at the fixed width. The inverse retrieves the old pair using the same round key.

Key expansion and verification

Expand four initial words with a fixed constant, a sequence bit and rotated prior words. Use the exact word-order convention of the simulator; independently check the known-answer ciphertext. Compare one-bit input and key changes separately using round-by-round Hamming distances.

Prerequisites: EC07

LC02 engineering diagram
Algorithm structure and data flow. Use the simulation to inspect the corresponding numerical transformations.

Block and key parameter families

Block width (bits)Supported key widths (bits)
3264
4872, 96
6496, 128
9696, 144
128128, 192, 256

Engineering diagrams

SIMON Feistel datapath and round-key injection.
SIMON Feistel datapath and round-key injection.

Worked engineering reasoning and boundary conditions

SIMON uses Feistel-style word operations: AND, XOR and fixed rotations. The block/key sizes and round counts depend on the named variant; word arithmetic is masked to the stated width.

Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.

Concept animation · operation pathway

Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.

SIMON — lightweight Feistel block cipher: operation pathwayWordsL=26, R=C1Illustrative roundF=58XOR26 XOR 58 = 7EExchangeL'=C1, R'=7ERead the active operation, then inspect the accumulated state.

Step 1 of 4 · Words

Words

Words
L=26, R=C1

Teaching example only; inspect live calculations or real practical evidence separately.

Interactive flashcards

Self-rated study progress is stored locally, not used for official grades.

Browse all explanations
Which operations define SIMON?

Rotations, AND and XOR in a Feistel construction.

How many rounds in SIMON32/64?

32.

Why inspect round keys?

To verify the key schedule.

Why is a 32-bit block unsuitable for modern bulk protection?

Small blocks reach collision limits quickly.

What are SIMON32/64 word widths?

Two 16-bit data words and four 16-bit key words.

What is f(x) in SIMON?

(ROL1(x) AND ROL8(x)) XOR ROL2(x).

How is the new left word calculated?

f(x) XOR y XOR round key.

What becomes the new right word?

The old left word.

What is the model example's plaintext?

00ff00ff.

What is its master key?

0123456789abcdef.

What ciphertext does the worked example produce?

a28aa932.

What is the round key schedule's z sequence used for?

A fixed sequence of round-dependent bits.

Why inspect a one-bit plaintext change?

To quantify diffusion across rounds.

Why distinguish rotate from shift?

Rotation wraps discarded bits back into the word.

Given xᵢ=0 and yᵢ=0, what is the output of a SIMON round with key kᵢ?

f(0)=0, so \(x_{i+1}\)=\(k_{i}\) and \(y_{i+1}\)=0.

What is the effect of ROL8 on a 16-bit word 0x1234?

0x3412. Rotation wraps all bits; it is not a lossy shift.

How is the inverse Feistel step obtained?

Recover \(x_{i}\)=\(y_{i+1}\), then \(y_{i}\)=\(x_{i+1}\) XOR f(\(x_{i}\)) XOR \(k_{i}\).

Which independent values are compared in the one-bit avalanche experiment?

Encrypt the original and one-bit-modified block with the same key, then compare corresponding round states using Hamming distance.

Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research