This commit is contained in:
Dr. Stephen Henson 2011-04-18 21:01:24 +00:00
parent a0cc46f8e4
commit 98279c1629

View File

@ -285,7 +285,7 @@ int CRYPTO_ccm128_decrypt(CCM128_CONTEXT *ctx,
if (len) {
(*block)(ctx->nonce.c,scratch.c,ctx->key);
for (i=0; i<len; ++len)
for (i=0; i<len; ++i)
ctx->cmac.c[i] ^= (out[i] = scratch.c[i]^inp[i]);
(*block)(ctx->cmac.c,ctx->cmac.c,ctx->key);
}