Skip to main content
IoT
PSUT Engineering StudioPrincess Sumaya University for Technology
Student Edition
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
Home / IoT Security and Privacy / Cryptography Engineering
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
CRYPTOGRAPHY ENGINEERING · CR12 · FINITE FIELDS
IoT Security and Privacy

\(\mathrm{GF}(2^{8})\) · AES xtime and inverses

AES uses \(m(x)=x^8+x^4+x^3+x+1\) (0x11B).

CR12 · Laboratory mentorAsk about the current operation and its intermediate values.
CR12 · Academic orientation

Scope and objectives

Scope of the experiment

AES bytes represent polynomials of degree at most seven. The irreducible modulus is \(x^{8}\)+\(x^{4}\)+\(x^{3}\)+x+1=0x11B. Multiplication by x is called xtime; it is central to MixColumns.

The focus of this experiment is to calculate AES xtime and conditional reduction modulo 0x11B. Students then multiply and invert nonzero bytes in \(\mathrm{GF}(2^{8})\), and verify products using a second polynomial representation. 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

  • Calculate AES xtime and conditional reduction modulo 0x11B.
  • Multiply and invert nonzero bytes in \(\mathrm{GF}(2^{8})\).
  • Verify products using a second polynomial representation.
  • 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 calculate AES xtime and conditional reduction modulo 0x11B, multiply and invert nonzero bytes in \(\mathrm{GF}(2^{8})\), and verify products using a second polynomial representation.

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 products using a second polynomial representation. Separate predicted values from observations.

Prerequisite knowledge and related learning

Use the curriculum sequence and the Concepts section for prerequisite terminology. After completion, continue to AES · architecture and column-major state.

Environment and experimental methodology

A standard browser and the experiment-specific Python implementation or Colab notebook. Where the practical uses a protocol model, model results are distinguished from actual local cryptographic operations.

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.

01 · Experiment overview

CR12 · \(\mathrm{GF}(2^{8})\) · AES xtime and inverses

AES represents bytes in \(\mathrm{GF}(2^{8})\) using \(x^{8}\)+\(x^{4}\)+\(x^{3}\)+x+1. Multiplication by x shifts left and, if the old high bit was 1, reduces using 0x1B after truncation. Multiplication by 3 is xtime(a) XOR a. Extended polynomial Euclid produces inverses.

Before starting

Environment: standard computer, browser and Python/WSL.

Simulation: Editable JavaScript calculation

Technical scope: Classroom computation on a standard computer. Educational cipher code is not a production security implementation.

Complete the six stages in order. Use the same experiment inputs when comparing manual, browser and Python results.

02 · Concepts and mathematical foundations

AES represents bytes in \(\mathrm{GF}(2^{8})\) using \(x^{8}\)+\(x^{4}\)+\(x^{3}\)+x+1. Multiplication by x shifts left and, if the old high bit was 1, reduces using 0x1B after truncation. Multiplication by 3 is xtime(a) XOR a. Extended polynomial Euclid produces inverses.

Learning objectives

Calculate the named operation, inspect its intermediate values, reproduce the result in Python, and explain one controlled change. Prerequisites: binary/hexadecimal arithmetic; complete preceding labs in the same topic where applicable.

Before starting

Environment: standard computer, browser and Python/WSL.

Simulation: Editable JavaScript calculation

Technical scope: Classroom computation on a standard computer. Educational cipher code is not a production security implementation.

Mathematical model

xtime(a) = ((a << 1) & 0xFF) XOR (0x1B if a & 0x80 else 0)

Worked calculation

xtime(0x57)=0xAE; xtime(0xAE)=0x47. 0x57·0x83=0xC1.

Common error and troubleshooting

0x11B is a nine-bit polynomial encoding, not a byte value or an integer modulus.

Check the input format and trace the first step at which your manual result differs. Compare with Python before drawing a conclusion.

AES field multiplication

1 · Principles and purpose

AES bytes represent polynomials of degree at most seven. The irreducible modulus is \(x^{8}\)+\(x^{4}\)+\(x^{3}\)+x+1=0x11B. Multiplication by x is called xtime; it is central to MixColumns.

2 · Mathematical and algorithmic foundations

xtime(a)=((a<<1) XOR 0x11B if bit7=1, else a<<1) & 0xFF. 03·a=xtime(a)⊕a. Inversion for nonzero a can use a^254 in the field.

