Lines Matching refs:blockp
58 uint8_t *blockp; in cbc_encrypt_contiguous_blocks() local
91 blockp = (uint8_t *)ctx->cbc_remainder; in cbc_encrypt_contiguous_blocks()
93 blockp = datap; in cbc_encrypt_contiguous_blocks()
101 xor_block(lastp, blockp); in cbc_encrypt_contiguous_blocks()
102 encrypt(ctx->cbc_keysched, blockp, blockp); in cbc_encrypt_contiguous_blocks()
104 ctx->cbc_lastp = blockp; in cbc_encrypt_contiguous_blocks()
105 lastp = blockp; in cbc_encrypt_contiguous_blocks()
109 bcopy(blockp, ctx->cbc_copy_to, in cbc_encrypt_contiguous_blocks()
111 bcopy(blockp + ctx->cbc_remainder_len, datap, in cbc_encrypt_contiguous_blocks()
119 xor_block(blockp, lastp); in cbc_encrypt_contiguous_blocks()
195 uint8_t *blockp; in cbc_decrypt_contiguous_blocks() local
228 blockp = (uint8_t *)ctx->cbc_remainder; in cbc_decrypt_contiguous_blocks()
230 blockp = datap; in cbc_decrypt_contiguous_blocks()
234 copy_block(blockp, (uint8_t *)OTHER((uint64_t *)lastp, ctx)); in cbc_decrypt_contiguous_blocks()
237 decrypt(ctx->cbc_keysched, blockp, in cbc_decrypt_contiguous_blocks()
239 blockp = (uint8_t *)ctx->cbc_remainder; in cbc_decrypt_contiguous_blocks()
241 decrypt(ctx->cbc_keysched, blockp, blockp); in cbc_decrypt_contiguous_blocks()
248 xor_block(lastp, blockp); in cbc_decrypt_contiguous_blocks()
257 bcopy(blockp, out_data_1, out_data_1_len); in cbc_decrypt_contiguous_blocks()
259 bcopy(blockp + out_data_1_len, out_data_2, 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()