Searched defs:dctx (Results 1 - 6 of 6) sorted by relevance
/dovecot/src/plugins/var-expand-crypt/ |
H A D | var-expand-crypt-plugin.c | 105 var_expand_crypt(struct dcrypt_context_symmetric *dctx, buffer_t *key, buffer_t *iv, argument 110 dcrypt_ctx_sym_set_key_iv_random(dctx); 112 dcrypt_ctx_sym_get_iv(dctx, iv); 113 } else if (dcrypt_ctx_sym_get_iv_length(dctx) != iv->used) { 116 dcrypt_ctx_sym_get_iv_length(dctx)); 119 dcrypt_ctx_sym_set_iv(dctx, iv->data, iv->used); 122 if (dcrypt_ctx_sym_get_key_length(dctx) != key->used) { 125 dcrypt_ctx_sym_get_key_length(dctx)); 128 dcrypt_ctx_sym_set_key(dctx, key->data, key->used); 131 if (!dcrypt_ctx_sym_init(dctx, error_ 182 struct dcrypt_context_symmetric *dctx; local 291 struct dcrypt_context_symmetric *dctx; local [all...] |
/dovecot/src/plugins/expire/ |
H A D | expire-plugin.c | 161 struct dict_transaction_context *dctx; local 166 dctx = dict_transaction_begin(euser->db); 167 dict_set(dctx, key, dec2str(timestamp)); 168 if (dict_transaction_commit(&dctx, &error) < 0)
|
/dovecot/src/lib-dcrypt/ |
H A D | ostream-encrypt.c | 175 struct dcrypt_context_symmetric *dctx; local 176 if (!dcrypt_ctx_sym_create("aes-256-ctr", DCRYPT_MODE_ENCRYPT, &dctx, &error)) { 190 dcrypt_ctx_sym_set_iv(dctx, (const unsigned char*)"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16); 191 dcrypt_ctx_sym_set_key(dctx, hres, sizeof(hres)); 193 if (!dcrypt_ctx_sym_init(dctx, &error) || 194 !dcrypt_ctx_sym_update(dctx, seed, sizeof(seed), encrypted_key, &error) || 195 !dcrypt_ctx_sym_final(dctx, encrypted_key, &error)) { 198 dcrypt_ctx_sym_destroy(&dctx); 281 struct dcrypt_context_symmetric *dctx; local 282 if (!dcrypt_ctx_sym_create("AES-256-CBC", DCRYPT_MODE_ENCRYPT, &dctx, [all...] |
H A D | istream-decrypt.c | 179 struct dcrypt_context_symmetric *dctx; local 180 if (!dcrypt_ctx_sym_create("aes-256-ctr", DCRYPT_MODE_DECRYPT, &dctx, &error)) { 186 dcrypt_ctx_sym_set_iv(dctx, (const unsigned char*)"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0", 16); 187 dcrypt_ctx_sym_set_key(dctx, hres, hash->digest_size); 188 if (!dcrypt_ctx_sym_init(dctx, &error) || 189 !dcrypt_ctx_sym_update(dctx, key_ct_pos, key_ct_len, key, &error) || 190 !dcrypt_ctx_sym_final(dctx, key, &error)) { 194 dcrypt_ctx_sym_destroy(&dctx); 405 struct dcrypt_context_symmetric *dctx; local 406 if (!dcrypt_ctx_sym_create("AES-256-CBC", DCRYPT_MODE_DECRYPT, &dctx, [all...] |
H A D | dcrypt-openssl.c | 773 struct dcrypt_context_symmetric *dctx; local 776 if (!dcrypt_openssl_ctx_sym_create("aes-256-ctr", DCRYPT_MODE_DECRYPT, &dctx, error_r)) { 781 dcrypt_openssl_ctx_sym_set_iv(dctx, (const unsigned char*)"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0", 16); 782 dcrypt_openssl_ctx_sym_set_key(dctx, key->data, key->used); 784 if (!dcrypt_openssl_ctx_sym_init(dctx, error_r) || 785 !dcrypt_openssl_ctx_sym_update(dctx, data->data, data->used, tmp, error_r) || 786 !dcrypt_openssl_ctx_sym_final(dctx, tmp, error_r)) { 787 dcrypt_openssl_ctx_sym_destroy(&dctx); 791 dcrypt_openssl_ctx_sym_destroy(&dctx); 841 struct dcrypt_context_symmetric *dctx; local 985 struct dcrypt_context_symmetric *dctx; local [all...] |
/dovecot/src/lmtp/ |
H A D | lmtp-local.c | 477 struct mail_deliver_context dctx; local 567 i_zero(&dctx); 568 dctx.session = session; 569 dctx.pool = session->pool; 570 dctx.set = lda_set; 571 dctx.smtp_set = smtp_set; 572 dctx.session_id = rcpt->session_id; 573 dctx.src_mail = src_mail; 576 dctx.mail_from = trans->mail_from; 577 smtp_params_mail_copy(dctx [all...] |
Completed in 34 milliseconds