Skip to content

Commit

Permalink
fixup! core: allow redefinition of function huk_subkey_derive()
Browse files Browse the repository at this point in the history
Use alias instead of calling __huk_subkey_derive as the declaration of the
function huk_subkey_derive

Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
  • Loading branch information
tbourgoi committed Jul 24, 2023
1 parent 85b7440 commit 0dfcd0a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions core/kernel/huk_subkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ TEE_Result __huk_subkey_derive(enum huk_subkey_usage usage,
return res;
}

__weak TEE_Result huk_subkey_derive(enum huk_subkey_usage usage,
const void *const_data,
size_t const_data_len,
uint8_t *subkey, size_t subkey_len)
{
return __huk_subkey_derive(usage, const_data, const_data_len, subkey,
subkey_len);
}
TEE_Result huk_subkey_derive(enum huk_subkey_usage usage,
const void *const_data, size_t const_data_len,
uint8_t *subkey, size_t subkey_len)
__weak __alias("__huk_subkey_derive");

0 comments on commit 0dfcd0a

Please sign in to comment.