mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-28 13:07:23 +00:00
Update tests/suites/test_suite_psa_crypto.function
Co-authored-by: Gilles Peskine <[email protected]> Signed-off-by: Kusumit-Silabs <[email protected]>
This commit is contained in:
co-authored by
Gilles Peskine
parent
af0225e4de
commit
b6ad6823f0
@@ -301,7 +301,7 @@ uint64_t parse_binary_string(data_t *bin_string)
|
||||
uint64_t result = 0;
|
||||
TEST_LE_U(bin_string->len, 8);
|
||||
for (size_t i = 0; i < bin_string->len; i++) {
|
||||
result = (uint64_t) result | bin_string->x[i];
|
||||
result = result << 64 | bin_string->x[i];
|
||||
}
|
||||
exit:
|
||||
return result; /* returns 0 if len > 8 */
|
||||
|
||||
Reference in New Issue
Block a user