Lines Matching defs:iv
25 string_t *iv;
54 if (strcmp(k, "iv") == 0) {
55 str_truncate(ctx->iv, 0);
56 if (var_expand_with_funcs(ctx->iv, value, ctx->ctx->table,
61 const char *hexiv = t_strdup(str_c(ctx->iv));
63 str_truncate(ctx->iv, 0);
64 hex_to_binary(hexiv, ctx->iv);
105 var_expand_crypt(struct dcrypt_context_symmetric *dctx, buffer_t *key, buffer_t *iv,
109 if (iv->used == 0) {
112 dcrypt_ctx_sym_get_iv(dctx, iv);
113 } else if (dcrypt_ctx_sym_get_iv_length(dctx) != iv->used) {
115 iv->used,
119 dcrypt_ctx_sym_set_iv(dctx, iv->data, iv->used);
163 ctx.iv = t_str_new(64);
186 ret = var_expand_crypt(dctx, ctx.enckey, ctx.iv, field_value, tmp, error_r);
196 enciv = binary_to_hex(ctx.iv->data, ctx.iv->used);
201 base64_encode(ctx.iv->data, ctx.iv->used, dest);
243 ctx.iv = t_str_new(64);
264 if (ctx.iv->used == 0 && (p = strchr(encdata, '$')) != NULL) {
272 /* try to decode iv and encdata */
275 if (ctx.iv->used == 0)
276 hex_to_binary(enciv, ctx.iv);
280 if (ctx.iv->used == 0)
281 str_append_str(ctx.iv, t_base64_decode_str(enciv));
286 if (ctx.iv->used == 0) {
294 ret = var_expand_crypt(dctx, ctx.enckey, ctx.iv, field_value, tmp, error_r);