Skip to content

Commit

Permalink
crypto: change TEE_MAIN_ALGO_X448 value to 0x49
Browse files Browse the repository at this point in the history
Change the value of TEE_MAIN_ALGO_X448 to 0x49 so that
TEE_ALG_GET_KEY_TYPE(TEE_ALG_X448, true) == TEE_TYPE_X448_KEYPAIR and
TEE_ALG_GET_KEY_TYPE(TEE_ALG_X448, false) == TEE_TYPE_X448_PUBLIC_KEY.

Signed-off-by: loubaihui <loubaihui1@huawei.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
bhLou authored and jforissier committed Aug 29, 2023
1 parent e980c68 commit 567dbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libutee/include/utee_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#define TEE_MAIN_ALGO_X25519 0x44 /* Not in v1.2 spec */
#define TEE_MAIN_ALGO_SHAKE128 0xC3 /* OP-TEE extension */
#define TEE_MAIN_ALGO_SHAKE256 0xC4 /* OP-TEE extension */
#define TEE_MAIN_ALGO_X448 0xC5 /* OP-TEE extension */
#define TEE_MAIN_ALGO_X448 0x49


#define TEE_CHAIN_MODE_ECB_NOPAD 0x0
Expand Down

0 comments on commit 567dbd8

Please sign in to comment.