Searched defs:priv_key (Results 1 - 8 of 8) sorted by relevance

/dovecot/src/plugins/mail-crypt/
H A Dmail-crypt-global-key.c126 struct mail_crypt_global_private_key *priv_key = local
128 priv_key->key = key;
129 priv_key->key_id = i_strdup(key_id);
130 priv_key->key_id_old = i_strdup(key_id_old);
142 struct mail_crypt_global_private_key *priv_key; local
149 array_foreach_modifiable(&global_keys->private_keys, priv_key) {
150 dcrypt_key_unref_private(&priv_key->key);
151 i_free(priv_key->key_id);
152 i_free(priv_key->key_id_old);
161 const struct mail_crypt_global_private_key *priv_key; local
[all...]
H A Dmail-crypt-key.c1118 struct dcrypt_private_key *const *priv_keyp, *priv_key; local
1123 priv_key = *priv_keyp;
1125 if (!dcrypt_key_id_private(priv_key, MAIL_CRYPT_KEY_ID_ALGORITHM,
1130 priv_key, dest_user,
/dovecot/src/doveadm/
H A Ddoveadm-dump-dcrypt-key.c61 struct dcrypt_private_key *priv_key; local
63 bool ret = dcrypt_key_load_private(&priv_key, buf, NULL, NULL,
69 enum dcrypt_key_type key_type = dcrypt_key_type_private(priv_key);
76 if (!dcrypt_key_id_private(priv_key, "sha256", hash, &error)) {
84 if (!dcrypt_key_id_private_old(priv_key, hash, &error)) {
93 dcrypt_key_unref_private(&priv_key);
/dovecot/src/lib-dcrypt/
H A Dtest-crypto.c745 struct dcrypt_private_key *priv_key = NULL; local
747 ret = dcrypt_key_load_private(&priv_key, key, NULL, NULL, &error);
H A Ddcrypt-gnutls.c48 int dcrypt_gnutls_private_to_public_key(struct dcrypt_private_key *priv_key, struct dcrypt_public_key **pub_key_r, const char **error_r);
353 int dcrypt_gnutls_private_to_public_key(struct dcrypt_private_key *priv_key, struct dcrypt_public_key **pub_key_r, const char **error_r) argument
357 gnutls_privkey_t priv = (gnutls_privkey_t)priv_key;
H A Distream-decrypt.c28 struct dcrypt_private_key *priv_key; member in struct:decrypt_istream
128 if (stream->priv_key == NULL) {
132 int ret = stream->key_callback(key_id, &stream->priv_key, &error, stream->key_context);
141 dcrypt_key_ref_private(stream->priv_key);
150 if (!dcrypt_key_id_private_old(stream->priv_key, check, &error)) {
161 if (!dcrypt_ecdh_derive_secret_local(stream->priv_key, &ephemeral_key, secret, &error)) {
293 if (stream->priv_key == NULL) {
298 if (!dcrypt_key_id_private(stream->priv_key, "sha256", &buf,
316 int ret = stream->key_callback(hexdgst, &stream->priv_key, &error, stream->key_context);
322 dcrypt_key_ref_private(stream->priv_key);
875 i_stream_create_decrypt(struct istream *input, struct dcrypt_private_key *priv_key) argument
[all...]
H A Ddcrypt.c261 void dcrypt_key_convert_private_to_public(struct dcrypt_private_key *priv_key, struct dcrypt_public_key **pub_key_r) argument
264 dcrypt_vfs->private_to_public_key(priv_key, pub_key_r);
H A Ddcrypt-openssl.c142 void dcrypt_openssl_private_to_public_key(struct dcrypt_private_key *priv_key, struct dcrypt_public_key **pub_key_r);
1789 void dcrypt_openssl_private_to_public_key(struct dcrypt_private_key *priv_key, struct dcrypt_public_key **pub_key_r) argument
1791 i_assert(priv_key != NULL && pub_key_r != NULL);
1793 EVP_PKEY *pkey = priv_key->key;

Completed in 253 milliseconds