mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-29 03:32:39 +00:00
Rename parse_binary_string function
Signed-off-by: Kusumit Ghoderao <Kusumit.Ghoderao@silabs.com>
This commit is contained in:
parent
8eb55891ad
commit
7c61ffcc44
@ -243,7 +243,7 @@ int mbedtls_test_inject_entropy_restore(void);
|
||||
|
||||
/** Parse binary string and convert it to a long integer
|
||||
*/
|
||||
uint64_t parse_binary_string(data_t *bin_string);
|
||||
uint64_t mbedtls_test_parse_binary_string(data_t *bin_string);
|
||||
|
||||
/** Skip a test case if the given key is a 192 bits AES key and the AES
|
||||
* implementation is at least partially provided by an accelerator or
|
||||
|
@ -149,7 +149,7 @@ int mbedtls_test_fail_if_psa_leaking(int line_no, const char *filename)
|
||||
}
|
||||
}
|
||||
|
||||
uint64_t parse_binary_string(data_t *bin_string)
|
||||
uint64_t mbedtls_test_parse_binary_string(data_t *bin_string)
|
||||
{
|
||||
uint64_t result = 0;
|
||||
TEST_LE_U(bin_string->len, 8);
|
||||
|
@ -8463,7 +8463,7 @@ exit:
|
||||
void parse_binary_string_test(data_t *input, int output)
|
||||
{
|
||||
uint64_t value;
|
||||
value = parse_binary_string(input);
|
||||
value = mbedtls_test_parse_binary_string(input);
|
||||
TEST_EQUAL(value, output);
|
||||
}
|
||||
/* END_CASE */
|
||||
@ -8529,7 +8529,7 @@ void derive_input(int alg_arg,
|
||||
if (key_types[i] == INPUT_INTEGER) {
|
||||
TEST_EQUAL(psa_key_derivation_input_integer(
|
||||
&operation, steps[i],
|
||||
parse_binary_string(inputs[i])),
|
||||
mbedtls_test_parse_binary_string(inputs[i])),
|
||||
expected_statuses[i]);
|
||||
} else {
|
||||
TEST_EQUAL(psa_key_derivation_input_bytes(
|
||||
@ -8729,7 +8729,7 @@ void derive_output(int alg_arg,
|
||||
case PSA_KEY_DERIVATION_INPUT_COST:
|
||||
TEST_EQUAL(psa_key_derivation_input_integer(
|
||||
&operation, steps[i],
|
||||
parse_binary_string(inputs[i])),
|
||||
mbedtls_test_parse_binary_string(inputs[i])),
|
||||
statuses[i]);
|
||||
if (statuses[i] != PSA_SUCCESS) {
|
||||
goto exit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user