WEBVTT

1
00:00:00.000 --> 00:00:05.620
Failure stores zero, but a flip to one can
release a fetch.

2
00:00:05.620 --> 00:00:11.720
Both single-bit values are legal, leaving no
invalid format to reject.

3
00:00:11.720 --> 00:00:17.920
Stored check bits make some modifications produce
invalid combinations that can be blocked before

4
00:00:17.920 --> 00:00:19.160
use.

5
00:00:19.160 --> 00:00:24.360
A legal failure word changed into a legal pass
still satisfies the format.

6
00:00:24.360 --> 00:00:30.760
Follow the same fetch while comparing parity,
two-bit complementary coding, and

7
00:00:30.760 --> 00:00:31.800
error-correcting coding.

8
00:00:32.520 --> 00:00:39.340
Each main trace targets one stored codeword with
one event, grouped by one through four flipped

9
00:00:39.340 --> 00:00:40.480
bits.

10
00:00:40.480 --> 00:00:47.040
The upset follows edge three and persists through
requests at four and six, with observation ending

11
00:00:47.040 --> 00:00:47.700
at seven.

12
00:00:47.700 --> 00:00:58.380
Trust encoding, checking, blocking, error
history, completion, image, policy, independent

13
00:00:58.380 --> 00:01:04.540
reference, clock, reset, handshake, and
acceptance.

14
00:01:04.540 --> 00:01:07.820
The reference does not read the faulted code.

15
00:01:07.820 --> 00:01:12.500
These are model assumptions; physical
disturbances crossing the boundary require

16
00:01:12.500 --> 00:01:13.980
separate product evidence.

17
00:01:13.980 --> 00:01:18.400
Store one parity bit beside four data bits.

18
00:01:18.400 --> 00:01:22.540
The five-bit word must contain an even number of
ones.

19
00:01:22.540 --> 00:01:30.200
Data zero zero zero zero means failure; zero zero
zero one means pass, and other values cannot

20
00:01:30.200 --> 00:01:31.740
release a fetch.

21
00:01:31.740 --> 00:01:39.020
With parity shown first, failure is five zeros
and pass is one zero zero zero one.

22
00:01:39.020 --> 00:01:44.020
The stored check bit preserves evidence from the
write for comparison at read time.

23
00:01:44.740 --> 00:01:50.080
Any single flip of five zeros changes parity and
raises local bad.

24
00:01:50.080 --> 00:01:54.640
It detects every single stored-bit change without
locating the bad bit.

25
00:01:54.640 --> 00:02:00.760
Grant still needs an exact pass data value and
direct blocking from the current error.

26
00:02:00.760 --> 00:02:06.380
Do not recompute parity from corrupted data and
compare that result with itself.

27
00:02:06.380 --> 00:02:10.760
Those values always agree and provide no check on
a modification during storage.

28
00:02:10.760 --> 00:02:15.680
Flip the least-significant data bit and parity
together.

29
00:02:15.680 --> 00:02:22.220
Five zeros become one zero zero zero one, with
even parity and exact pass data.

30
00:02:22.220 --> 00:02:27.120
The mask is hexadecimal eleven, and parity
reports no error.

31
00:02:27.120 --> 00:02:30.140
This gives one two-bit counterexample.

32
00:02:30.140 --> 00:02:36.920
Other two-bit modifications need not produce the
pass value and should not be assigned the same

33
00:02:36.920 --> 00:02:37.420
outcome.

34
00:02:38.100 --> 00:02:44.180
Use two stored bits: zero one for failure and one
zero for pass.

35
00:02:44.720 --> 00:02:48.780
Zero zero and one one are invalid.

36
00:02:48.780 --> 00:02:54.960
Check their complementary relationship, then
compare the full one-zero pass word.

37
00:02:54.960 --> 00:03:01.580
The extra stored bit makes a single modification
leave an invalid combination that the consumer

38
00:03:01.580 --> 00:03:02.400
can reject.

39
00:03:03.180 --> 00:03:08.940
One flip of zero one yields invalid zero zero or
one one.

40
00:03:08.940 --> 00:03:14.720
Flip both with mask zero three and it becomes the
legal one-zero pass word.

41
00:03:14.720 --> 00:03:20.120
Two stored bits do not mean two independent
signature checks.

42
00:03:20.120 --> 00:03:27.280
A live NOT of a single Q follows every change to
Q and always remains complementary.

43
00:03:27.280 --> 00:03:33.380
Generate the inverse at the trusted write and
store both values to check storage changes.

44
00:03:34.620 --> 00:03:37.880
ECC here means error-correcting code.

45
00:03:37.880 --> 00:03:47.200
Within its defined range, SECDED corrects one bit
and detects two; with more flipped bits, the

46
00:03:47.200 --> 00:03:50.740
decoder can classify the word incorrectly.

