Message ID | 1388682306-30859-75-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/crypto/ccm.c b/crypto/ccm.c index 32fe1bb..18d64ad 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c @@ -271,7 +271,8 @@ static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain, } /* compute plaintext into mac */ - get_data_to_compute(cipher, pctx, plain, cryptlen); + if (cryptlen) + get_data_to_compute(cipher, pctx, plain, cryptlen); out: return err;