3 · Worked teaching example

xtime(57)=AE; xtime(AE)=15C⊕11B=47. Thus 04·57=47. Reduction uses the full polynomial including the \(x^{8}\) term.

Verified default trace · 12 intermediate states

Given parameters (teaching example):

{
  "a": "0x57",
  "b": "0x83"
}
StageComputed values
1{ "step": "Operands", "A": "x^6+x^4+x^2+x+1", "B": "x^7+x+1", "modulus": "x^8+x^4+x^3+x+1" }
2{ "step": "Addition", "hex": "D4", "polynomial": "x^7+x^6+x^4+x^2" }
3{ "step": "Multiply term", "term": "x^6+x^4+x^2+x+1", "accumulator": "x^6+x^4+x^2+x+1", "hex": "57" }
4{ "step": "Multiply term", "term": "x^7+x^5+x^3+x^2+x", "accumulator": "x^7+x^6+x^5+x^4+x^3+1", "hex": "F9" }
5{ "step": "Multiply term", "term": "x^13+x^11+x^9+x^8+x^7", "accumulator": "x^13+x^11+x^9+x^8+x^6+x^5+x^4+x^3+1", "hex": "2B79" }
6{ "step": "Long division", "before": "x^13+x^11+x^9+x^8+x^6+x^5+x^4+x^3+1", "cancel": "x^13+x^9+x^8+x^6+x^5", "remainder": "x^11+x^4+x^3+1", "hex": "819" }
7{ "step": "Long division", "before": "x^11+x^4+x^3+1", "cancel": "x^11+x^7+x^6+x^4+x^3", "remainder": "x^7+x^6+1", "hex": "C1" }
8{ "step": "Extended Euclid", "r": "x^8+x^4+x^3+x+1", "s": "x^7+x+1", "quotient": "x", "remainder": "x^4+x^3+x^2+1", "coefficient": "x" }
9{ "step": "Extended Euclid", "r": "x^7+x+1", "s": "x^4+x^3+x^2+1", "quotient": "x^3+x^2+1", "remainder": "x", "coefficient": "x^4+x^3+x+1" }
10{ "step": "Extended Euclid", "r": "x^4+x^3+x^2+1", "s": "x", "quotient": "x^3+x^2+x", "remainder": "1", "coefficient": "x^7" }
11{ "step": "Extended Euclid", "r": "x", "s": "1", "quotient": "x", "remainder": "0", "coefficient": "x^8+x^4+x^3+x+1" }
12{ "step": "Result", "raw": "2B79", "quotient": "28", "remainder": "C1", "inverse": "80", "division": "38", "times02": "AE", "times03": "F9" }

Recorded result

{
  "sum": 212,
  "product": 193,
  "inverse": 128,
  "division": 56
}

Captured earlier local execution. Randomized values and timing can differ; compare the invariant.

4 · Verification and experimental interpretation

Step through the following visualization and compare the named operation with the corresponding computed state. Check the mathematical invariant, inverse operation or protocol acceptance condition. Change one input at a time; distinguish a measured output from a prediction.

Mathematical representation and interpretation

Binary polynomial arithmetic

a_i and b_i are binary coefficients. Multiplication is polynomial multiplication; reduction by the selected irreducible degree-n polynomial m gives a degree below n. It is not ordinary integer remainder arithmetic.

\[A(x)=\sum_{i=0}^{n-1}a_ix^i,\quad A\oplus B=\sum_{i=0}^{n-1}(a_i\oplus b_i)x^i,\quad A\otimes B=(A B)\bmod m(x)\]

For example, over GF(2), (x+1)+(x+1)=0 because each repeated coefficient cancels.

AES field polynomial

Bytes represent coefficients of polynomials over GF(2). xtime multiplies by x, which is the byte 02, then reduces with m(x); 03 times a byte equals xtime(a) XOR a.

\[m(x)=x^8+x^4+x^3+x+1,\qquad \operatorname{xtime}(a)=\begin{cases}(a\ll1)\bmod256,&a<128\\((a\ll1)\bmod256)\oplus\mathrm{1B}_{16},&a\ge128\end{cases}\]

For 0x57, xtime gives 0xAE. For 0xAE, the shifted low byte 0x5C XOR 0x1B gives 0x47.

