Skip to content

Commit

Permalink
psa-crypto: remove redundant memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
mguetschow committed Oct 9, 2023
1 parent d8d5478 commit da41dd1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/driver_cryptocell_310/psa_cryptocell_310/ecc_ed25519.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ psa_status_t psa_generate_ecc_ed25519_key_pair( uint8_t *priv_key_buffer,
}

memcpy(priv_key_buffer, secret_key, CRYS_ECEDW_ORD_SIZE_IN_BYTES);
memcpy(pub_key_buffer, &secret_key[CRYS_ECEDW_ORD_SIZE_IN_BYTES], CRYS_ECEDW_MOD_SIZE_IN_BYTES);

done:
explicit_bzero(&secret_key, sizeof(secret_key));
Expand Down

0 comments on commit da41dd1

Please sign in to comment.