Commit 2ca6f14
committed
Restrict host key-writes to user ECC slots (block 117-132, keep backup)
Host OKSETPRIV requests may only target user slots (RSA 1-4, ECC 101-116).
Reserved ECC slots 117-132 are rejected EXCEPT the designated backup key
(slot 131 with the 0x80 backup-type flag), which the app sets via
setBackupPassphrase. HMAC (129/130, YUBIAUTH/feature-report) and derivation
(128/132, internal) use other paths that call set_private() directly and
bypass this dispatch, so they remain unaffected.1 parent 0de93a5 commit 2ca6f14
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
445 | 459 | | |
| 460 | + | |
446 | 461 | | |
447 | 462 | | |
448 | 463 | | |
| |||
0 commit comments