Concept animation · AES xtime bit transformation

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.

Input byteByte011011011AES modulus: x⁸ + x⁴ + x³ + x + 1Shift leftInput011011011Shift110110110AES modulus: x⁸ + x⁴ + x³ + x + 1Reduce by AES polynomialShift110110110Modulus100011011Reduced010101101AES modulus: x⁸ + x⁴ + x³ + x + 1Verify xtime resultLow byte010101101AES modulus: x⁸ + x⁴ + x³ + x + 1

Step 1 of 4 · Input byte

Input byte

0xDB = 11011011; the leading bit is 1.

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

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

03 · Interactive simulation

Baseline diagram loaded. Interactive engine initializing…

Verified baseline reference — use the live workstation below to explore steps and compare inputs.
CR12 calculated step 1GF(2⁸) · AES field multiplication and inversionAx^6+x^4+x^2+x+1Bx^7+x+1XOR sumx^7+x^6+x^4+x^2Modulus: x^8+x^4+x^3+x+1

Edit the fields and choose Recompute. Use step controls to inspect real calculated states. Hexadecimal byte fields are written without 0x; numeric fields accept decimal or 0x notation.

Calculated result

{
  "sum": 212,
  "product": 193,
  "inverse": 128,
  "division": 56
}
All intermediate trace rows

Guided simulation activity

Use the baseline inputs shown above. Predict a result, advance one operation at a time, inspect the intermediate state, then change only the parameter specified in the Experiments view. Export the trace and compare it with your manual derivation.

Continue to practical experiments →

04 · Experiments and engineering investigations

Analytical preparation — before Python

AES represents bytes in \(\mathrm{GF}(2^{8})\) using \(x^{8}\)+\(x^{4}\)+\(x^{3}\)+x+1. Multiplication by x shifts left and, if the old high bit was 1, reduces using 0x1B after truncation. Multiplication by 3 is xtime(a) XOR a. Extended polynomial Euclid produces inverses. xtime(a) = ((a << 1) & 0xFF) XOR (0x1B if a & 0x80 else 0). xtime(0x57)=0xAE; xtime(0xAE)=0x47. 0x57·0x83=0xC1. 0x11B is a nine-bit polynomial encoding, not a byte value or an integer modulus.

Predict the baseline result before revealing the calculated state. A controlled comparison changes the named input while keeping the other conditions fixed. Record an observed value separately from an expected value.

Part A · Independent theoretical exercises

Complete each question before running the simulator or Python. Show calculations or protocol traces. The teaching example is a method, not a substitute for the assigned values.

01 · Application and derivation

Application and derivation · Independent work

In \(\mathrm{GF}(2^{8})\) modulo 0x11B, compute xtime(0xAE), then 0xAE×0x03. Show the high-bit test, conditional reduction and final XOR. Verify the product using polynomial multiplication.

02 · Calculation

Calculation · Independent work

Compute AES xtime(0x80) and 0x80×0x03. State why ordinary integer modulo 256 is not the field operation.

Required evidence: state the expected invariant or acceptance condition; record hand-derived results, compare with the simulator or Python trace, and explain the first discrepancy. Do not report a predicted value as a measurement.

Expanded independent theoretical exercise bank

Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.

Intermediate · Alternate configuration

Independent theoretical exercise · CR12-01

For the separate teaching-test configuration a: 0x57; b: 0x1, predict sum using the relevant operation or decision rule. Show intermediate work and state whether this is a deterministic result.

Intermediate · Interpret a computation state

Independent theoretical exercise · CR12-02

A teaching trace for \(\mathrm{GF}(2^{8})\) · AES xtime and inverses contains step: Addition; hex: D4; polynomial: x^7+x^6+x^4+x^2. Explain the role of polynomial (recorded value x^7+x^6+x^4+x^2) and identify the rule or input that determines it. Distinguish an intermediate state from the final result.

Advanced · Identify a terminal invariant

Independent theoretical exercise · CR12-03

The first teaching trace contains step: Operands; A: x^6+x^4+x^2+x+1; B: x^7+x+1; modulus: x^8+x^4+x^3+x+1; the last contains step: Result; raw: 2B79; quotient: 28; remainder: C1; inverse: 80; division: 38; times02: AE; times03: F9. Identify one distinction between the initial operation and completion. What additional condition must hold to use the result?

