Commit eea8741
committed
examples/nvram: pick SRK algorithm from stored key type
nvram/read hardcoded the RSA SRK, so an ECC child key retrieved
from NV would be loaded under the RSA parent and fail with
TPM_RC_INTEGRITY. Switch the SRK selection to mirror the approach
already used in keygen/keyload: inspect keyBlob.pub.publicArea.type
and load the matching RSA or ECC SRK.1 parent 90846ba commit eea8741
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
| |||
0 commit comments