Lines Matching refs:user_key
49 int test_mail_attribute_get(struct mailbox *box, bool user_key, bool shared,
56 attr_name = user_key ? USER_CRYPT_PREFIX ACTIVE_KEY_NAME :
61 user_key ? USER_CRYPT_PREFIX :
88 bool user_key, bool shared, const char *pubid,
95 attr_name = user_key ? USER_CRYPT_PREFIX ACTIVE_KEY_NAME :
100 user_key ? USER_CRYPT_PREFIX :
236 struct dcrypt_public_key *user_key;
242 if (mail_crypt_user_get_public_key(test_mail_user, &user_key,
253 if (mail_crypt_box_generate_keypair(box, &pair, user_key, &pubid,
262 dcrypt_key_unref_public(&user_key);
304 struct dcrypt_private_key *privkey = NULL, *user_key = NULL;
341 test_assert(dcrypt_key_load_private(&user_key, value, NULL, NULL,
345 test_assert(mail_crypt_private_key_id_match(user_key, test_user_key_id,
383 test_assert(dcrypt_key_load_private(&privkey, value, NULL, user_key,
390 dcrypt_key_unref_private(&user_key);