Lines Matching defs:iv
65 - enctype ecdh, key,iv = PBKDF2(hash algo, rounds, shared secret, salt)
68 - enctype password, key,iv = PBKDF2(hash algo, rounds, password, salt)
102 unsigned char *iv;
228 void dcrypt_openssl_ctx_sym_set_iv(struct dcrypt_context_symmetric *ctx, const unsigned char *iv, size_t iv_len)
230 if(ctx->iv != NULL) p_free(ctx->pool, ctx->iv);
231 ctx->iv = p_malloc(ctx->pool, EVP_CIPHER_iv_length(ctx->cipher));
232 memcpy(ctx->iv, iv, I_MIN(iv_len,(size_t)EVP_CIPHER_iv_length(ctx->cipher)));
239 if(ctx->iv != NULL) p_free(ctx->pool, ctx->iv);
242 ctx->iv = p_malloc(ctx->pool, EVP_CIPHER_iv_length(ctx->cipher));
243 random_fill(ctx->iv, EVP_CIPHER_iv_length(ctx->cipher));
260 bool dcrypt_openssl_ctx_sym_get_iv(struct dcrypt_context_symmetric *ctx, buffer_t *iv)
262 if(ctx->iv == NULL) return FALSE;
263 buffer_append(iv, ctx->iv, EVP_CIPHER_iv_length(ctx->cipher));
325 i_assert(ctx->iv != NULL);
331 ec = EVP_CipherInit_ex(ctx->ctx, ctx->cipher, NULL, ctx->key, ctx->iv, ctx->mode);
992 /* generate encryption key/iv based on secret/salt */
1109 /* get us secret value to use for key/iv generation */