/dovecot/src/plugins/var-expand-crypt/ |
H A D | var-expand-crypt-plugin.c | 25 string_t *iv; member in struct:var_expand_crypt_context 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, argument 109 if (iv->used == 0) { 112 dcrypt_ctx_sym_get_iv(dctx, iv); [all...] |
/dovecot/src/lib-dcrypt/ |
H A D | test-crypto.c | 25 const char *iv; member in struct:__anon81 37 buffer_t *key,*iv,*pt,*ct,*res_enc,*res_dec; local 40 iv = t_buffer_create(16); 51 buffer_set_used_size(iv, 0); 58 hex_to_binary(vectors[i].iv, iv); 70 dcrypt_ctx_sym_set_iv(ctx, iv->data, iv->used); 89 dcrypt_ctx_sym_set_iv(ctx, iv->data, iv 116 buffer_t *key, *iv, *aad, *pt, *ct, *tag, *tag_res, *res; local [all...] |
H A D | dcrypt-gnutls.c | 27 gnutls_datum_t iv; member in struct:dcrypt_context_symmetric 94 void dcrypt_gnutls_ctx_sym_set_iv(struct dcrypt_context_symmetric *ctx, const unsigned char *iv, size_t iv_len) argument 96 if(ctx->iv.data != NULL) p_free(ctx->pool, ctx->iv.data); 97 ctx->iv.size = I_MIN(iv_len,(size_t)gnutls_cipher_get_iv_size(ctx->cipher)); 98 ctx->iv.data = p_malloc(ctx->pool, ctx->iv.size); 99 memcpy(ctx->iv.data, iv, ctx->iv 123 dcrypt_gnutls_ctx_sym_get_iv(struct dcrypt_context_symmetric *ctx, buffer_t *iv) argument [all...] |
H A D | istream-decrypt.c | 36 unsigned char *iv; /* original iv, in case seeking is done, future feature */ member in struct:decrypt_istream 534 stream->iv = i_malloc(dcrypt_ctx_sym_get_iv_length(stream->ctx_sym)); 535 memcpy(stream->iv, ptr, dcrypt_ctx_sym_get_iv_length(stream->ctx_sym)); 840 if (dstream->iv != NULL) 841 i_free_and_null(dstream->iv);
|
H A D | dcrypt.c | 79 void dcrypt_ctx_sym_set_iv(struct dcrypt_context_symmetric *ctx, const unsigned char *iv, size_t iv_len) argument 82 dcrypt_vfs->ctx_sym_set_iv(ctx, iv, iv_len); 95 bool dcrypt_ctx_sym_get_iv(struct dcrypt_context_symmetric *ctx, buffer_t *iv) argument 98 return dcrypt_vfs->ctx_sym_get_iv(ctx, iv);
|
H A D | dcrypt-openssl.c | 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; member in struct:dcrypt_context_symmetric 228 void dcrypt_openssl_ctx_sym_set_iv(struct dcrypt_context_symmetric *ctx, const unsigned char *iv, size_t iv_len) argument 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 ! 260 dcrypt_openssl_ctx_sym_get_iv(struct dcrypt_context_symmetric *ctx, buffer_t *iv) argument [all...] |