Skip to content

Commit e7d08c3

Browse files
committed
Remove extra parameter from psa_drv_se_generate_key_t
1 parent a76d735 commit e7d08c3

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

include/psa/crypto_se_driver.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -849,11 +849,6 @@ typedef psa_status_t (*psa_drv_se_export_key_t)(psa_key_slot_number_t key,
849849
* Driver developers should endeavor to match the
850850
* usages as close as possible.
851851
* \param[in] bits The size in bits of the key to be generated.
852-
* \param[in] extra Extra parameters for key generation. The
853-
* interpretation of this parameter should match the
854-
* interpretation in the `extra` parameter in the
855-
* `psa_generate_key` function
856-
* \param[in] extra_size The size in bytes of the \p extra buffer
857852
* \param[out] p_pubkey_out The buffer where the public key information will
858853
* be placed
859854
* \param[in] pubkey_out_size The size in bytes of the `p_pubkey_out` buffer
@@ -864,8 +859,6 @@ typedef psa_status_t (*psa_drv_se_generate_key_t)(psa_key_slot_number_t key_slot
864859
psa_key_type_t type,
865860
psa_key_usage_t usage,
866861
size_t bits,
867-
const void *extra,
868-
size_t extra_size,
869862
uint8_t *p_pubkey_out,
870863
size_t pubkey_out_size,
871864
size_t *p_pubkey_length);

tests/suites/test_suite_psa_crypto_se_driver_hal_mocks.function

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,10 @@ static psa_status_t mock_generate( psa_key_slot_number_t key_slot,
9393
psa_key_type_t type,
9494
psa_key_usage_t usage,
9595
size_t bits,
96-
const void *extra,
97-
size_t extra_size,
9896
uint8_t *p_pubkey_out,
9997
size_t pubkey_out_size,
10098
size_t *p_pubkey_length )
10199
{
102-
(void) extra;
103100
(void) p_pubkey_out;
104101
(void) p_pubkey_length;
105102

@@ -108,7 +105,6 @@ static psa_status_t mock_generate( psa_key_slot_number_t key_slot,
108105
mock_generate_data.type = type;
109106
mock_generate_data.usage = usage;
110107
mock_generate_data.bits = bits;
111-
mock_generate_data.extra_size = extra_size;
112108
mock_generate_data.pubkey_out_size = pubkey_out_size;
113109

114110
return( mock_generate_data.return_value );

0 commit comments

Comments
 (0)