Lines Matching defs:rc

613   gcry_err_code_t rc;
632 rc = pubkey->encrypt (algorithm, resarr, data, pkey, flags);
636 rc = GPG_ERR_PUBKEY_ALGO;
641 if (!rc && DBG_CIPHER && !fips_mode ())
646 return rc;
663 gcry_err_code_t rc;
681 rc = pubkey->decrypt (algorithm, result, data, skey, flags);
686 rc = GPG_ERR_PUBKEY_ALGO;
691 if (!rc && DBG_CIPHER && !fips_mode ())
694 return rc;
710 gcry_err_code_t rc;
726 rc = pubkey->sign (algorithm, resarr, data, skey);
731 rc = GPG_ERR_PUBKEY_ALGO;
736 if (!rc && DBG_CIPHER && !fips_mode ())
740 return rc;
754 gcry_err_code_t rc;
772 rc = pubkey->verify (algorithm, hash, data, pkey, cmp, opaquev);
777 rc = GPG_ERR_PUBKEY_ALGO;
781 return rc;
1314 gcry_err_code_t rc = 0;
1364 rc = GPG_ERR_INV_OBJ; /* none or both given */
1366 rc = GPG_ERR_INV_FLAG;
1368 rc = GPG_ERR_CONFLICT;
1373 rc = GPG_ERR_INV_OBJ;
1385 rc = GPG_ERR_INV_OBJ;
1389 rc = GPG_ERR_TOO_SHORT; /* the key is too short */
1392 rc = gpg_err_code_from_errno (errno);
1446 rc = GPG_ERR_INV_OBJ;
1448 rc = GPG_ERR_INV_OBJ;
1506 rc = GPG_ERR_DIGEST_ALGO;
1509 rc = GPG_ERR_INV_OBJ;
1513 rc = GPG_ERR_NOT_IMPLEMENTED;
1519 rc = GPG_ERR_CONFLICT;
1525 rc = GPG_ERR_TOO_SHORT;
1528 rc = gpg_err_code_from_errno (errno);
1553 rc = GPG_ERR_CONFLICT;
1559 if (!rc)
1562 return rc;
1594 gcry_err_code_t rc;
1603 rc = sexp_to_key (s_pkey, 0, &pkey, &module);
1604 if (rc)
1622 rc = sexp_data_to_mpi (s_data, gcry_pk_get_nbits (s_pkey), &data, 1,
1624 if (rc)
1631 rc = gpg_err_code_from_errno (errno);
1634 rc = pubkey_encrypt (module->mod_id, ciph, data, pkey, flags);
1637 if (rc)
1652 rc = gpg_err_code_from_errno (errno);
1672 rc = gpg_err_code_from_errno (errno);
1679 rc = gcry_sexp_build_array (r_ciph, NULL, string, arg_list);
1681 if (rc)
1706 return gcry_error (rc);
1738 gcry_err_code_t rc;
1746 rc = sexp_to_key (s_skey, 1, &skey, &module_key);
1747 if (rc)
1750 rc = sexp_to_enc (s_data, &data, &module_enc, &modern, &want_pkcs1, &flags);
1751 if (rc)
1756 rc = GPG_ERR_CONFLICT; /* Key algo does not match data algo. */
1762 rc = pubkey_decrypt (module_key->mod_id, &plain, data, skey, flags);
1763 if (rc)
1795 return gcry_error (rc);
1836 gcry_err_code_t rc;
1842 rc = sexp_to_key (s_skey, 1, &skey, &module);
1843 if (rc)
1856 rc = sexp_data_to_mpi (s_hash, gcry_pk_get_nbits (s_skey),
1858 if (rc)
1864 rc = gpg_err_code_from_errno (errno);
1867 rc = pubkey_sign (module->mod_id, result, hash, skey);
1868 if (rc)
1885 rc = gpg_err_code_from_errno (errno);
1901 rc = gpg_err_code_from_errno (errno);
1908 rc = gcry_sexp_build_array (r_sig, NULL, string, arg_list);
1910 if (rc)
1931 return gcry_error (rc);
1947 gcry_err_code_t rc;
1951 rc = sexp_to_key (s_pkey, 0, &pkey, &module_key);
1952 if (rc)
1955 rc = sexp_to_sig (s_sig, &sig, &module_sig);
1956 if (rc)
1964 rc = GPG_ERR_CONFLICT;
1968 rc = sexp_data_to_mpi (s_hash, gcry_pk_get_nbits (s_pkey), &hash, 0, 0);
1969 if (rc)
1972 rc = pubkey_verify (module_key->mod_id, hash, sig, pkey, NULL, NULL);
1998 return gcry_error (rc);
2016 gcry_err_code_t rc;
2021 rc = sexp_to_key (s_key, 1, &key, &module);
2022 if (! rc)
2024 rc = pubkey_check_secret_key (module->mod_id, key);
2028 return gcry_error (rc);
2075 gcry_err_code_t rc = GPG_ERR_NO_ERROR;
2094 rc = GPG_ERR_INV_OBJ; /* Does not contain genkey data. */
2104 rc = GPG_ERR_NO_OBJ; /* No cdr for the genkey. */
2111 rc = GPG_ERR_INV_OBJ; /* Algo string missing. */
2122 rc = GPG_ERR_PUBKEY_ALGO; /* Unknown algorithm. */
2148 rc = GPG_ERR_INV_OBJ; /* No value or value too large. */
2171 rc = GPG_ERR_INV_OBJ; /* NBITS given without a cdr. */
2183 rc = pubkey_generate (module->mod_id, nbits, use_e, list, skey,
2186 if (rc)
2215 rc = gpg_err_code_from_errno (errno);
2272 rc = gpg_err_code_from_errno (errno);
2285 rc = gcry_sexp_build_array (r_key, NULL, string, arg_list);
2287 if (rc)
2319 return gcry_error (rc);
2335 gcry_err_code_t rc;
2339 rc = sexp_to_key (key, 0, &keyarr, &module);
2340 if (rc == GPG_ERR_INV_OBJ)
2341 rc = sexp_to_key (key, 1, &keyarr, &module);
2342 if (rc)