CY-801 Hardware Security

Hardware Security (CY-801) Important Questions

RGPV · B.Tech · Cyber Security · Semester 8 · Current scheme · 2 papers (2024 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Hardware Security important questions

Download Paperwala Imp Question & Answer (PDF)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

Hardware Security important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. Hardware security: meaning, significance, threats and best practices

Asked 2 times in 2024, 2025 · Unit 1

From the papers

  • “Discuss the different types of hardware security best practices.” (Jun 2025)
  • “Define hardware security. Explain the significance of hardware security in detail.” (May 2024)

The short answer

Hardware security protects the physical chips and devices of a system with the secrets inside them from attacks on the hardware itself: tampering, side channels, faults, hidden hardware Trojans, cloning and piracy. Software security assumes the hardware can be trusted. Hardware security makes that trust real, so it is the root of trust for everything above it.

Write these points

Significance

  • Keys, passwords and biometric data finally live in hardware; if the chip leaks them, encryption is useless.
  • Chips are designed in one country, made in another and assembled in a third, so the supply chain can add Trojans or fakes.
  • Hardware bugs cannot be patched easily: Spectre and Meltdown hit billions of processors.
  • IoT, cars, medical devices and smart cards are physically reachable by attackers.
  • Counterfeit and pirated chips cost the industry billions and fail in the field.

Main threats

ThreatWhat happensExample
Side-channel attackPower, time, sound or EM leak the keyPower analysis on a smart card
Fault attackA glitch makes the chip compute wronglyVoltage glitch on RSA-CRT
Hardware TrojanHidden malicious circuitKill switch added at the foundry
IP and IC piracyDesign stolen or chips overproducedExtra chips sold by the foundry
Physical tamperingProbing, reverse engineeringReading a key from memory

Best practices

  1. Root of trust: TPM, secure element or PUF to hold keys.
  2. Secure boot: run only firmware signed by the maker.
  3. Side-channel and fault countermeasures: masking, constant-time code, error checks.
  4. Supply chain checks: trusted vendors, testing for Trojans and fakes.
  5. Tamper detection: sensors and shields that erase keys on attack.
  6. Disable debug ports (JTAG) in products; update firmware securely.

A smart door lock.

The lock stores its key in normal flash and has an open debug port.

An attacker opens the case, connects to the port and reads the key in minutes.

Fixed design: key kept in a secure element, debug port disabled, firmware signed and checked at boot.

The same attack now gives nothing, because the key never leaves the secure element.

Real-life example

A house with a strong digital lock but a door made of cardboard is not safe. Hardware security makes the door itself strong.

Figure: layers of trust
Figure: layers of trust

Same or opposite: hardware and software security

PointHardware securitySoftware securitySame or opposite
ProtectsChips, devices, physical secretsPrograms and dataOpposite
Aim is to protect the systemYesYesSame
Fixing a flawHard, needs new hardwarePatch or updateOpposite
Typical attacksSide channel, fault, TrojanMalware, injectionOpposite

Exam tip. Define hardware security and say why it is the root of trust. Give the threats table and list six best practices. The smart lock example shows the point quickly.

Back to the topic list

Q2. Finite fields: definition, properties, GF(4) construction and Euler's phi

Asked 2 times in 2024, 2025 · Unit 1

From the papers

  • “Show that phi(n) >= 1 for all n >= 1.” (Jun 2025)
  • “What is a finite field? Show that for any element m in F, m * 0 = 0.” (May 2024)
  • “Construct a finite field with 2^2 = 4 elements using the prime degree 2 polynomial f(x) = x^2 + x + 1 in F2[x].” (May 2024)

The short answer

A finite field (Galois field, GF(q)) is a finite set with addition and multiplication where every rule of ordinary arithmetic holds: both operations are closed, associative and commutative, multiplication distributes over addition, there are identities 0 and 1, every element has an additive inverse and every non-zero element has a multiplicative inverse. A finite field exists only when q is a prime power pⁿ. Cryptography uses GF(p) and GF(2ⁿ).

Write these points

Proof: m · 0 = 0 for every m in F

  1. 0 is the additive identity, so 0 = 0 + 0.
  2. Multiply by m: m · 0 = m · (0 + 0) = m · 0 + m · 0 (distributive law).
  3. Add the additive inverse −(m · 0) to both sides: 0 = m · 0.
  4. Hence m · 0 = 0 for every m in F.

Euler's phi function: φ(n) ≥ 1 for all n ≥ 1

φ(n) counts the numbers k with 1 ≤ k ≤ n and gcd(k, n) = 1. For every n, k = 1 qualifies, because gcd(1, n) = 1. So at least one number is counted and φ(n) ≥ 1. Examples: φ(1) = 1, φ(7) = 6, φ(9) = 6 (1, 2, 4, 5, 7, 8).

Construct GF(4) with f(x) = x² + x + 1 over F₂.

f has no root in F₂: f(0) = 1, f(1) = 1 + 1 + 1 = 1. A degree-2 polynomial with no root is irreducible, so F₂[x]/f(x) is a field.

Elements: all polynomials of degree below 2: 0, 1, x, x + 1 (4 elements). In bits: 00, 01, 10, 11.

Addition is bitwise XOR: x + (x + 1) = 1; (x + 1) + 1 = x; every element is its own negative.

Multiplication uses x² = x + 1 (from f(x) = 0): x · x = x + 1; x · (x + 1) = x² + x = 1; (x + 1)² = x² + 1 = x.

So x and x + 1 are inverses of each other; every non-zero element has an inverse, which confirms GF(4) is a field.

×1xx + 1
11xx + 1
xxx + 11
x + 1x + 11x

Real-life example

A clock is like a finite field: after 12 you come back to 1. Arithmetic never leaves the set, which is exactly what hardware with a fixed number of bits needs.

Figure: building GF(2ⁿ)
Figure: building GF(2ⁿ)

Same or opposite: GF(p) and GF(2ⁿ)

PointGF(p)GF(2ⁿ)Same or opposite
Elements0 to p − 1Polynomials with n bitsOpposite
Is a finite fieldYesYesSame
AdditionMod pXOR, no carryOpposite
Best in hardwareNeeds carriesVery cheapOpposite

Exam tip. Write the field axioms, then the three-line proof of m · 0 = 0. Construct GF(4) step by step and draw its multiplication table. For φ(n) ≥ 1, the gcd(1, n) = 1 argument is enough.

Back to the topic list

Q3. Physically unclonable functions (PUFs): types, advantages and taxonomy

Asked 2 times in 2024, 2025 · Unit 2

From the papers

  • “What is a physical unclonable function? Explain its advantages.” (Jun 2025)
  • “What is PUF? Demonstrate taxonomy of PUF with a neat sketch.” (Jun 2025)
  • “Write short note on: Security parameters of PUF.” (May 2024)

The short answer

A physically unclonable function (PUF) is a circuit that gives a unique response to a challenge because of tiny random differences created when the chip is made. Even the maker cannot copy those differences, so the PUF acts as a fingerprint of the chip. A challenge with its response is a challenge-response pair (CRP).

Write these points

Advantages

  • No key is stored in memory; the secret is made when needed, so there is nothing to read out.
  • Cannot be cloned, even by the foundry.
  • Cheap: built from normal logic, no special process.
  • Tamper evident: probing changes the physical features and the response.
  • Used for device authentication, key generation and anti-counterfeiting.

Taxonomy

ClassTypeSource of randomness
Strong PUF (many CRPs)Arbiter PUFDelay difference of two paths
Strong PUFOptical PUFSpeckle pattern of a scattering material
Weak PUF (few CRPs)SRAM PUFPower-up state of memory cells
Weak PUFRing oscillator PUFFrequency of identical oscillators
Weak PUFButterfly PUFSettling of cross-coupled latches
Non-siliconCoating PUFCapacitance of a random coating

Security parameters

  • Uniqueness: different chips give different responses (inter-chip Hamming distance near 50%).
  • Reliability: one chip gives the same response each time (intra-chip distance near 0%).
  • Uniformity: about half the bits are 1.
  • Unpredictability: responses cannot be modelled from known CRPs.
  • Unclonability and tamper evidence.

Authenticating a chip with a PUF.

At the factory the owner applies 1,000 random challenges to chip X and stores the responses in a database.

In the field the server sends one unused challenge, say 1010 1100. It expects the response 0110 1001.

A fake chip answers 1110 0001: 4 of 8 bits differ (50%), so it is rejected.

The real chip answers 0110 1011: 1 bit differs (12.5%), within the noise limit, so it is accepted. The used CRP is deleted to stop replay.

Real-life example

Fingerprints come from random skin growth in the womb; no one can make a copy on purpose. A PUF is the chip's fingerprint, made by random variation in manufacturing.

Figure: taxonomy of PUFs
Figure: taxonomy of PUFs

Same or opposite: strong and weak PUF

PointStrong PUFWeak PUFSame or opposite
Number of CRPsVery largeSmallOpposite
Built from manufacturing variationYesYesSame
Main useAuthenticationKey generationOpposite
ExampleArbiter PUFSRAM PUFOpposite

Exam tip. Define PUF and CRP, list five advantages and draw the taxonomy tree with strong, weak and non-silicon classes. Add the security parameters if asked.

Back to the topic list

Q4. PUF quality evaluation and design techniques to increase response quality

Asked 2 times in 2024, 2025 · Unit 2

From the papers

  • “Explain about design techniques to increase PUF response quality.” (May 2024)
  • “Write short note on: PUF quality evaluation.” (Jun 2025)
  • “Write short note on: Security parameters of PUF.” (May 2024)

The short answer

PUF quality is measured with a few numbers computed from responses of many chips and many readings. The main ones are uniqueness, reliability, uniformity and bit-aliasing. Real PUF responses are noisy, so design techniques such as careful layout, majority voting and error correction raise response quality.

Write these points

Quality metrics

MetricMeasuresIdeal value
UniquenessAverage Hamming distance between responses of different chips50%
Reliability100% minus the average distance between readings of one chip100% (0% bit errors)
UniformityShare of 1 bits in one chip's response50%
Bit-aliasingShare of chips giving 1 for one bit position50%
SteadinessStability across temperature and voltageHigh

Design techniques to increase response quality

  1. Symmetric layout: both paths or oscillators routed the same, so only random variation decides.
  2. Temporal majority voting: read each bit several times and take the majority.
  3. Error correction (fuzzy extractor): helper data corrects the few flipped bits and hashes the result into a stable key.
  4. Dark-bit masking: mark unstable bits at enrolment and ignore them.
  5. Pair selection in RO PUFs: compare oscillators with a large frequency gap only.
  6. Stable supply and temperature compensation.

Computing uniqueness and reliability.

Chip A: 1011 0010. Chip B: 0110 0111. They differ in bits 1, 2, 4, 6, 8: Hamming distance 4 of 8 = 50%, ideal uniqueness.

Chip A read again at 70 °C: 1011 0110. 1 bit differs: 12.5% errors, so reliability = 87.5%.

Majority voting over 5 readings fixes that bit if it flips only 1 or 2 times out of 5.

Uniformity of chip A: four 1s out of 8 = 50%.

Real-life example

Judging a PUF is like judging a signature: it must differ from everyone else's (uniqueness) and look the same each time you sign (reliability).

Figure: from noisy PUF bits to a stable key
Figure: from noisy PUF bits to a stable key

Same or opposite: uniqueness and reliability

PointUniquenessReliabilitySame or opposite
ComparesDifferent chipsSame chip, many readingsOpposite
Uses Hamming distanceYesYesSame
Ideal distance50%0%Opposite
ShowsChips can be told apartChip recognizes itselfOpposite

Exam tip. Give the metrics table with ideal values, then list the design techniques. Work a small Hamming distance example for uniqueness and reliability.

Back to the topic list

Q5. Side-channel attacks: types, acoustic cryptanalysis and use cases

Asked 2 times in 2024, 2025 · Unit 3

From the papers

  • “Explain about the type of acoustic cryptanalysis of side channel attack in detail.” (Jun 2025)
  • “Describe about side-channel attack vulnerabilities use cases with examples.” (Jun 2025)
  • “What is side-channel attack? Explain different types of side channel attacks.” (May 2024)

The short answer

A side-channel attack recovers secret data, usually a key, from physical signals a device gives off while it computes: time taken, power used, electromagnetic radiation, sound, heat or cache behaviour. It does not break the algorithm itself; it attacks the way the hardware carries it out.

Write these points

Types of side-channel attacks

TypeSignal usedExample
Timing attackTime per operationRSA square-and-multiply takes longer for 1 bits
Simple power analysis (SPA)One power traceReading key bits from the trace shape
Differential power analysis (DPA)Statistics of many tracesKocher's attack on DES
Electromagnetic analysisEM field near the chipProbe over a phone processor
Acoustic cryptanalysisSoundCoil whine leaking RSA keys
Cache attackCache hits and missesAES table lookups
Optical / thermalLight or heatPhoton emission of transistors

Acoustic cryptanalysis

  • Electronic parts such as capacitors and coils vibrate as the current changes; the sound depends on what the CPU is computing.
  • In 2013 researchers (Genkin, Shamir, Tromer) recovered a 4,096-bit RSA key from a laptop by recording this sound with a phone microphone, from about 4 metres with a better mic.
  • Keyboard acoustics: the sound of each key differs, so typed passwords can be guessed from a recording.
  • Defences: noise, shielding, constant-time and blinded algorithms.

Vulnerability use cases

  • Smart cards and SIM cards: power analysis extracts the card key.
  • Cloud servers: a VM reads another VM's key through the shared cache.
  • IoT devices: cheap chips without countermeasures leak AES keys.
  • Phones and cars: EM attacks on key fobs and payment chips.

Timing leak in square-and-multiply.

RSA computes Mᵈ bit by bit: every bit does a square. A 1 bit also does a multiply.

Say a square takes 2 µs and a multiply takes 2 µs. For the 4-bit exponent d = 1011: bit 1 → 4 µs, 0 → 2 µs, 1 → 4 µs, 1 → 4 µs, total 14 µs.

An attacker who times each step sees 4, 2, 4, 4 and reads off d = 1011.

Fix: always multiply and throw away the result for 0 bits (constant time), so every bit takes 4 µs.

Real-life example

A safe-cracker who listens to the clicks of the dial instead of breaking the lock is doing a side-channel attack.

Figure: a power analysis setup
Figure: a power analysis setup

Same or opposite: side-channel attack and cryptanalysis

PointSide-channel attackClassical cryptanalysisSame or opposite
TargetThe implementationThe algorithmOpposite
Aim is to find the keyYesYesSame
NeedsPhysical access or measurementsOnly ciphertexts and mathsOpposite
Works on AESOften, if unprotectedNo known practical breakOpposite

Exam tip. Define side-channel attack, give the types table and explain acoustic cryptanalysis with the RSA laptop example. List use cases and show the timing example.

Back to the topic list

Q6. Countermeasures against side-channel attacks

Asked 2 times in 2024, 2025 · Unit 3

From the papers

  • “What is the best way to protect against side-channel attacks? Explain with an example.” (Jun 2025)
  • “What are the counter measures for preventing side-channel attacks? Explain in detail.” (May 2024)

The short answer

Side-channel countermeasures break the link between the secret data and the physical signal. The two main families are hiding (make the leak small or random: constant time, noise, shuffling, balanced logic) and masking (split each secret value with random numbers so no single signal depends on it). Shielding and protocol choices add more protection.

Write these points

Countermeasures

CountermeasureHow it helpsAgainst
Constant-time codeSame time and steps for every keyTiming, cache
Maskingx stored as x ⊕ r with a fresh random rPower, EM (DPA)
Hiding: noise and random delaysSignal buried in noise or moved in timePower, EM
ShufflingOperations done in random orderDPA, template
Dual-rail logicEvery bit and its complement switch together, equal powerPower
Shielding and filtersBlock EM and sound, filter the power lineEM, acoustic
Blinding (RSA)Compute on M · rᵉ, remove r laterTiming, power
Key refreshChange keys often, so few traces per keyDPA

Points to write

  • Hiding lowers or randomizes the signal: constant time, noise, shuffling, dual-rail logic.
  • Masking splits every secret value with a fresh random mask.
  • Shielding and filtering block EM and sound and smooth the power line.
  • Protocol level: blinding and frequent key refresh limit traces per key.
  • Test the final chip with real attacks before release.

Best way to protect

No single method is enough. The best practice is layers: constant-time and masked algorithms in the design, noise or dual-rail logic in the hardware, shielding in the package and frequent key change in the protocol. A certified secure element tested against side channels (for example Common Criteria) combines these.

First-order masking of an AES byte.

Secret byte x = 0x3A. A fresh random mask r = 0xC5 is drawn for each run.

The chip stores and processes x' = x ⊕ r = 0x3A ⊕ 0xC5 = 0xFF instead of x.

Next run r = 0x17, so x' = 0x3A ⊕ 0x17 = 0x2D. The value on the wires changes each time, so power no longer follows x.

At the end the mask is removed: x = x' ⊕ r. DPA needs far more traces, or a second-order attack, to succeed.

Real-life example

Speaking in a crowded hall (noise), changing the order of your words (shuffling) and speaking in code (masking) all make it harder for an eavesdropper to understand you.

Figure: layers of protection
Figure: layers of protection

Same or opposite: masking and hiding

PointMaskingHidingSame or opposite
IdeaRandomize the dataReduce or randomize the signalOpposite
Reduces side-channel leakageYesYesSame
Examplex ⊕ rNoise, dual-rail logicOpposite
CostMore area and randomnessMore power or timeOpposite

Exam tip. Group countermeasures into hiding and masking and give the table. Say that the best protection is layered, then show the masking example.

Back to the topic list

Q7. Improved side-channel attacks: Kocher's attack on DES, template attack and cache attacks

Asked 2 times in 2024, 2025 · Unit 3

From the papers

  • “Explain about improved side-channel attack by using DES algorithm.” (May 2024)
  • “Write short note on: Template attack.” (May 2024, Jun 2025)

The short answer

Improved side-channel attacks need fewer measurements or work against protected devices. Kocher's differential power analysis (DPA) on DES (1999) finds the key from many power traces using statistics. The template attack first profiles an identical device to build models of the leakage. Cache attacks read secrets from cache timing.

Write these points

Kocher's DPA attack on DES

  1. Record power traces of DES encrypting about 1,000 known plaintexts.
  2. Target one S-box in round 1: its output depends on 6 key bits, so there are 64 guesses.
  3. For each guess, predict one output bit of the S-box for every plaintext.
  4. Split the traces into two groups by that predicted bit (0 or 1) and subtract their average traces.
  5. For the right guess the groups really differ, so the difference shows a spike; wrong guesses give a flat line.
  6. Repeat for all 8 S-boxes: 8 × 64 = 512 tries give 48 key bits; the last 8 bits are found by brute force (256 tries) instead of 2⁵⁶.

Template attack

  • Profiling phase: on an identical device the attacker controls, record many traces for each possible key byte and build a template (mean and noise model) for each.
  • Attack phase: record a few traces from the victim and match them to the templates; the best match (maximum likelihood) gives the key.
  • Strongest attack in theory; can succeed with a single trace.

Cache attacks

  • Cache is shared. A hit is much faster than a miss, so access patterns leak.
  • Prime + Probe: fill a cache set, let the victim run, time your own reloads.
  • Flush + Reload: flush a shared line, wait, reload; a fast reload means the victim used it.
  • Evict + Time: evict lines and time the victim.
  • AES with table lookups (T-tables) leaks key bytes through which table entries are used.

Why DPA needs only 512 tries.

Brute force on DES: 2⁵⁶ ≈ 7.2 × 10¹⁶ keys.

DPA tests each S-box alone: 64 guesses × 8 S-boxes = 512 guesses, with about 1,000 traces each.

This gives 48 of the 56 key bits. The remaining 8 bits: 2⁸ = 256 tries.

Total about 768 guesses instead of 7.2 × 10¹⁶, all because the power trace leaks one S-box at a time.

Real-life example

Guessing a 4-digit PIN takes 10,000 tries. If a worn keypad shows which digits are used, you need only a few. DPA is that worn keypad for a chip.

Figure: differential power analysis
Figure: differential power analysis

Same or opposite: DPA and template attack

PointDPATemplate attackSame or opposite
Needs a copy of the deviceNoYes, for profilingOpposite
Uses power tracesYesYesSame
Traces from the victimHundreds to thousandsVery few, even oneOpposite
MethodDifference of meansMaximum likelihood matchingOpposite

Exam tip. Write the steps of Kocher's DPA on DES with the 64 guesses per S-box and the spike. Give short notes on template and cache attacks, then the 512 versus 2⁵⁶ example.

Back to the topic list

Q8. Fault tolerance of cryptographic hardware and fault attacks

Asked 2 times in 2024, 2025 · Unit 4

From the papers

  • “Discuss load balancing and failover as integral aspects of fault tolerance of cryptography.” (Jun 2025)
  • “Explain the architecture of fault tolerance of cryptography with a neat sketch.” (May 2024)
  • “Write short note on: Fault attacks.” (May 2024)

The short answer

A fault attack makes a crypto chip compute wrongly on purpose, with a voltage or clock glitch, a laser or EM pulse or heat. The attacker then uses the wrong output to find the key. Fault tolerance lets the hardware detect such errors (and natural ones), refuse to release a faulty result and keep the service running through redundancy, load balancing and failover.

Write these points

Fault attacks

MethodHowExample result
Voltage glitchShort drop in supplySkips an instruction, such as a PIN check
Clock glitchOne very short clock cycleWrong value stored in a register
Laser or lightFlips chosen bitsOne byte of AES state changed
EM pulse, heatDisturbs the circuitRandom errors
  • Differential fault analysis (DFA): compare correct and faulty ciphertexts; for AES, a few faulty outputs reveal the key.
  • Bellcore attack on RSA-CRT: one faulty signature s' gives a factor of N as gcd(s'ᵉ − m, N).