47
00:03:50.740 --> 00:03:57.040
The example is a custom extended Hamming
eight-four code with four data and four check

48
00:03:57.040 --> 00:03:57.880
bits.

49
00:03:57.880 --> 00:04:03.260
It is not elliptic-curve cryptography or a code
shared by all OpenTitan cores.

50
00:04:04.060 --> 00:04:12.680
Check bits occupy positions one, two, four, and
eight; data occupies three, five, six, and seven.

51
00:04:12.680 --> 00:04:18.900
Positions one through eight map to stored bits
zero through seven, while binary displays run

52
00:04:18.900 --> 00:04:21.440
from seven down to zero.

53
00:04:21.440 --> 00:04:27.580
This layout encodes failure as hexadecimal zero
zero and pass as eighty seven.

54
00:04:27.580 --> 00:04:32.840
Use the table for every flip instead of treating
the display's left edge as position one.

55
00:04:34.140 --> 00:04:37.960
The decoder reads syndrome and overall parity.

56
00:04:37.960 --> 00:04:40.540
Both zero report no error.

57
00:04:40.540 --> 00:04:44.520
Zero syndrome with odd parity flips position
eight.

58
00:04:44.520 --> 00:04:49.160
Nonzero syndrome with odd parity flips the
indexed position.

59
00:04:49.160 --> 00:04:54.400
Nonzero syndrome with even parity reports UE,
uncorrectable.

60
00:04:54.400 --> 00:04:57.600
The correction cases report CE.

61
00:04:57.600 --> 00:05:02.480
These flags classify the received word; they do
not measure how many bits were actually

62
00:05:02.480 --> 00:05:02.920
disturbed.

63
00:05:03.490 --> 00:05:08.090
Flip positions one, two, and three of zero zero,

64
00:05:08.090 --> 00:05:10.050
producing zero seven.

65
00:05:10.050 --> 00:05:17.370
Their indices cancel under XOR, leaving zero
syndrome and odd overall parity.

66
00:05:17.370 --> 00:05:22.630
The decoder reports CE and treats position eight
as wrong.

67
00:05:22.630 --> 00:05:28.970
It then flips position eight, turning zero seven
into eighty seven, the legal pass word.

68
00:05:28.970 --> 00:05:34.670
This is one three-bit miscorrection pattern;
other three-bit patterns require their own

69
00:05:34.670 --> 00:05:35.150
analysis.

70
00:05:36.090 --> 00:05:42.410
Correct-and-continue selects corrected data for
grant and rejects UE.

71
00:05:42.410 --> 00:05:49.450
Zero seven reports CE, becomes eighty seven, and
can release an unauthorized fetch.

72
00:05:49.450 --> 00:05:55.690
CE does not prove that only one bit was actually
wrong; it is the decoder's classification.

73
00:05:55.690 --> 00:06:02.010
For authorization data, follow this out-of-range
correction path through to acceptance.

74
00:06:02.870 --> 00:06:09.530
Reject-on-error blocks CE or UE and does not
authorize from corrected data.

75
00:06:09.530 --> 00:06:12.170
It blocks the zero-seven miscorrection.

76
00:06:12.170 --> 00:06:15.110
Change the fault to mask eighty seven,

77
00:06:15.110 --> 00:06:19.470
flipping four selected bits directly into legal
eighty seven.

78
00:06:19.470 --> 00:06:24.630
Syndrome and parity are both clean, leaving no
error flag for this policy to use.

79
00:06:24.630 --> 00:06:29.130
The code-distance boundary remains after changing
the response policy.

80
00:06:29.950 --> 00:06:35.750
Local bad describes the current error; sticky
records error history.

81
00:06:35.750 --> 00:06:43.330
After the upset at edge three, local bad is high
before four, but old sticky remains zero.

82
00:06:43.330 --> 00:06:48.830
If grant checks only old sticky, the first
request can be accepted before the error is

83
00:06:48.830 --> 00:06:49.970
recorded.

84
00:06:49.970 --> 00:06:56.510
Grant needs completion, exact pass, no current
error, and no history.

85
00:06:56.510 --> 00:06:59.790
Current blocking protects the first request.

86
00:06:59.790 --> 00:07:04.210
A product still needs evidence that this path
settles before the accepting edge.

87
00:07:04.990 --> 00:07:12.230
In the main table, the stored error persists and
a detected local bad condition persists with it.

88
00:07:12.230 --> 00:07:17.830
These cases do not independently establish
additional protection from sticky.

89
00:07:17.830 --> 00:07:23.810
Preserving history after an anomaly disappears or
storage is overwritten is another use, needing

90
00:07:23.810 --> 00:07:25.330
extra tests.

91
00:07:25.330 --> 00:07:29.790
Report the persistent scenarios actually
evaluated by the main table separately.

