mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
psa-crypto: remove redundant memcpy
This commit is contained in:
parent
d8d5478f0a
commit
da41dd1dbe
@ -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(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:
|
done:
|
||||||
explicit_bzero(&secret_key, sizeof(secret_key));
|
explicit_bzero(&secret_key, sizeof(secret_key));
|
||||||
|
Loading…
Reference in New Issue
Block a user