Searched defs:key_id (Results 1 - 7 of 7) sorted by relevance

/dovecot/src/plugins/mail-crypt/
H A Dmail-crypt-global-key.h6 char *key_id, *key_id_old; member in struct:mail_crypt_global_private_key
H A Dtest-mail-global-key.c52 buffer_t *key_id = t_buffer_create(128); local
77 buffer_set_used_size(key_id, 0);
78 test_assert(dcrypt_key_id_public(keys.public_key, MAIL_CRYPT_KEY_ID_ALGORITHM, key_id, &error) == TRUE);
79 test_assert(strcmp(binary_to_hex(key_id->data, key_id->used), pubid1) == 0);
84 buffer_set_used_size(key_id, 0);
85 test_assert(dcrypt_key_id_private(key->key, MAIL_CRYPT_KEY_ID_ALGORITHM, key_id, &error) == TRUE);
86 test_assert(strcmp(binary_to_hex(key_id->data, key_id->used), pubid1) == 0);
89 buffer_set_used_size(key_id,
[all...]
H A Dmail-crypt-global-key.c48 buffer_t *key_id; local
54 key_id = t_buffer_create(MAIL_CRYPT_HASH_BUF_SIZE);
55 if (!dcrypt_key_id_private(key, MAIL_CRYPT_KEY_ID_ALGORITHM, key_id, &error)) {
59 *key_id_r = binary_to_hex(key_id->data, key_id->used);
61 buffer_set_used_size(key_id, 0);
67 if (!dcrypt_key_id_private_old(key, key_id, &error)) {
72 *key_id_old_r = binary_to_hex(key_id->data, key_id->used);
120 const char *key_id, *key_id_ol local
[all...]
H A Dtest-mail-key.c436 buffer_t *key_id = t_buffer_create(32); local
437 test_assert(dcrypt_key_id_private_old(privkey, key_id, &error));
438 test_assert(strcmp(binary_to_hex(key_id->data, key_id->used), mcp_old_box_key_id) == 0);
H A Ddoveadm-mail-crypt.c253 buffer_t *key_id = t_str_new(MAIL_CRYPT_HASH_BUF_SIZE); local
257 key_id, &error)) {
262 *pubid_r = p_strdup(ctx->ctx.pool, binary_to_hex(key_id->data,
263 key_id->used));
339 buffer_t *key_id = t_str_new(MAIL_CRYPT_HASH_BUF_SIZE); local
342 key_id, &error)) {
347 const char *hash = binary_to_hex(key_id->data,
348 key_id->used);
519 const char *key_id; local
522 while ((key_id
766 const char *key_id; local
[all...]
H A Dmail-crypt-key.c122 buffer_t *key_id = t_str_new(MAIL_CRYPT_HASH_BUF_SIZE); local
123 if (!dcrypt_key_id_private(key, MAIL_CRYPT_KEY_ID_ALGORITHM, key_id,
126 const char *hash = binary_to_hex(key_id->data, key_id->used);
129 buffer_set_used_size(key_id, 0);
130 if (!dcrypt_key_id_private_old(key, key_id, error_r)) {
133 hash = binary_to_hex(key_id->data, key_id->used);
147 buffer_t *key_id = t_str_new(MAIL_CRYPT_HASH_BUF_SIZE); local
148 if (!dcrypt_key_id_public(key, MAIL_CRYPT_KEY_ID_ALGORITHM, key_id,
975 buffer_t *key_id = t_str_new(MAIL_CRYPT_HASH_BUF_SIZE); local
1119 buffer_t *key_id = t_str_new(MAIL_CRYPT_HASH_BUF_SIZE); local
[all...]
/dovecot/src/lib-dcrypt/
H A Distream-decrypt.c131 const char *key_id = binary_to_hex(digest_pos, digest_len); local
132 int ret = stream->key_callback(key_id, &stream->priv_key, &error, stream->key_context);

Completed in 26 milliseconds