Implement GetDeviceId for prov4
[ Merge of http://go/wvgerrit/150349 ] The device id for prov4 is hash of the encoded device public key (COSE_key). Also replaced a few bug numbers if it is prov3 specific (not related to prov4). Bug: 225216277 Bug: 236317198 Test: oemcrypto_test Change-Id: Ica1c8579c0a3ef83c70f331283c9cce629c6bb3f
This commit is contained in:
@@ -3094,10 +3094,11 @@ OEMCryptoResult OEMCrypto_IsKeyboxOrOEMCertValid(void);
|
||||
|
||||
/**
|
||||
* Return a device unique id. For devices with a keybox, retrieve the
|
||||
* DeviceID from the Keybox. For devices that have an OEM Certificate instead
|
||||
* of a keybox, it should set the device ID to a device-unique string, such
|
||||
* as the device serial number. The ID should be device-unique and it should
|
||||
* be stable -- i.e. it should not change across a device reboot or a system
|
||||
* DeviceID from the Keybox. For devices that have an OEM Certificate, or if
|
||||
* provisioning 4 is used, it should set the device ID to a device-unique
|
||||
* string, such as the device serial number or a hash of the device public key
|
||||
* in boot certificate chain. The ID should be device-unique and it should be
|
||||
* stable -- i.e. it should not change across a device reboot or a system
|
||||
* upgrade. This shall match the device id found in the core provisioning
|
||||
* request message. The maximum length of the device id is 64 bytes. The
|
||||
* device ID field in a keybox is 32 bytes.
|
||||
|
||||
Reference in New Issue
Block a user