Merge pull request #10516 from yossi2le/yossi_fix_device_key_when_no_trng

32 Byte key derivation may fail with a 16 Byte ROT key
pull/10522/head
Martin Kojtal 2019-05-02 09:29:25 +01:00 committed by GitHub
commit d30d772047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }