Lines Matching refs:space
453 int data_len, i, space; in ccmp_encrypt() local
468 space = m->m_len - (hdrlen + ccmp.ic_header); in ccmp_encrypt()
470 if (space > data_len) in ccmp_encrypt()
471 space = data_len; in ccmp_encrypt()
475 while (space >= AES_BLOCK_LEN) { in ccmp_encrypt()
477 pos += AES_BLOCK_LEN, space -= AES_BLOCK_LEN; in ccmp_encrypt()
485 if (space != 0) { in ccmp_encrypt()
489 CCMP_ENCRYPT(i, b, b0, pos, e, space); in ccmp_encrypt()
493 if (space != 0) { in ccmp_encrypt()
510 sp = space; in ccmp_encrypt()
535 CCMP_ENCRYPT(i, b, b0, pos, e, space); in ccmp_encrypt()
539 sp = space; in ccmp_encrypt()
565 space = m->m_len - space_next; in ccmp_encrypt()
571 space = m->m_len; in ccmp_encrypt()
604 u_int space; in ccmp_decrypt() local
616 space = m->m_len - (hdrlen + ccmp.ic_header); in ccmp_decrypt()
618 if (space > data_len) in ccmp_decrypt()
619 space = data_len; in ccmp_decrypt()
620 while (space >= AES_BLOCK_LEN) { in ccmp_decrypt()
622 pos += AES_BLOCK_LEN, space -= AES_BLOCK_LEN; in ccmp_decrypt()
630 if (space != 0) /* short last block */ in ccmp_decrypt()
631 CCMP_DECRYPT(i, b, b0, pos, a, space); in ccmp_decrypt()
634 if (space != 0) { in ccmp_decrypt()
647 space_next = len > space ? len - space : 0; in ccmp_decrypt()
652 xor_block(b+space, pos_next, space_next); in ccmp_decrypt()
653 CCMP_DECRYPT(i, b, b0, pos, a, space); in ccmp_decrypt()
654 xor_block(pos_next, b+space, space_next); in ccmp_decrypt()
659 space = m->m_len - space_next; in ccmp_decrypt()
665 space = m->m_len; in ccmp_decrypt()