Commit e4d5ef3
fix(sdk-lib-mpc): replace date:null with tolerance window in OpenPGP calls
Remove `date: null as unknown as undefined` from OpenPGP encrypt/decrypt
calls (use default current-time checks) and replace it with
`now + 24h` on verify calls only, to tolerate signatures from OVC
devices whose clocks are up to 24 hours ahead.
OpenPGP's date parameter shifts ALL temporal checks simultaneously,
so a single shifted date cannot independently relax key-expiry checks
without breaking self-signature validation on fresh keys.
Ticket: WAL-379
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 811c442 commit e4d5ef3
File tree
2 files changed
+101
-5
lines changed- modules/sdk-lib-mpc
- src/tss/ecdsa-dkls
- test/unit/tss/ecdsa
2 files changed
+101
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
4 | 32 | | |
5 | 33 | | |
6 | 34 | | |
| |||
49 | 77 | | |
50 | 78 | | |
51 | 79 | | |
52 | | - | |
53 | 80 | | |
54 | 81 | | |
55 | 82 | | |
| |||
90 | 117 | | |
91 | 118 | | |
92 | 119 | | |
93 | | - | |
94 | 120 | | |
95 | 121 | | |
96 | 122 | | |
97 | 123 | | |
98 | 124 | | |
99 | | - | |
| 125 | + | |
100 | 126 | | |
101 | 127 | | |
102 | 128 | | |
| |||
113 | 139 | | |
114 | 140 | | |
115 | 141 | | |
116 | | - | |
| 142 | + | |
117 | 143 | | |
118 | 144 | | |
119 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
97 | 167 | | |
0 commit comments