Challenging · Controlled algorithm verification

Independent theoretical exercise · CR12-04

Plan a comparison of a: 0x57; b: 0x83 with a: 0x57; b: 0x1. Record the dependent value sum, identify the changed factor(s), and describe the verification and failure criterion without claiming a real security measurement.

Part B · Guided simulation and practical procedure

Before starting — tools and setup

Standard computer; extract the WSL toolkit into a new directory. For the browser activity, use the integrated workstation. Editable browser calculation

Install Python dependencies only if required by the selected toolkit README. Use its requirements file and virtual environment instructions.

Open complete, verified WSL commands in Part C ↓

01

Baseline calculation or protocol trace

  1. Use the exact baseline input below and write a prediction.
  2. Select the baseline configuration below. Predict the relevant operation using the theory; execute the workstation and record the first and final state. Reproduce the same input with Python.
  3. Save the trace and compare it with the reference output.

Experimental inputs

Experimental reference · json
{"a":"0x57","b":"0x83"}
Verified baseline reference (check after predicting)
Experimental reference · json
{"sum":212,"product":193,"inverse":128,"division":56}

Compare your baseline with the verified reference output below; for runtime-dependent results, compare invariants and report actual measurements instead of expecting identical timing or randomly generated values.

Evidence to record

shift/XOR raw product, reductions, inverse and xtime

Run baseline →
02

Part D · Controlled investigation

  1. Change a to 0xAE; b to 0x02, then 0x03. Hold modulus 0x11B.
  2. Record the conditions held fixed: modulus 0x11B
  3. Collect shift/XOR raw product, reductions, inverse and xtime Compare the first differing intermediate step and explain the relationship.
TrialInput configurationPredictionObservedVerification
1{"a":"0x57","b":"0x83"}
2{"a":"0x57","b":"0x1"}

Use the table as a recording template; enter your own measured values in the field below or reproduce it in your report.

Return to simulation →
03

Part E/F · Independent Python verification and deliverables

  1. Download the notebook or toolkit and run the default example.
  2. Reproduce at least one changed input; compare the intermediate values with the browser where supported.
  3. Complete the independent assessment below without copying the worked baseline. Explain discrepancies and distinguish mathematical results from security claims.
Additional investigation instructions

A controlled comparison changes one independent input while holding other inputs fixed, then measures its effect on the dependent output. A baseline is the unmodified run. Evidence-based reasoning means citing the actual observed values, not merely asserting that an algorithm is secure.

  1. Predict the result using the mathematical model before operating the simulator.
  2. Run a=0x57,b=0x83. Record the raw product and reduction. Keep a fixed and vary b=0x02,0x03. Then set a=0xAE,b=0x02 to exercise the high-bit reduction. Compare each result with xtime.
  3. Export the calculated trace. Reproduce the same inputs in Python and compare every relevant intermediate value.
  4. Submit a table with one row per trial: inputs, fixed conditions, intermediate values, measured result, verification equation and interpretation. State why small classroom calculations do not establish production security.
TrialChanged inputFixed conditionsPredictionMeasured valueReason / limitation
BaselineNoneDefaultStudent predictionRecord traceExplain
Trial 1Specified changeUnchanged inputsStudent predictionRecord traceExplain

Part C · Python, Google Colab and WSL

The standalone implementation uses the same synthetic baseline and calculations as the browser. In Colab, download the notebook, open Colab and upload it using File → Upload notebook. Run all cells in order.

WSL / Linux execution workflow

Use Ubuntu or Kali WSL, not PowerShell. Download the toolkit above to your computer. If Python, venv or unzip is missing, install these prerequisites once (requires administrator permission and network access).

Optional prerequisites · bash
sudo apt update
sudo apt install -y python3 python3-venv unzip

In WSL, enter the actual downloaded ZIP path when prompted (for example, a file under /mnt/c/Users/…/Downloads). Extract to a new, dedicated directory. If this directory already exists from a previous extraction, use the existing verified toolkit or choose a clean directory rather than overwriting it.

Step 1 · Extract · bash
read -r -p "Full path to PSUT_V22_9_9_Cryptography_WSL.zip: " ZIP
DEST="$HOME/psut-crypto-v22.9.9"
if [ -f "$ZIP" ] && [ ! -e "$DEST" ]; then
    mkdir "$DEST" && unzip "$ZIP" -d "$DEST"
else
    echo "Check ZIP path and use a fresh destination."
fi

Create the isolated environment in the extracted toolkit root, activate it, then enter this experiment’s actual folder. Install only its declared dependencies. A comment-only requirements file requires no third-party packages.

Step 2 · Activate and install · bash
cd ~/psut-crypto-v22.9.9
python3 -m venv .venv
source .venv/bin/activate
cd CR12
ls
python -m pip install -r requirements.txt

Execute the default run and save the genuine program output. Then run the supplied regression test and the baseline fixture through the explicit input interface.

Step 3 · Run and verify · bash
python lab.py | tee my-results.json
python test_lab.py
python lab.py --params example-input.json
python -m json.tool my-results.json

To change inputs, copy example-input.json, edit the copy in a text editor and run the command below. The original fixture is preserved.

Step 4 · Change an input · bash
cp example-input.json my-input.json
# Edit my-input.json with your preferred editor.
python lab.py --params my-input.json

These scripts terminate normally. Use Ctrl+C to stop a long-running calculation if needed. When finished, leave the isolated virtual environment; no global service cleanup is required for these local examples.

Step 5 · Finish · bash
deactivate

Declared dependencies: # Standard library only for core experiment

Expected terminal output — captured local execution

This excerpt contains the actual first trace step and final result from python lab.py, followed by the actual regression test output. Full stdout is in CR12/verified-output.txt inside the toolkit. Timing, random signatures, keys, certificate fields and implementation-dependent sizes can vary; compare the invariant and record your own observations.

Verified execution excerpt · text
{
  "first_step": {
    "step": "Operands",
    "A": "x^6+x^4+x^2+x+1",
    "B": "x^7+x+1",
    "modulus": "x^8+x^4+x^3+x+1"
  },
  "result": {
    "sum": 212,
    "product": 193,
    "inverse": 128,
    "division": 56
  }
}

Test script output:
PASS

Check the output JSON and the test exit status. An assertion error means the expected invariant was not met. If Python reports a missing module, activate the environment and install the experiment’s requirements file; if a file is missing, check pwd and ls.

Inspect the documented Python implementation
Documented Python implementation · python
# ============================================================
# CR12 | Educational implementation and trace functions
# Copyright © 2026/2027 Dr. Mohammad Alja’afreh
# PSUT IoT Engineering Studio | Educational, synthetic inputs
# ============================================================
def poly(n):
    return '+'.join('1' if i==0 else 'x' if i==1 else f'x^{i}' for i in range(n.bit_length()-1,-1,-1) if n>>i&1) or '0'

# Multiply binary polynomials by XORing shifted copies; no integer carries.
def pmul(a,b):
    r=0
    for i in range(b.bit_length()):
        if b>>i&1: r ^= a<<i
    return r

# Cancel the leading polynomial term repeatedly, retaining quotient and remainder.
def pdiv(a,b):
    if not b: raise ValueError('Zero polynomial divisor')
    q=0; steps=[]
    while a and a.bit_length()>=b.bit_length():
        k=a.bit_length()-b.bit_length(); old=a; q ^= 1<<k; a ^= b<<k
        steps.append((old,b<<k,a))
    return q,a,steps

# Reduce the carry-free product by the selected irreducible polynomial.
def gm(a,b,m=0x11b): return pdiv(pmul(a,b),m)[1]

# Use polynomial extended Euclid to find a multiplicative inverse.
def gi(a,m=0x11b):
    if not a: raise ValueError('Zero has no multiplicative inverse')
    r,s=m,a; t,u=0,1
    while s:
        q,v,_=pdiv(r,s); r,s=s,v; t,u=u,t^pmul(q,u)
    if r!=1: raise ValueError('Not invertible')
    return pdiv(t,m)[1]

def hx(n,w=2): return f'{n:0{w}X}'

def row(label,**values): return {'step':label,**values}

def n(s): return int(s,0)

def b(s): return bytes.fromhex(s)

def pack(result,trace): return {'result':result,'trace':trace}

EXTRA = {'mod': 283, 'degree': 8}

def run(p):
    a=n(p['a']); b0=n(p['b']); m=EXTRA['mod']; degree=EXTRA['degree']
    if not 0<=a<2**degree or not 0<=b0<2**degree: raise ValueError('Operand outside field')
    raw=pmul(a,b0); q,r,steps=pdiv(raw,m); t=[row('Operands',A=poly(a),B=poly(b0),modulus=poly(m)),row('Addition',hex=hx(a^b0),polynomial=poly(a^b0))]; acc=0
    for i in range(b0.bit_length()):
        if b0>>i&1:
            acc^=a<<i; t.append(row('Multiply term',term=poly(a<<i),accumulator=poly(acc),hex=hx(acc)))
    for old,sub,new in steps:t.append(row('Long division',before=poly(old),cancel=poly(sub),remainder=poly(new),hex=hx(new)))
    inv=gi(b0,m) if b0 else None; div=gm(a,inv,m) if inv is not None else None
    if inv is not None:
        rr,ss=m,b0;tt,uu=0,1
        while ss:
            qq,vv,_=pdiv(rr,ss); t.append(row('Extended Euclid',r=poly(rr),s=poly(ss),quotient=poly(qq),remainder=poly(vv),coefficient=poly(tt^pmul(qq,uu))));rr,ss=ss,vv;tt,uu=uu,tt^pmul(qq,uu)
    t.append(row('Result',raw=hx(raw),quotient=hx(q),remainder=hx(r),inverse=hx(inv) if inv is not None else 'undefined',division=hx(div) if div is not None else 'undefined',times02=hx(gm(a,2,m)),times03=hx(gm(a,3,m))))
    return pack({'sum':a^b0,'product':r,'inverse':inv,'division':div},t)

PARAMS = {'a': '0x57', 'b': '0x83'}
EXPECTED = {'sum': 212, 'product': 193, 'inverse': 128, 'division': 56}
ALT = {'a': '0x57', 'b': '0x1'}
ALT_EXPECTED = {'sum': 86, 'product': 87, 'inverse': 1, 'division': 87}

if __name__ == "__main__":
    import argparse, json
    parser=argparse.ArgumentParser(description="CR12 synthetic cryptography exercise")
    parser.add_argument("--params", help="JSON parameter override file")
    parser.add_argument("--test", action="store_true")
    args=parser.parse_args()
    if args.test:
        assert run(PARAMS)["result"] == EXPECTED
        assert run(ALT)["result"] == ALT_EXPECTED
        print("CR12 default and changed input passed")
    else:
        parameters=PARAMS if not args.params else {**PARAMS,**json.load(open(args.params))}
        print(json.dumps(run(parameters),indent=2))
Verified default result
Reference result · json
{
  "sum": 212,
  "product": 193,
  "inverse": 128,
  "division": 56
}

05 · Interactive flashcards

Recall before revealing. Review and mastery ratings remain on this device.

Browse all explanations
When is 0x1B XORed in xtime?

When the original byte has its most significant bit set.

Compute xtime(0x57).

0xAE.

Compute xtime(0xAE).

0x47.

What is 03·a in AES?

xtime(a) XOR a.

Explain the baseline worked calculation.

xtime(0x57)=0xAE; xtime(0xAE)=0x47. 0x57·0x83=0xC1.

What is the common misconception?

0x11B is a nine-bit polynomial encoding, not a byte value or an integer modulus.

06 · Knowledge assessment

Formative check

Which condition triggers reduction by 0x1B in xtime?

Responses are for instructor review; no grading key is provided here.

Independent assessment

Calculate 0xD4 multiplied by 0x03, then verify with the full field multiplication.

Submit handwritten or typed calculations, a browser trace and matching Python output. Explain the operation and any invalid condition. Evaluation: mathematics 40%, reproducibility 30%, interpretation 20%, limitations 10%.

Part F · Engineering evidence record

Record the baseline, prediction, changed input, observed result, discrepancy and limitation. Save locally or export with the displayed result. This is not an official submission.

All Cryptography Engineering labsNext laboratory · CR13 →

How to investigate · CR12

Independent variable: a to 0xAE; b to 0x02, then 0x03.

Controlled variables: modulus 0x11B.

Dependent evidence: shift/XOR raw product, reductions, inverse and xtime.

Weak conclusion: “The output changed.” Stronger reasoning: cite both measured values, name the transformation responsible, and state why the observation does or does not generalize.

Dr. Mohammad · CR12

Offline, deterministic, current-step tutoring. No external AI service or real hardware access.