lcov exclusions

This commit is contained in:
Frank Denis 2014-09-23 13:31:42 -07:00
parent 99734cf8b4
commit dcbc538cd9
2 changed files with 5 additions and 2 deletions

View File

@ -156,9 +156,11 @@ crypto_pwhash_scryptsalsa208sha256_str(char out[crypto_pwhash_scryptsalsa208sha2
if (escrypt_r(&escrypt_local, (const uint8_t *) passwd, (size_t) passwdlen,
(const uint8_t *) setting, (uint8_t *) out,
crypto_pwhash_scryptsalsa208sha256_STRBYTES) == NULL) {
/* LCOV_EXCL_START */
escrypt_free_local(&escrypt_local);
errno = EINVAL;
return -1;
/* LCOV_EXCL_STOP */
}
escrypt_free_local(&escrypt_local);

View File

@ -190,10 +190,11 @@ chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, unsigned long long bytes
x15 = XOR(x15, U8TO32_LITTLE(m + 60));
j12 = PLUSONE(j12);
/* LCOV_EXCL_START */
if (!j12) {
j13 = PLUSONE(j13); /* LCOV_EXCL_LINE */
/* stopping at 2^70 bytes per nonce is user's responsibility */
j13 = PLUSONE(j13);
}
/* LCOV_EXCL_STOP */
U32TO8_LITTLE(c + 0, x0);
U32TO8_LITTLE(c + 4, x1);