WEBVTT

1
00:00:00.000 --> 00:00:06.280
The failed image from lesson 3 still needs a
closed fetch gate.

2
00:00:06.280 --> 00:00:11.860
This time, the verifier sends four bits instead
of one.

3
00:00:11.860 --> 00:00:17.860
The receiver must decide which of sixteen values
means permission.

4
00:00:17.860 --> 00:00:21.200
That decision matters as much as the encoder.

5
00:00:21.630 --> 00:00:27.110
A multi-bit control is one decision represented
by a codeword.

6
00:00:27.110 --> 00:00:36.230
Our four-bit example uses FAIL=1001 and
PASS=0110.

7
00:00:36.230 --> 00:00:39.410
These values differ in four positions.

8
00:00:39.410 --> 00:00:45.410
Hamming distance counts those differing
positions; it describes codeword separation, not

9
00:00:45.410 --> 00:00:46.770
physical attack difficulty.

10
00:00:47.710 --> 00:00:50.890
The receiver can compare all four bits with PASS.

11
00:00:50.890 --> 00:00:56.290
This strict decoder grants only 0110.

12
00:00:56.290 --> 00:01:00.690
Another receiver might grant whenever the value
differs from FAIL.

13
00:01:00.690 --> 00:01:07.350
That loose decoder grants fifteen values,
including fourteen invalid codes.

14
00:01:07.350 --> 00:01:10.510
The same four wires now have very different
behavior.

15
00:01:11.270 --> 00:01:15.970
Flip the lowest bit of FAIL with mask 0001.

16
00:01:15.970 --> 00:01:18.990
The receiver sees 1000.

17
00:01:18.990 --> 00:01:21.910
Strict decoding rejects it.

18
00:01:21.910 --> 00:01:24.250
Loose decoding permits it.

19
00:01:24.250 --> 00:01:29.810
An invalid-code detector can raise an alert, but
the loose example deliberately leaves that

20
00:01:29.810 --> 00:01:31.970
detector out of the grant path.

21
00:01:31.970 --> 00:01:35.230
A visible alert therefore does not make this
example safe.

22
00:01:36.970 --> 00:01:42.110
OpenTitan names distinct strict and loose MuBi
tests in its source.

23
00:01:42.110 --> 00:01:45.450
Its four-bit constants are 6 and 9.

24
00:01:45.450 --> 00:01:50.950
Our exercise uses those public values to explain
the choice; it does not test OpenTitan or

25
00:01:50.950 --> 00:01:54.590
establish that a loose test is wrong in every
context.

26
00:01:54.590 --> 00:01:57.610
Denial conditions can require a different
interpretation.

27
00:01:58.230 --> 00:02:02.810
The storage experiment starts with a captured
FAIL code.

28
00:02:02.810 --> 00:02:08.890
One event XORs one four-bit register after edge
0.

29
00:02:08.890 --> 00:02:13.550
The changed code persists until the request at
edge 1.

30
00:02:13.550 --> 00:02:18.910
All sixteen masks are enumerated, including zero
as a control.

31
00:02:18.910 --> 00:02:21.730
The request is valid and ready at that edge.

32
00:02:22.850 --> 00:02:29.610
A claim for at most three flipped bits excludes
mask 1111.

33
00:02:29.610 --> 00:02:36.850
Every nonzero mask within that budget makes FAIL
invalid under strict decoding.

34
00:02:36.850 --> 00:02:41.910
Mask 1111 reaches legal PASS.

35
00:02:41.910 --> 00:02:48.610
If one physical event can invert the entire word,
a four-bit code cannot rely on the three-bit

36
00:02:48.610 --> 00:02:48.990
budget.

37
00:02:49.850 --> 00:02:58.350
The image, independent reference, completion
status, encoder, decoder, clock/reset and

38
00:02:58.350 --> 00:03:02.670
accepted handshake are trusted in this storage
experiment.

39
00:03:02.670 --> 00:03:07.770
The reference records the failed image and never
copies the corrupted code.

40
00:03:07.770 --> 00:03:12.510
Without that separation, a wrong PASS can also
rewrite the test oracle.

41
00:03:12.950 --> 00:03:15.730
Now move the target upstream.

42
00:03:15.730 --> 00:03:21.130
One boolean authorization input is inverted
before capture.

