DEVICE DRIVERS
iPS_LoadSysEncKey()
M
X
800 SERIES PROGRAMMERS GUIDE 61
iPS_LoadSysEncKey()
This function loads the system keys. The new values must be presented
encrypted under the current value of VSS_KLK.
Contrary to the clear text loading, this encrypted loading does not erase all other
secrets in the unit.
An error code will be returned if the VSS_KLK is not present.
Prototype
int iPS_LoadSysEncKey(unsigned char ucKeyID, unsigned char *
pucINKeyValue)
Parameters
Return Values
ucKeyID The key identifier.
pucINKeyValue 16-byte buffer containing the clear-text key
0 Successful execution
E_KM_NO_KEY_LOADED VSS_KLK is absent. No encrypted loading
possible
E_KM_KEY_INTEGRITY_ERROR VSS_KLK is corrupted
E_KM_SYSTEM_ERROR
0x00 VSS_KLK (16 bytes)