Lines Matching refs:cbc_remainder_len

66 	if (length + ctx->cbc_remainder_len < ctx->max_remain) {  in cbc_encrypt_contiguous_blocks()
69 (uint8_t *)ctx->cbc_remainder + ctx->cbc_remainder_len, in cbc_encrypt_contiguous_blocks()
71 ctx->cbc_remainder_len += length; in cbc_encrypt_contiguous_blocks()
82 if (ctx->cbc_remainder_len > 0) { in cbc_encrypt_contiguous_blocks()
83 need = block_size - ctx->cbc_remainder_len; in cbc_encrypt_contiguous_blocks()
89 [ctx->cbc_remainder_len], need); in cbc_encrypt_contiguous_blocks()
108 ctx->cbc_remainder_len > 0) { in cbc_encrypt_contiguous_blocks()
110 ctx->cbc_remainder_len); in cbc_encrypt_contiguous_blocks()
111 bcopy(blockp + ctx->cbc_remainder_len, datap, in cbc_encrypt_contiguous_blocks()
149 if (ctx->cbc_remainder_len != 0) { in cbc_encrypt_contiguous_blocks()
151 ctx->cbc_remainder_len = 0; in cbc_encrypt_contiguous_blocks()
161 ctx->cbc_remainder_len = remainder; in cbc_encrypt_contiguous_blocks()
203 if (length + ctx->cbc_remainder_len < block_size) { in cbc_decrypt_contiguous_blocks()
206 (uint8_t *)ctx->cbc_remainder + ctx->cbc_remainder_len, in cbc_decrypt_contiguous_blocks()
208 ctx->cbc_remainder_len += length; in cbc_decrypt_contiguous_blocks()
219 if (ctx->cbc_remainder_len > 0) { in cbc_decrypt_contiguous_blocks()
220 need = block_size - ctx->cbc_remainder_len; in cbc_decrypt_contiguous_blocks()
226 [ctx->cbc_remainder_len], need); in cbc_decrypt_contiguous_blocks()
266 } else if (ctx->cbc_remainder_len > 0) { in cbc_decrypt_contiguous_blocks()
268 bcopy(blockp, ctx->cbc_copy_to, ctx->cbc_remainder_len); in cbc_decrypt_contiguous_blocks()
269 bcopy(blockp + ctx->cbc_remainder_len, datap, need); in cbc_decrypt_contiguous_blocks()
273 if (ctx->cbc_remainder_len != 0) { in cbc_decrypt_contiguous_blocks()
275 ctx->cbc_remainder_len = 0; in cbc_decrypt_contiguous_blocks()
285 ctx->cbc_remainder_len = remainder; in cbc_decrypt_contiguous_blocks()
423 size_t length = cbc_ctx->cbc_remainder_len; in cmac_mode_final()