1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Annotations

This commit is contained in:
Frank Denis 2015-12-23 20:40:32 +01:00
parent e936002885
commit 8ca2c79a19
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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