1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:49:47 +01:00

psa-crypto: remove redundant memcpy

This commit is contained in:
Mikolai Gütschow 2023-10-09 13:52:52 +02:00
parent d8d5478f0a
commit da41dd1dbe
No known key found for this signature in database
GPG Key ID: 943E2F37AA659AD5

View File

@ -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));