DKEK Key Check Value Shows 0000000000000000 After Import, Fails to Update #94
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Description
When using sc-hsm-tool to initialize and import a DKEK key, the DKEK key check value remains 0000000000000000 even after successfully importing the DKEK share.
Environment Information
OpenSC Version: 0.26.1, 0.25.1
Hardward Board Model: RPi Pico 2040, waveshare 2350 one, xiao 2350
Operating System: Windows10 LTSC 2021, Linux(Ubuntu 24.04.2 LTS)
Steps to Reproduce
Create a single share DKEK
sc-hsm-tool --create-dkek-share dkek.pbeInitialize with DKEK:
sc-hsm-tool.exe --initialize --so-pin 3537363231383830 --pin 648219 --dkek-shares 1Check status (shows pending import):
sc-hsm-tool.exeOutput:
DKEK shares : 1
DKEK import pending, 1 share(s) still missing
Import DKEK share:
sc-hsm-tool.exe --import-dkek-share dkek.pbeEnter correct password, shows successful import
Check status again:
sc-hsm-tool.exeOutput:
DKEK shares : 1
DKEK key check value : 0000000000000000
is also 0000000000000000, but using scsh after login, the value is ok
This is intended. DKEK is unlocked only when the PIN succeeds.