/dovecot/src/plugins/mail-crypt/ |
H A D | mail-crypt-userenv.c | 21 const char *key_data; local 22 while ((key_data = mail_user_plugin_getenv(user, str_c(set_key))) != NULL) { 25 if (mail_crypt_load_global_private_key(str_c(set_key), key_data, 52 const char *key_data = mail_user_plugin_getenv(user, set_key); local 55 if (key_data != NULL) { 57 key_data,
|
H A D | test-mail-global-key.c | 63 const char *key_data = mail_crypt_plugin_getenv(&fs_set, set_key); local 65 test_assert(key_data != NULL); 67 if (key_data != NULL) { 68 test_assert(mail_crypt_load_global_public_key(set_key, key_data,
|
H A D | mail-crypt-global-key.c | 13 int mail_crypt_load_global_public_key(const char *set_key, const char *key_data, argument 20 if (!dcrypt_key_string_get_info(key_data, &format, NULL, 22 key_data = str_c(t_base64_decode_str(key_data)); 23 if (!dcrypt_key_string_get_info(key_data, &format, NULL, 34 if (!dcrypt_key_load_public(&global_keys->public_key, key_data, &error)) { 76 int mail_crypt_load_global_private_key(const char *set_key, const char *key_data, argument 86 if (!dcrypt_key_string_get_info(key_data, &format, NULL, &kind, 88 key_data = str_c(t_base64_decode_str(key_data)); [all...] |
H A D | mail-crypt-pluginenv.c | 67 const char *key_data; local 68 while ((key_data = mail_crypt_plugin_getenv(set, str_c(set_key))) != NULL) { 71 if (mail_crypt_load_global_private_key(str_c(set_key), key_data, 88 const char *key_data = mail_crypt_plugin_getenv(set, set_key); local 92 if (key_data != NULL) { 93 if (mail_crypt_load_global_public_key(set_key, key_data,
|
H A D | fs-crypt-common.c | 214 char *key_data; local 220 &key_data, error_r) < 0) 223 key_data, &fs->keys, 225 i_free(key_data); 228 i_free(key_data); 233 &key_data, error_r) < 0) 236 key_data, "crypt:password", 239 i_free(key_data); 242 i_free(key_data);
|
/dovecot/src/lib-dcrypt/ |
H A D | ostream-encrypt.c | 41 unsigned char *key_data; member in struct:encrypt_ostream 91 buffer_append(values, stream->key_data, stream->key_data_len); 92 i_free_and_null(stream->key_data); 126 buffer_append(values, stream->key_data, stream->key_data_len); 127 i_free_and_null(stream->key_data); 237 stream->key_data = buffer_free_without_data(&res); 396 stream->key_data = buffer_free_without_data(&res); 573 if (estream->key_data != NULL) i_free(estream->key_data);
|
H A D | dcrypt.c | 266 bool dcrypt_key_string_get_info(const char *key_data, enum dcrypt_key_format *format_r, enum dcrypt_key_version *version_r, argument 271 return dcrypt_vfs->key_string_get_info(key_data, format_r, version_r, kind_r, encryption_type_r,
|
H A D | dcrypt-openssl.c | 150 bool dcrypt_openssl_key_string_get_info(const char *key_data, enum dcrypt_key_format *format_r, enum dcrypt_key_version *version_r, 993 buffer_t *key_data = t_buffer_create(128); local 995 digalgo, rounds, key_data, 1004 const unsigned char *kd = buffer_free_without_data(&key_data); 1032 buffer_t *key_data = t_buffer_create(256); local 1064 if (hex_to_binary(input[3], key_data) != 0) { 1120 input[5], rounds, key_data, error_r)) { 1147 input[5], rounds, key_data, error_r)) { 1155 const unsigned char *ptr = buffer_get_data(key_data, NULL); 1157 d2i_RSAPrivateKey(&rsa, &ptr, key_data 1820 dcrypt_openssl_key_string_get_info(const char *key_data, enum dcrypt_key_format *format_r, enum dcrypt_key_version *version_r, enum dcrypt_key_kind *kind_r, enum dcrypt_key_encryption_type *encryption_type_r, const char **encryption_key_hash_r, const char **key_hash_r, const char **error_r) argument [all...] |