Lines Matching refs:iv_size
102 const int iv_size = cipher_ctx_iv_length (ctx->cipher);
112 prng_bytes (iv_buf, iv_size);
131 memset (iv_buf, 0, iv_size);
132 buf_set_write (&b, iv_buf, iv_size);
145 dmsg (D_PACKET_CONTENT, "ENCRYPT IV: %s", format_hex (iv_buf, iv_size, 0, &gc));
174 ASSERT (outlen == iv_size);
179 uint8_t *output = buf_prepend (&work, iv_size);
181 memcpy (output, iv_buf, iv_size);
276 const int iv_size = cipher_ctx_iv_length (ctx->cipher);
287 if (buf->len < iv_size)
289 memcpy (iv_buf, BPTR (buf), iv_size);
290 ASSERT (buf_advance (buf, iv_size));
295 dmsg (D_PACKET_CONTENT, "DECRYPT IV: %s", format_hex (iv_buf, iv_size, 0, &gc));
339 buf_set_read (&b, iv_buf, iv_size);
481 dmsg (D_CRYPTO_DEBUG, "%s: CIPHER block_size=%d iv_size=%d",