mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
Annotations
This commit is contained in:
parent
e936002885
commit
8ca2c79a19
@ -271,7 +271,7 @@ crypto_hash_sha256_update(crypto_hash_sha256_state *state,
|
||||
in += 64;
|
||||
inlen -= 64;
|
||||
}
|
||||
memcpy(state->buf, in, inlen);
|
||||
memcpy(state->buf, in, inlen); /* inlen < 64 */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -291,7 +291,7 @@ crypto_hash_sha512_update(crypto_hash_sha512_state *state,
|
||||
src += 128;
|
||||
inlen -= 128;
|
||||
}
|
||||
memcpy(state->buf, src, inlen);
|
||||
memcpy(state->buf, src, inlen); /* inlen < 128 */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ chacha_encrypt_bytes(chacha_ctx *ctx, const u8 *m, u8 *c, unsigned long long byt
|
||||
if (bytes <= 64) {
|
||||
if (bytes < 64) {
|
||||
for (i = 0; i < (unsigned int) bytes; ++i) {
|
||||
ctarget[i] = c[i];
|
||||
ctarget[i] = c[i]; /* ctarget cannot be NULL */
|
||||
}
|
||||
}
|
||||
ctx->input[12] = j12;
|
||||
|
Loading…
Reference in New Issue
Block a user