@@ -125,13 +125,13 @@ psa_status_t atecc608a_to_psa_error(ATCA_STATUS ret)
125
125
* format for pubkeys is 0x04 + x + y. Always use a pubkey buffer in PSA
126
126
* format, with enough space for the PSA format. To translate this buffer for
127
127
* use with cryptoauthlib, use pubkey_for_driver(). To ensure the buffer is in
128
- * valid PSA format after cryptoauthlib operations, call pubkey_for_psa (). */
128
+ * valid PSA format after cryptoauthlib operations, call add_psa_pubkey_prefix (). */
129
129
static uint8_t * pubkey_for_driver (uint8_t * data )
130
130
{
131
131
return & data [1 ];
132
132
}
133
133
134
- static void pubkey_for_psa (uint8_t * data )
134
+ static void add_psa_pubkey_prefix (uint8_t * data )
135
135
{
136
136
data [0 ] = 0x4 ;
137
137
}
@@ -174,7 +174,7 @@ static psa_status_t atecc608a_export_public_key(psa_drv_se_context_t *drv_contex
174
174
ASSERT_SUCCESS_PSA (atecc608a_init ());
175
175
176
176
ASSERT_SUCCESS (atcab_get_pubkey (slot , pubkey_for_driver (p_data )));
177
- pubkey_for_psa (p_data );
177
+ add_psa_pubkey_prefix (p_data );
178
178
179
179
* p_data_length = key_data_len ;
180
180
@@ -265,7 +265,7 @@ static psa_status_t atecc608a_generate_key(
265
265
266
266
if (pubkey != NULL ) {
267
267
ASSERT_SUCCESS (atcab_genkey (key_id , pubkey_for_driver (pubkey )));
268
- pubkey_for_psa (pubkey );
268
+ add_psa_pubkey_prefix (pubkey );
269
269
} else {
270
270
ASSERT_SUCCESS (atcab_genkey (key_id , NULL ));
271
271
}
0 commit comments