diff options
| -rw-r--r-- | crypto/ccm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c index 7cf7e5a6b78..c36d654cf56 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c | |||
| @@ -266,6 +266,8 @@ static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain, | |||
| 266 | if (assoclen) { | 266 | if (assoclen) { |
| 267 | pctx->ilen = format_adata(idata, assoclen); | 267 | pctx->ilen = format_adata(idata, assoclen); |
| 268 | get_data_to_compute(cipher, pctx, req->assoc, req->assoclen); | 268 | get_data_to_compute(cipher, pctx, req->assoc, req->assoclen); |
| 269 | } else { | ||
| 270 | pctx->ilen = 0; | ||
| 269 | } | 271 | } |
| 270 | 272 | ||
| 271 | /* compute plaintext into mac */ | 273 | /* compute plaintext into mac */ |