92
00:07:30.365 --> 00:07:38.245
Compare parity mask eleven, complementary mask
zero three, and Hamming mask zero seven, all

93
00:07:38.245 --> 00:07:39.845
hexadecimal.

94
00:07:39.845 --> 00:07:46.745
The first two directly form legal pass words; the
third reaches pass through miscorrection.

95
00:07:46.745 --> 00:07:54.405
For each trace, inspect storage after three,
check flags before four, and the raw or corrected

96
00:07:54.405 --> 00:07:56.925
data selected by grant.

97
00:07:56.925 --> 00:08:00.405
The shared acceptance point makes the policy
differences explainable.

98
00:08:01.325 --> 00:08:06.845
The main table has three hundred forty two
storage-fault traces, eight unauthorized.

99
00:08:06.845 --> 00:08:11.465
Parity has one two-bit trace, and complementary
coding one.

100
00:08:11.465 --> 00:08:18.185
Continue has four three-bit and one four-bit
traces; reject-on-error has one four-bit trace.

101
00:08:18.185 --> 00:08:22.265
Count each mask once, even if two requests are
accepted.

102
00:08:22.265 --> 00:08:28.085
These describe a finite two-state model and fixed
workload, not a measured attack probability.

103
00:08:29.225 --> 00:08:33.705
The three thousand one hundred twelve code checks
are separate from fetch traces.

104
00:08:33.705 --> 00:08:38.685
There are also eight fault-free controls and
twenty three single-bit faults on authorized

105
00:08:38.685 --> 00:08:39.945
images.

106
00:08:39.945 --> 00:08:43.665
Eight continue after correction; fifteen are
blocked.

107
00:08:43.665 --> 00:08:48.285
Rejection can protect authorization while
interrupting legitimate work.

108
00:08:48.285 --> 00:08:52.805
Report availability beside safety, keeping their
evidence and counts distinct.

109
00:08:52.805 --> 00:08:59.825
In a separate source-target experiment, change
auth okay from zero to one before the write at

110
00:08:59.825 --> 00:09:01.065
edge two.

111
00:09:01.065 --> 00:09:06.885
The encoder produces a legal pass word and all
four versions authorize incorrectly, without a

112
00:09:06.885 --> 00:09:08.925
simultaneous storage upset.

113
00:09:08.925 --> 00:09:14.365
Format checking does not establish source
authorization or bind the decision to this image

114
00:09:14.365 --> 00:09:15.705
and transaction.

115
00:09:15.705 --> 00:09:18.365
That source needs protection beyond storage
coding.

116
00:09:19.065 --> 00:09:24.525
In another separate experiment, change final
grant to one at edge four.

117
00:09:24.525 --> 00:09:29.425
Storage still correctly represents failure, yet
the first fetch is accepted.

118
00:09:29.425 --> 00:09:33.085
All four storage schemes leave this added
location exposed.

119
00:09:33.085 --> 00:09:38.265
The handshake and actual acceptance mechanism
remain trusted, and not every consumer node was

120
00:09:38.265 --> 00:09:39.305
tested.

121
00:09:39.305 --> 00:09:43.605
This is not combined with source or storage
injection into a multi-target run.

122
00:09:43.605 --> 00:09:54.505
Two registers may be adjacent, share a source,
clock, or reset, or have redundant logic merged

123
00:09:55.085 --> 00:09:56.625
during synthesis.

124
00:09:56.625 --> 00:10:02.325
Inspect the implementation, local reaction, and
alert path.

125
00:10:02.325 --> 00:10:05.925
OpenTitan's guidance addresses these concerns.

126
00:10:05.925 --> 00:10:11.305
OTBN uses a different integrity code with no
automatic correction.

127
00:10:11.305 --> 00:10:17.385
This custom Hamming example neither reproduces
that code nor validates the product.

128
00:10:18.545 --> 00:10:24.965
At every acceptance, require independent
reference completion and authorization at that

129
00:10:24.965 --> 00:10:29.385
edge, with authorized operation reachable too.

130
00:10:29.385 --> 00:10:36.905
The SVA examples need a harness constraining
event count, mask width, and bit count; they are

131
00:10:36.905 --> 00:10:38.925
not completed proofs.

132
00:10:38.925 --> 00:10:44.965
Expand the budget from one bit to three and rerun
zero seven.

133
00:10:44.965 --> 00:10:50.985
Follow the data selected by continue and reject
to acceptance.

134
00:10:50.985 --> 00:11:00.525
Unknown values, glitches, delay, layout, common
causes, recovery, and side channels still require

135
00:11:00.525 --> 00:11:03.045
RTL and physical evidence.

136
00:11:03.045 --> 00:11:05.965
Check those paths and budgets when reading
research.

