Lines Matching defs:buf
57 unsigned char buf[TLS_HEADER_SIZE + MAX_IV_SIZE];
77 scatterwalk_copychunks(buf, in, len, 0);
78 scatterwalk_copychunks(buf, out, len, 1);
87 len = buf[4] | (buf[3] << 8);
90 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot);
92 memcpy(iv + cipher_desc->salt, buf + TLS_HEADER_SIZE, cipher_desc->iv);
304 static void fill_sg_out(struct scatterlist sg_out[3], void *buf,
332 void *buf, *iv, *aad, *dummy_buf, *salt;
354 buf = kmalloc(buf_len, GFP_ATOMIC);
355 if (!buf)
358 iv = buf;
360 aad = buf + cipher_desc->salt + cipher_desc->iv;
369 fill_sg_out(sg_out, buf, tls_ctx, nskb, tcp_payload_offset,
385 kfree(buf);