Architecture of a fault-tolerant crypto unit

  1. Detection: check every result: decrypt after encrypt and compare, duplicate the unit, or use parity or error-detecting codes.
  2. Response: if the check fails, do not output the result; raise an alarm and possibly erase keys.
  3. Redundancy: spare modules (triple modular redundancy votes 2 of 3).
  4. Sensors: voltage, clock, light and temperature detectors.

Load balancing and failover

  • Crypto services run on clusters of hardware security modules (HSMs).
  • Load balancing spreads requests across HSMs so none is overloaded and one fault affects few requests.
  • Failover moves work to a standby HSM when one fails or reports a fault; keys are kept in sync securely.
  • Together they give availability without accepting faulty results.

The encrypt-then-decrypt check.

The chip encrypts P = 0x4A with AES and gets C. It then decrypts C and gets P' = 0x4A.

P' = P, so C is sent.

An attacker glitches round 9 and the chip gets C*. Decrypting gives P' = 0x91, which is not 0x4A.

The chip discards C* and raises an alarm, so DFA gets no faulty ciphertext. The cost is about twice the time, or a second decrypt core.

Real-life example

A bank teller who counts the cash twice before handing it over and calls another teller if the counts differ works like a fault-tolerant crypto unit.

Figure: fault-tolerant crypto unit with failover
Figure: fault-tolerant crypto unit with failover

Same or opposite: fault attack and side-channel attack

PointFault attackSide-channel attackSame or opposite
Attacker actionActive: disturbs the chipPassive: only measuresOpposite
Aim is to recover the keyYesYesSame
UsesWrong outputsPower, time, EMOpposite
DefenceDetect and suppress errorsMasking, hidingOpposite

Exam tip. Explain fault attacks with methods and DFA, then draw the fault-tolerant architecture: detection, response, redundancy, sensors. Add load balancing and failover in HSM clusters.

Back to the topic list

Q9. Finite field multipliers: implementation and verification

Asked 2 times in 2024, 2025 · Unit 4

From the papers

  • “Elaborate the verification formulation for finite field multipliers with suitable examples.” (Jun 2025)
  • “Develop a domain-specific implementation for finite field multipliers.” (May 2024)

The short answer

A finite field multiplier multiplies two elements of GF(2ᵐ) or GF(p) in hardware. It is the core of elliptic curve cryptography, AES MixColumns and error-correcting codes. In GF(2ᵐ), multiplication is polynomial multiplication with XOR in place of addition, followed by reduction modulo an irreducible polynomial P(x). Verification proves the gate-level circuit always computes A · B mod P(x).

Write these points

Domain-specific implementation

ArchitectureHow it worksTrade-off
Bit-serialOne bit of B per clock, shift and reduceSmall area, m clocks
Digit-seriald bits per clockBalance of area and speed
Bit-parallel (Mastrovito)Whole product in one clock with AND-XOR treesFast, large area
Montgomery multiplierAvoids slow reduction, works in a transformed domainGood for GF(p) and big m
KaratsubaSplits operands to cut multiplicationsFewer gates for large m

Interleaved (shift and add) algorithm for GF(2ᵐ): C = 0; for each bit bᵢ of B from the top: C = C · x mod P; if bᵢ = 1 then C = C ⊕ A.

Verification formulation

  • Write each gate as a polynomial over the field: AND of a and b is a · b; XOR is a + b (mod 2).
  • The specification is Z = A · B mod P(x), with A, B and Z as word-level polynomials.
  • Use Gröbner basis reduction (or rewriting): substitute gate polynomials from output to input. If the remainder of (spec − circuit) is 0, the circuit is correct.
  • Any bug leaves a non-zero remainder, which also gives a counter-example.

Multiply in GF(2³) with P(x) = x³ + x + 1.

A = x² + 1 (101), B = x + 1 (011).

Product: (x² + 1)(x + 1) = x³ + x² + x + 1.

Reduce with x³ = x + 1: (x + 1) + x² + x + 1 = x² + (x + x) + (1 + 1) = x² (100).

Check with the interleaved algorithm: the hardware must also output 100 for inputs 101 and 011; verification proves this for all 64 input pairs at once.

Real-life example

Clock arithmetic for hours (13 o'clock becomes 1) is like the reduction step: after multiplying, the result is folded back into the allowed range.

Figure: verifying a field multiplier
Figure: verifying a field multiplier

Same or opposite: bit-serial and bit-parallel multipliers

PointBit-serialBit-parallelSame or opposite
Clocks per productm1Opposite
Computes A · B mod P(x)YesYesSame
AreaSmallLargeOpposite
UseLow-cost IoTHigh-speed serversOpposite

Exam tip. Explain GF(2ᵐ) multiplication as polynomial product plus reduction and give the architectures table. Write the verification idea with gate polynomials and Gröbner reduction, then solve the GF(2³) example.

Back to the topic list

Q10. Arithmetic circuits and polynomial identity testing

Asked 2 times in 2024, 2025 · Unit 4

From the papers

  • “Define arithmetic circuit. Explain the important parameters of arithmetic circuit in detail.” (Jun 2025)
  • “Given an arithmetic circuit C with input variables a1, a2, ..., an and constants taken from a field F, check if the polynomial computed is identically zero.” (May 2024)

The short answer

An arithmetic circuit over a field F is a directed acyclic graph whose inputs are variables a₁, ..., aₙ or constants from F and whose gates are addition (+) and multiplication (×). Each gate computes a polynomial, so the output gate computes a polynomial in the inputs. Hardware for field arithmetic is checked by reasoning about these polynomials.

Write these points

Important parameters

ParameterMeaning
SizeNumber of gates (cost, area)
DepthLongest path from input to output (delay)
DegreeDegree of the polynomial computed
Fan-inNumber of inputs per gate (2 or unbounded)
Number of variablesn inputs
FieldThe field F the constants come from

Checking if the polynomial is identically zero (polynomial identity testing)

  1. Expanding the polynomial can take exponential time, so use randomness instead.
  2. Pick a large finite set S ⊆ F and choose random values r₁, ..., rₙ from S.
  3. Evaluate C at those values (fast: one pass through the gates).
  4. If the result is not 0, the polynomial is certainly not zero.
  5. If it is 0, say zero. By the Schwartz-Zippel lemma, a non-zero polynomial of degree d is 0 at a random point with probability at most d / |S|.
  6. Repeat k times to cut the error to (d / |S|)ᵏ.

Testing C = (a + b)² − a² − 2ab − b² over GF(101).

Degree d = 2, S = GF(101), so one wrong answer has probability at most 2/101 ≈ 0.02.

Random a = 7, b = 40: (47)² = 2209, 2209 mod 101 = 88. a² + 2ab + b² = 49 + 560 + 1600 = 2209 → 88. C = 88 − 88 = 0.

Two more random trials also give 0. Error probability ≤ (2/101)³ ≈ 7.8 × 10⁻⁶.

Conclusion: C is identically zero (indeed (a + b)² = a² + 2ab + b²). Size of C here: about 8 gates, depth 3, degree 2.

Real-life example

To check whether two long recipes give the same dish you do not compare every step; you cook both once with random ingredients amounts and taste. Random evaluation tests polynomials the same way.

Figure: polynomial identity testing
Figure: polynomial identity testing

Same or opposite: random testing and full expansion

PointRandom evaluationFull expansionSame or opposite
TimePolynomial in circuit sizeCan be exponentialOpposite
Decides if C is zeroYesYesSame
ErrorTiny, controlled by kNoneOpposite
Practical for big circuitsYesNoOpposite

Exam tip. Define an arithmetic circuit and give its parameters table. For identity testing, write the random evaluation steps with the Schwartz-Zippel bound and solve a small example.

Back to the topic list

Q11. IP and IC piracy and design techniques to prevent it, using PUFs

Asked 2 times in 2024, 2025 · Unit 5

From the papers

  • “Explain various types of design techniques to prevent IP and IC piracy.” (Jun 2025)
  • “Describe the various procedures involved to prevent hardware piracy using PUFs.” (May 2024)

The short answer

IP piracy is the theft or illegal use of a chip design (intellectual property core). IC piracy is the making or selling of chips without the owner's permission: overproduction by the foundry, cloning by reverse engineering, counterfeit or recycled chips sold as new. Design techniques such as logic locking, hardware metering with PUFs, camouflaging, split manufacturing and watermarking prevent or detect it.

Write these points

Design techniques

TechniqueHow it worksStops
Logic lockingKey gates added; wrong key gives wrong outputsOverproduction, reverse engineering
Hardware metering (PUF based)Each chip locked by its PUF; owner sends an activation key per chipOverproduction
IC camouflagingGates look alike in the layoutReverse engineering
Split manufacturingLower layers in an untrusted fab, top wires in a trusted fabFoundry theft
WatermarkingHidden owner signature in the designProves ownership of stolen IP
FingerprintingEach copy marked differentlyTraces which buyer leaked it

Preventing piracy with PUFs

  1. The design includes a PUF and a locking circuit; the chip starts in a locked state.
  2. After manufacture the foundry reads each chip's PUF response and sends it to the IP owner.
  3. The owner computes the activation key for that one chip from its PUF response.
  4. Only chips the owner activates work; extra chips stay useless.
  5. Because the PUF differs per chip, one key cannot activate another chip.

Logic locking with one XOR key gate.

Original logic: y = a · b. A key gate is added: y = (a · b) ⊕ k.

With the correct key k = 0: a = 1, b = 1 gives y = 1 ⊕ 0 = 1, the right answer.

With a wrong key k = 1: y = 1 ⊕ 1 = 0, a wrong answer for every input.

A real chip uses 64 to 128 key bits, so guessing needs up to 2¹²⁸ tries. The key is loaded from secure memory or derived from the PUF only for licensed chips.

Real-life example

A builder who gives a contractor a house plan with some rooms marked "to be told later" and gives the missing details only for houses he has paid for is doing logic locking.

Figure: logic locking with an XOR key gate
Figure: logic locking with an XOR key gate

Same or opposite: logic locking and watermarking

PointLogic lockingWatermarkingSame or opposite
ActionPrevents use without a keyProves ownership after theftOpposite
Protects the design ownerYesYesSame
Changes chip functionYes, without the keyNoOpposite
StageBefore and during manufactureAfter theft is foundOpposite

Exam tip. Define IP and IC piracy with its forms, give the techniques table and explain the PUF-based activation steps. Draw a small logic locking example.

Back to the topic list

Q12. Attacks on PUFs: model building with SVM (arbiter PUF) and genetic programming (ring oscillator PUF)

Asked 2 times in 2024, 2025 · Unit 5

From the papers

  • “What is genetic programming? Explain genetic programming based modeling of ring oscillator PUF.” (Jun 2025)
  • “Discuss different types of PUF attacks with examples.” (May 2024)
  • “Discuss model building attacks on PUFs with suitable examples.” (May 2024)
  • “Write short note on: Support Vector Machines (SVMs); SVM modeling of arbiter PUFs.” (Jun 2025)

The short answer

PUFs can be attacked. Model building attacks collect many challenge-response pairs (CRPs) and train a machine learning model that predicts the response to new challenges, so the PUF is cloned in software. SVM modelling breaks the arbiter PUF; genetic programming models the ring oscillator PUF. Other attacks use side channels, faults or invasive probing.

Write these points

Types of PUF attacks

AttackHowExample
Model buildingLearn the CRP behaviour with machine learningSVM on an arbiter PUF
Side-channelPower or timing leaks the responseEM of an RO PUF
Fault injectionChange temperature or voltage to bias bitsFreezing an SRAM PUF
Invasive and semi-invasiveProbe or image the chipReading SRAM power-up values
ReplayReuse a recorded CRPStops if each CRP is used once

SVM modelling of arbiter PUFs

  • SVM (support vector machine): a supervised learner that finds the hyperplane with the largest margin between two classes; kernels handle non-linear data.
  • In an arbiter PUF the delay difference is Δ = w · Φ(c), a weighted sum of features of the challenge c.
  • The response is r = 1 if Δ > 0, else 0, so the PUF is a linear classifier.
  • An SVM (or logistic regression) trained on a few thousand CRPs learns w and predicts new responses with over 95% accuracy for a 64-stage arbiter PUF.

Genetic programming modelling of ring oscillator PUFs

  • Genetic programming (GP) evolves programs or expressions by selection, crossover and mutation, keeping the fittest.
  • An RO PUF compares frequencies of oscillator pairs; the hidden order of frequencies decides every response.
  • GP evolves an expression or ordering that predicts which oscillator of a pair is faster, using CRPs as fitness data.
  • After enough generations the model predicts unseen pairs correctly, so the PUF responses can be forged.

Why linearity breaks the arbiter PUF.

A 64-stage arbiter PUF has 2⁶⁴ challenges, far too many to record.

But its model has only 65 unknown weights (one per stage plus a bias).

With 5,000 recorded CRPs an SVM fits the 65 weights; on 10,000 new challenges it predicts 9,700 correctly (97%).

Fixes: XOR several arbiter chains, add non-linear stages, or never reveal raw responses (hash them).

Real-life example

A batsman who studies a bowler's last thousand balls can predict the next one. A machine learning attack watches a PUF's past answers in the same way.

Figure: arbiter PUF
Figure: arbiter PUF

Same or opposite: SVM and genetic programming attacks

PointSVM attackGenetic programming attackSame or opposite
TargetArbiter PUF (linear delays)Ring oscillator PUFOpposite
Learns from CRPsYesYesSame
MethodMaximum-margin hyperplaneEvolution of expressionsOpposite
DefenceXOR arbiter, hashingFewer exposed pairs, hashingOpposite

Exam tip. List the PUF attack types in a table. Explain the arbiter PUF delay model and why an SVM learns it, then genetic programming on the RO PUF. Give the 65-weight example and the defences.

Back to the topic list

Q13. Cryptographic hardware on FPGA: implementation steps, accuracy and precision

Asked 2 times in 2024, 2025 · Unit 2

From the papers

  • “Discuss various steps involved in the cryptographic hardware implementation.” (Jun 2025)
  • “Explain about accuracy issues and precision enhancement in FPGA.” (May 2024)
  • “Write short note on: Field-Programmable Gate Array (FPGA).” (May 2024)

The short answer

A field-programmable gate array (FPGA) is a chip whose logic can be configured after manufacture. It has configurable logic blocks (CLBs) made of look-up tables (LUTs) and flip-flops, programmable routing, I/O blocks, block RAM and DSP slices. FPGAs are widely used to build and test cryptographic hardware because they are fast, parallel and can be updated.

Write these points

Steps in cryptographic hardware implementation

  1. Specification: algorithm, key size, throughput, area and power targets, threat model.
  2. Algorithm and arithmetic choice: for example AES with composite-field S-boxes.
  3. Architecture: iterative (one round reused), unrolled, pipelined or serial.
  4. HDL coding in Verilog or VHDL.
  5. Functional simulation against official test vectors.
  6. Synthesis, place and route, timing analysis.
  7. Testing on the board and side-channel and fault evaluation, then add countermeasures.

Accuracy issues and precision enhancement in FPGA

  • Many FPGA designs (signal processing, ML) use fixed-point numbers, which cause rounding and overflow errors.
  • Precision is raised by wider word length, guard bits, correct rounding (round to nearest) and saturation instead of overflow.
  • Floating-point cores give more range but use more LUTs and DSPs.
  • Timing errors from a too-fast clock also corrupt results; meet timing with pipelining.
  • Finite field crypto is exact (no rounding), so accuracy there means correct reduction and no timing faults.

Throughput of AES-128 on an FPGA.

Iterative design: one round per clock, 10 clocks per 128-bit block, clock 100 MHz.

Throughput = 128 × 100 × 10⁶ ÷ 10 = 1.28 Gbit/s.

Fully unrolled and pipelined: one block every clock, 128 × 100 × 10⁶ = 12.8 Gbit/s, about 10 times the area.

So a smart card picks the iterative design, while a network router picks the pipelined one.

Real-life example

An FPGA is like a box of LEGO bricks that can be rebuilt into any shape. An ASIC is a moulded toy: faster and cheaper in bulk but fixed forever.

Figure: crypto hardware design flow
Figure: crypto hardware design flow

Same or opposite: FPGA and ASIC

PointFPGAASICSame or opposite
Can be changed after makingYesNoOpposite
Implements digital logicYesYesSame
Cost for few unitsLowVery highOpposite
Speed and powerLower speed, more powerHighest speed, least powerOpposite

Exam tip. Describe the FPGA blocks, write the seven implementation steps and explain fixed-point accuracy with its fixes. The AES throughput example shows the architecture trade-off.

Back to the topic list

Start with the latest papers

Hardware Security - Jun 2025

Hardware Security - May 2024

See all 2 papers →

Hardware Security (CY-801) FAQs

What are the most important topics in Hardware Security?

By how often they were asked in the papers on this site: Hardware security: meaning, significance, threats and best practices (2 times); Finite fields: definition, properties, GF(4) construction and Euler's phi (2 times); Physically unclonable functions (PUFs): types, advantages and taxonomy (2 times); PUF quality evaluation and design techniques to increase response quality (2 times); Side-channel attacks: types, acoustic cryptanalysis and use cases (2 times).

How were these Hardware Security important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2024-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Hardware Security important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Hardware Security is free to download from this page.

The 13 most repeated topics of Hardware Security (CY-801) for RGPV B.Tech Cyber Security semester 8, counted from the previous year papers on this site.