Commit 6519fea
tpm: add hmac checks to tpm2_pcr_extend()
tpm2_pcr_extend() is used by trusted keys to extend a PCR to prevent a
key from being re-loaded until the next reboot. To use this
functionality securely, that extend must be protected by a session
hmac. This patch adds HMAC protection so tampering with the
tpm2_pcr_extend() command in flight is detected.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>1 parent 1085b82 commit 6519fea
1 file changed
Lines changed: 10 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | 219 | | |
227 | 220 | | |
228 | 221 | | |
| |||
236 | 229 | | |
237 | 230 | | |
238 | 231 | | |
239 | | - | |
240 | 232 | | |
241 | 233 | | |
242 | 234 | | |
243 | | - | |
| 235 | + | |
244 | 236 | | |
245 | 237 | | |
246 | 238 | | |
247 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
248 | 244 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 245 | + | |
| 246 | + | |
253 | 247 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 248 | | |
258 | 249 | | |
259 | 250 | | |
| |||
262 | 253 | | |
263 | 254 | | |
264 | 255 | | |
| 256 | + | |
265 | 257 | | |
| 258 | + | |
266 | 259 | | |
267 | 260 | | |
268 | 261 | | |
| |||
0 commit comments