EVP_CCM_TLS_EXPLICIT_IV_LEN
|| len < (EVP_CCM_TLS_EXPLICIT_IV_LEN + (size_t)cctx->aes.ccm.m))
memcpy(out, buf, EVP_CCM_TLS_EXPLICIT_IV_LEN);
len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx->aes.ccm.m;
memcpy(ivec + EVP_CCM_TLS_FIXED_IV_LEN, in, EVP_CCM_TLS_EXPLICIT_IV_LEN);
in += EVP_CCM_TLS_EXPLICIT_IV_LEN;
out += EVP_CCM_TLS_EXPLICIT_IV_LEN;
return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx->aes.ccm.m;
if (len < EVP_CCM_TLS_EXPLICIT_IV_LEN)
len -= EVP_CCM_TLS_EXPLICIT_IV_LEN;
if (len < EVP_CCM_TLS_EXPLICIT_IV_LEN)
len -= EVP_CCM_TLS_EXPLICIT_IV_LEN;
if (out != in || len < (EVP_CCM_TLS_EXPLICIT_IV_LEN + (size_t)cctx->M))
EVP_CCM_TLS_EXPLICIT_IV_LEN);
EVP_CCM_TLS_EXPLICIT_IV_LEN);
len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx->M;
in += EVP_CCM_TLS_EXPLICIT_IV_LEN;
out += EVP_CCM_TLS_EXPLICIT_IV_LEN;
return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx->M;
if (len < EVP_CCM_TLS_EXPLICIT_IV_LEN)
len -= EVP_CCM_TLS_EXPLICIT_IV_LEN;
if (out != in || len < (EVP_CCM_TLS_EXPLICIT_IV_LEN + (size_t)cctx->M))
EVP_CCM_TLS_EXPLICIT_IV_LEN);
EVP_CCM_TLS_EXPLICIT_IV_LEN);
len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx->M;
in += EVP_CCM_TLS_EXPLICIT_IV_LEN;
out += EVP_CCM_TLS_EXPLICIT_IV_LEN;
return len + EVP_CCM_TLS_EXPLICIT_IV_LEN + cctx->M;
if (len < EVP_CCM_TLS_EXPLICIT_IV_LEN)
if (in == NULL || out != in || len < EVP_CCM_TLS_EXPLICIT_IV_LEN + ctx->m)
memcpy(out, ctx->buf, EVP_CCM_TLS_EXPLICIT_IV_LEN);
memcpy(ctx->iv + EVP_CCM_TLS_FIXED_IV_LEN, in, EVP_CCM_TLS_EXPLICIT_IV_LEN);
len -= EVP_CCM_TLS_EXPLICIT_IV_LEN + ctx->m;
in += EVP_CCM_TLS_EXPLICIT_IV_LEN;
out += EVP_CCM_TLS_EXPLICIT_IV_LEN;
olen = len + EVP_CCM_TLS_EXPLICIT_IV_LEN + ctx->m;
len -= EVP_CCM_TLS_EXPLICIT_IV_LEN;
== EVP_CCM_TLS_EXPLICIT_IV_LEN))
== EVP_CCM_TLS_EXPLICIT_IV_LEN))
eivlen = EVP_CCM_TLS_EXPLICIT_IV_LEN;
recs[0].data += EVP_CCM_TLS_EXPLICIT_IV_LEN;
recs[0].input += EVP_CCM_TLS_EXPLICIT_IV_LEN;
recs[ctr].data += EVP_CCM_TLS_EXPLICIT_IV_LEN;
recs[ctr].input += EVP_CCM_TLS_EXPLICIT_IV_LEN;
recs[ctr].length -= EVP_CCM_TLS_EXPLICIT_IV_LEN;
out = EVP_CCM_TLS_EXPLICIT_IV_LEN + 16;
out = EVP_CCM_TLS_EXPLICIT_IV_LEN + 8;