mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(psa): align with original API in tf-m-extras
The measured boot API is available in the tf-m-extras repo: partitions/measured_boot/interface/src/measured_boot_api.c This change make the API behavior align with the original implementation. Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: Ie4af38b859f942b2ef090e92da64d75811b5b49b
This commit is contained in:
parent
e3a6fb84f5
commit
471c9895a6
1 changed files with 4 additions and 5 deletions
|
@ -87,12 +87,11 @@ rss_measured_boot_extend_measurement(uint8_t index,
|
|||
{.base = measurement_value, .len = measurement_value_size}
|
||||
};
|
||||
|
||||
uint32_t sw_type_size_limited;
|
||||
|
||||
if (sw_type != NULL) {
|
||||
sw_type_size_limited = (sw_type_size < SW_TYPE_MAX_SIZE) ?
|
||||
sw_type_size : SW_TYPE_MAX_SIZE;
|
||||
memcpy(extend_iov.sw_type, sw_type, sw_type_size_limited);
|
||||
if (sw_type_size > SW_TYPE_MAX_SIZE) {
|
||||
return PSA_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
memcpy(extend_iov.sw_type, sw_type, sw_type_size);
|
||||
}
|
||||
|
||||
log_measurement(index, signer_id, signer_id_size,
|
||||
|
|
Loading…
Add table
Reference in a new issue