Skip to content

Commit

Permalink
Merge pull request openzfs#7 from lundman/master
Browse files Browse the repository at this point in the history
crypto_decrypt should return CRYPTO_INVALID_MAC
  • Loading branch information
zfsrogue committed Nov 20, 2012
2 parents d306a3a + 2111799 commit 30af394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/spl/spl-crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@ int crypto_decrypt(crypto_mechanism_t *mech, crypto_data_t *ciphertext,

case -EBADMSG: // Verify authenticate failed.
cmn_err(CE_WARN, "spl-crypto: decrypt verify failed.");
ret = CRYPTO_SUCCESS; // Fix me in future, should be failure.
//ret = CRYPTO_SUCCESS; // Fix me in future, should be failure.
ret = CRYPTO_INVALID_MAC;
break;

default:
Expand Down

0 comments on commit 30af394

Please sign in to comment.