Skip to content

Commit

Permalink
crypto_box_keypair() cannot fail - Add lcov exclusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed May 9, 2015
1 parent ee97d5e commit 63dd054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsodium/crypto_box/crypto_box_seal.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ crypto_box_seal(unsigned char *c, const unsigned char *m,
int ret;

if (crypto_box_keypair(epk, esk) != 0) {
return -1;
return -1; /* LCOV_EXCL_LINE */
}
memcpy(c, epk, crypto_box_PUBLICKEYBYTES);
_crypto_box_seal_nonce(nonce, epk, pk);
Expand Down

0 comments on commit 63dd054

Please sign in to comment.