@@ -165,6 +165,8 @@ static psa_status_t atecc608a_export_public_key(psa_drv_se_context_t *drv_contex
165
165
const uint16_t slot = key ;
166
166
psa_status_t status = PSA_ERROR_GENERIC_ERROR ;
167
167
168
+ (void ) drv_context ;
169
+
168
170
if (data_size < key_data_len ) {
169
171
return PSA_ERROR_BUFFER_TOO_SMALL ;
170
172
}
@@ -185,6 +187,7 @@ static psa_status_t atecc608a_export_public_key(psa_drv_se_context_t *drv_contex
185
187
atecc608a_deinit ();
186
188
return status ;
187
189
}
190
+
188
191
static psa_status_t atecc608a_import_public_key (
189
192
psa_drv_se_context_t * drv_context ,
190
193
psa_key_slot_number_t key_slot ,
@@ -198,6 +201,7 @@ static psa_status_t atecc608a_import_public_key(
198
201
psa_key_type_t type = psa_get_key_type (attributes );
199
202
psa_algorithm_t alg = psa_get_key_algorithm (attributes );
200
203
204
+ (void ) drv_context ;
201
205
ASSERT_SUCCESS_PSA (is_public_key_slot (key_id ));
202
206
203
207
/* Check if the key has a size of 65 {0x04, X, Y}. */
@@ -241,6 +245,7 @@ static psa_status_t atecc608a_generate_key(
241
245
psa_key_type_t type = psa_get_key_type (attributes );
242
246
size_t bits = psa_get_key_bits (attributes );
243
247
248
+ (void ) drv_context ;
244
249
/* The hardware has slots 0-15 */
245
250
if (key_slot > 15 ) {
246
251
return PSA_ERROR_INVALID_ARGUMENT ;
@@ -288,6 +293,7 @@ static psa_status_t atecc608a_asymmetric_sign(psa_drv_se_context_t *drv_context,
288
293
const uint16_t key_id = key_slot ;
289
294
psa_status_t status = PSA_ERROR_GENERIC_ERROR ;
290
295
296
+ (void ) drv_context ;
291
297
/* The driver can only do randomized ECDSA on SHA-256 */
292
298
if (alg != PSA_ALG_ECDSA (PSA_ALG_SHA_256 ) && alg != PSA_ALG_ECDSA_ANY ) {
293
299
return PSA_ERROR_NOT_SUPPORTED ;
@@ -332,6 +338,7 @@ psa_status_t atecc608a_asymmetric_verify(psa_drv_se_context_t *drv_context,
332
338
psa_status_t status = PSA_ERROR_GENERIC_ERROR ;
333
339
bool is_verified = false;
334
340
341
+ (void ) drv_context ;
335
342
ASSERT_SUCCESS_PSA (is_public_key_slot (key_id ));
336
343
337
344
/* The driver can only do randomized ECDSA on SHA-256 */
@@ -399,6 +406,9 @@ static psa_status_t atecc608a_validate_slot_number(
399
406
psa_key_slot_number_t key_slot )
400
407
{
401
408
psa_key_type_t type = psa_get_key_type (attributes );
409
+ (void ) drv_context ;
410
+ (void ) method ;
411
+
402
412
if (PSA_KEY_TYPE_IS_ECC_KEY_PAIR (type )) {
403
413
if (key_slot <= 15 ) {
404
414
return PSA_SUCCESS ;
@@ -418,6 +428,12 @@ static psa_status_t atecc608a_allocate_key(
418
428
psa_key_creation_method_t method ,
419
429
psa_key_slot_number_t * key_slot )
420
430
{
431
+ (void ) drv_context ;
432
+ (void ) persistent_data ;
433
+ (void ) attributes ;
434
+ (void ) method ;
435
+ (void ) key_slot ;
436
+
421
437
return PSA_SUCCESS ;
422
438
}
423
439
0 commit comments