Lines Matching defs:mbuf
27 * The routines calculate the signature of a SMB message in an mbuf chain.
164 struct mbuf *mbuf;
194 * Advance to the src mbuf where we start digesting.
196 mbuf = mbc->chain;
197 while (mbuf != NULL && (offset >= mbuf->m_len)) {
198 offset -= mbuf->m_len;
199 mbuf = mbuf->m_next;
202 if (mbuf == NULL)
206 * Digest the remainder of this mbuf, limited to the
210 tlen = mbuf->m_len - offset;
213 rc = smb2_hmac_update(ctx, (uint8_t *)mbuf->m_data + offset, tlen);
222 mbuf = mbuf->m_next;
223 if (mbuf == NULL)
225 tlen = mbuf->m_len;
228 rc = smb2_hmac_update(ctx, (uint8_t *)mbuf->m_data, tlen);
247 * Calculates MAC signature for the request mbuf chain
294 * Calculates MAC signature for the given mbuf chain,
295 * and write it to the signature field in the mbuf.