Skip to content

Commit d30d772

Browse files
authored
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
2 parents 58a5f95 + f74d545 commit d30d772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/device_key/source/DeviceKey.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ int DeviceKey::read_key_from_kvstore(uint32_t *output, size_t &size)
169169
return DEVICEKEY_NOT_FOUND;
170170
}
171171

172-
int kvStatus = ((TDBStore *)inner_store)->reserved_data_get(output, size);
172+
int kvStatus = ((TDBStore *)inner_store)->reserved_data_get(output, size, &size);
173173
if (MBED_ERROR_ITEM_NOT_FOUND == kvStatus) {
174174
return DEVICEKEY_NOT_FOUND;
175175
}

0 commit comments

Comments
 (0)