43
00:03:21.130 --> 00:03:25.330
The encoder receives true and stores legal PASS.

44
00:03:25.330 --> 00:03:29.530
Strict equality succeeds because the code is
perfectly formed.

45
00:03:29.530 --> 00:03:32.030
The failure entered before the code existed.

46
00:03:32.930 --> 00:03:36.630
This is a separate experiment with one source
target.

47
00:03:36.630 --> 00:03:38.950
It does not also flip stored bits.

48
00:03:38.950 --> 00:03:45.630
A second expanded experiment inverts only final
grant at edge 1.

49
00:03:45.630 --> 00:03:48.990
Both keep the accepting interface trusted.

50
00:03:48.990 --> 00:03:53.630
These cases identify two boundaries that storage
distance cannot protect.

51
00:03:54.290 --> 00:04:00.450
A designer can keep encoded decisions along more
of the path, check provenance, or use separately

52
00:04:00.450 --> 00:04:03.090
generated evidence at the consumer.

53
00:04:03.090 --> 00:04:06.225
Each choice needs an explicit trust argument.

54
00:04:06.225 --> 00:04:12.570
Encoding one faulted boolean four times does not
create four independent decisions.

55
00:04:13.170 --> 00:04:17.250
Open the lab and leave authorization false.

56
00:04:17.250 --> 00:04:22.170
Select code target, strict policy and mask 1.

57
00:04:22.170 --> 00:04:26.150
Inspect raw, seen, bad and commit.

58
00:04:26.150 --> 00:04:29.550
Change only the policy to loose.

59
00:04:29.550 --> 00:04:35.490
The accepting edge changes while the source and
fault remain identical.

60
00:04:35.490 --> 00:04:39.370
Export both traces and explain the gate
responsible.

61
00:04:39.370 --> 00:04:48.070
The executed Node campaign found one unauthorized
mask under strict decoding and fifteen under

62
00:04:48.070 --> 00:04:51.290
loose decoding across the sixteen masks.

63
00:04:51.290 --> 00:04:55.110
These counts include the weight-four
counterexample.

64
00:04:55.110 --> 00:04:59.410
They are enumeration counts, not attack
probabilities.

65
00:04:59.410 --> 00:05:04.690
Fault-free authorized PASS is accepted;
fault-free FAIL is rejected.

66
00:05:05.510 --> 00:05:12.710
Switch to source and then grant, using a nonzero
mask as the injection enable.

67
00:05:12.710 --> 00:05:19.230
Here mask magnitude does not count source bits:
each expanded target is one boolean.

68
00:05:19.230 --> 00:05:22.990
Keep those traces out of the storage-mask table.

69
00:05:22.990 --> 00:05:30.230
Finally set authorized true and mask zero to
check that the strict gate can open normally.

70
00:05:30.753 --> 00:05:37.073
This RTL/SVA fragment is proposed, not compiled.

71
00:05:37.073 --> 00:05:46.113
Four-state X propagation, synthesis of equality
logic, encoded AND/OR semantics and post-decode

72
00:05:46.113 --> 00:05:48.853
faults need separate work.

73
00:05:48.853 --> 00:05:53.893
The full source-to-consumer path must be mapped
after synthesis.

74
00:05:53.893 --> 00:05:59.033
Lesson 5 examines whether redundant producers
actually fail independently.

75
00:06:00.023 --> 00:06:06.763
One persistent four-bit storage XOR after edge 0;
accepting edge 1.

76
00:06:06.763 --> 00:06:13.743
At most three bits for the bounded rejection
claim, with four-bit and source/grant cases

77
00:06:13.743 --> 00:06:16.023
reported separately.

78
00:06:16.023 --> 00:06:19.283
The oracle and non-target circuitry remain
trusted.

79
00:06:20.603 --> 00:06:26.763
Node executed all sixteen masks, source/grant
witnesses and fault-free positive/negative

80
00:06:26.763 --> 00:06:27.223
controls.

81
00:06:27.223 --> 00:06:32.703
RTL/SVA and physical implementation remain
unverified.

82
00:06:33.543 --> 00:06:39.603
Two-state word substitution excludes timing
glitches, physical independence and decoder

83
00:06:39.603 --> 00:06:41.583
implementation faults in the main campaign.

