Lines Matching refs:tlen
260 int offset, resid, tlen, rc; in smb2_sign_calc_common() local
275 tlen = SMB2_HDR_SIZE; in smb2_sign_calc_common()
278 if (smb_mbc_peek(mbc, offset, "#c", tlen, tmp_hdr) != 0) in smb2_sign_calc_common()
282 if ((rc = ops->mac_update(ctx, tmp_hdr, tlen)) != 0) in smb2_sign_calc_common()
284 offset += tlen; in smb2_sign_calc_common()
285 resid -= tlen; in smb2_sign_calc_common()
307 tlen = mbuf->m_len - offset; in smb2_sign_calc_common()
308 if (tlen > resid) in smb2_sign_calc_common()
309 tlen = resid; in smb2_sign_calc_common()
311 rc = ops->mac_update(ctx, (uint8_t *)mbuf->m_data + offset, tlen); in smb2_sign_calc_common()
314 resid -= tlen; in smb2_sign_calc_common()
323 tlen = mbuf->m_len; in smb2_sign_calc_common()
324 if (tlen > resid) in smb2_sign_calc_common()
325 tlen = resid; in smb2_sign_calc_common()
326 rc = ops->mac_update(ctx, (uint8_t *)mbuf->m_data, tlen); in smb2_sign_calc_common()
329 resid -= tlen; in smb2_sign_calc_common()