Lines Matching refs:space
455 int data_len, i, space;
470 space = m->m_len - (hdrlen + ccmp.ic_header);
472 if (space > data_len)
473 space = data_len;
477 while (space >= AES_BLOCK_LEN) {
479 pos += AES_BLOCK_LEN, space -= AES_BLOCK_LEN;
487 if (space != 0) {
491 CCMP_ENCRYPT(i, b, b0, pos, e, space);
495 if (space != 0) {
505 * The buffer will automatically get space bytes
512 sp = space;
537 CCMP_ENCRYPT(i, b, b0, pos, e, space);
541 sp = space;
562 * pos+space to reflect contents of the new mbuf.
567 space = m->m_len - space_next;
573 space = m->m_len;
606 u_int space;
618 space = m->m_len - (hdrlen + ccmp.ic_header);
620 if (space > data_len)
621 space = data_len;
622 while (space >= AES_BLOCK_LEN) {
624 pos += AES_BLOCK_LEN, space -= AES_BLOCK_LEN;
632 if (space != 0) /* short last block */
633 CCMP_DECRYPT(i, b, b0, pos, a, space);
636 if (space != 0) {
649 space_next = len > space ? len - space : 0;
654 xor_block(b+space, pos_next, space_next);
655 CCMP_DECRYPT(i, b, b0, pos, a, space);
656 xor_block(pos_next, b+space, space_next);
661 space = m->m_len - space_next;
667 space = m->m_len;