Home
last modified time | relevance | path

Searched refs:ccm_remainder_len (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/contrib/openzfs/module/icp/algs/modes/
H A Dccm.c60 if (length + ctx->ccm_remainder_len < block_size) { in ccm_mode_encrypt_contiguous_blocks()
62 memcpy((uint8_t *)ctx->ccm_remainder + ctx->ccm_remainder_len, in ccm_mode_encrypt_contiguous_blocks()
65 ctx->ccm_remainder_len += length; in ccm_mode_encrypt_contiguous_blocks()
76 if (ctx->ccm_remainder_len > 0) { in ccm_mode_encrypt_contiguous_blocks()
77 need = block_size - ctx->ccm_remainder_len; in ccm_mode_encrypt_contiguous_blocks()
83 [ctx->ccm_remainder_len], datap, need); in ccm_mode_encrypt_contiguous_blocks()
145 if (ctx->ccm_remainder_len != 0) { in ccm_mode_encrypt_contiguous_blocks()
147 ctx->ccm_remainder_len = 0; in ccm_mode_encrypt_contiguous_blocks()
157 ctx->ccm_remainder_len = remainder; in ccm_mode_encrypt_contiguous_blocks()
205 if (out->cd_length < (ctx->ccm_remainder_len + ctx->ccm_mac_len)) { in ccm_encrypt_final()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/include/modes/
H A Dmodes.h126 #define ccm_remainder_len ccm_common.cc_remainder_len macro