mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10516 from yossi2le/yossi_fix_device_key_when_no_trng
32 Byte key derivation may fail with a 16 Byte ROT keypull/10522/head
commit
d30d772047
|
@ -169,7 +169,7 @@ int DeviceKey::read_key_from_kvstore(uint32_t *output, size_t &size)
|
||||||
return DEVICEKEY_NOT_FOUND;
|
return DEVICEKEY_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
int kvStatus = ((TDBStore *)inner_store)->reserved_data_get(output, size);
|
int kvStatus = ((TDBStore *)inner_store)->reserved_data_get(output, size, &size);
|
||||||
if (MBED_ERROR_ITEM_NOT_FOUND == kvStatus) {
|
if (MBED_ERROR_ITEM_NOT_FOUND == kvStatus) {
|
||||||
return DEVICEKEY_NOT_FOUND;
|
return DEVICEKEY_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue