mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
[master] s/mempcy/memmove/
This commit is contained in:
parent
8f0cf84bb1
commit
067c0c38e7
@ -9411,7 +9411,7 @@ generate_salt(unsigned char *salt, size_t saltlen) {
|
|||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
isc_random_get(&rnd.rnd32[i]);
|
isc_random_get(&rnd.rnd32[i]);
|
||||||
|
|
||||||
memcpy(salt, rnd.rnd, saltlen);
|
memmove(salt, rnd.rnd, saltlen);
|
||||||
|
|
||||||
r.base = rnd.rnd;
|
r.base = rnd.rnd;
|
||||||
r.length = (unsigned int) saltlen;
|
r.length = (unsigned int) saltlen;
|
||||||
|
@ -311,7 +311,7 @@ chacha_getuint16(isc_rng_t *rng) {
|
|||||||
if (rng->have < sizeof(val))
|
if (rng->have < sizeof(val))
|
||||||
chacha_rekey(rng, NULL, 0);
|
chacha_rekey(rng, NULL, 0);
|
||||||
|
|
||||||
memcpy(&val, rng->buffer + CHACHA_BUFFERSIZE - rng->have,
|
memmove(&val, rng->buffer + CHACHA_BUFFERSIZE - rng->have,
|
||||||
sizeof(val));
|
sizeof(val));
|
||||||
/* Clear the copied region. */
|
/* Clear the copied region. */
|
||||||
memset(rng->buffer + CHACHA_BUFFERSIZE - rng->have,
|
memset(rng->buffer + CHACHA_BUFFERSIZE - rng->have,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user