Lines Matching defs:priv
388 struct dcrypt_private_key *priv,*priv2;
395 test_assert_idx(dcrypt_key_load_private(&priv, keys[1], NULL, NULL, &error), 1);
396 test_assert_idx(dcrypt_key_store_private(priv, DCRYPT_FORMAT_DOVECOT, NULL, tmp, NULL, NULL, &error), 1);
399 dcrypt_key_unref_private(&priv);
401 test_assert_idx(dcrypt_key_load_private(&priv, keys[2], "This Is Sparta", NULL, &error), 2);
402 test_assert_idx(dcrypt_key_store_private(priv, DCRYPT_FORMAT_DOVECOT, "aes-256-ctr", tmp, "This Is Sparta", NULL, &error), 2);
404 dcrypt_key_unref_private(&priv);
408 test_assert_idx(dcrypt_key_load_private(&priv, keys[3], NULL, priv2, &error), 3);
409 test_assert_idx(dcrypt_key_store_private(priv, DCRYPT_FORMAT_DOVECOT, "ecdh-aes-256-ctr", tmp, NULL, pub, &error), 3);
412 dcrypt_key_unref_private(&priv);
513 ret = dcrypt_key_store_private(pair.priv, DCRYPT_FORMAT_PEM, NULL,
610 ret = dcrypt_key_store_private(p1.priv, DCRYPT_FORMAT_DOVECOT, "ecdh-aes-256-ctr", buf, NULL, p2.pub, &error);
647 ret = dcrypt_key_store_private(p1.priv, DCRYPT_FORMAT_DOVECOT, "aes-256-ctr", buf, "pw", NULL, &error);
684 ret = dcrypt_key_store_private(orig.priv, DCRYPT_FORMAT_DOVECOT, "aes-256-ctr", buf, pw1, NULL, &error);
700 ret = dcrypt_key_store_private(k2.priv, DCRYPT_FORMAT_DOVECOT, "ecdh-aes-256-ctr", buf2, NULL, k1_pub, &error);