Lines Matching refs:data

34                                        gcry_mpi_t *data, gcry_mpi_t *skey,
39 gcry_mpi_t *data, gcry_mpi_t *pkey,
132 dummy_encrypt (int algorithm, gcry_mpi_t *resarr, gcry_mpi_t data,
137 (void)data;
145 dummy_decrypt (int algorithm, gcry_mpi_t *result, gcry_mpi_t *data,
150 (void)data;
158 dummy_sign (int algorithm, gcry_mpi_t *resarr, gcry_mpi_t data,
163 (void)data;
170 dummy_verify (int algorithm, gcry_mpi_t hash, gcry_mpi_t *data,
176 (void)data;
229 gcry_pk_lookup_func_name (void *spec, void *data)
232 char *name = (char *) data;
608 pubkey_encrypt (int algorithm, gcry_mpi_t *resarr, gcry_mpi_t data,
624 log_mpidump (" data:", data);
632 rc = pubkey->encrypt (algorithm, resarr, data, pkey, flags);
658 pubkey_decrypt (int algorithm, gcry_mpi_t *result, gcry_mpi_t *data,
673 log_mpidump (" data:", data[i]);
681 rc = pubkey->decrypt (algorithm, result, data, skey, flags);
700 * Sign data with skey and put the result into resarr which
705 pubkey_sign (int algorithm, gcry_mpi_t *resarr, gcry_mpi_t data,
718 log_mpidump(" data:", data );
726 rc = pubkey->sign (algorithm, resarr, data, skey);
748 pubkey_verify (int algorithm, gcry_mpi_t hash, gcry_mpi_t *data,
763 log_mpidump (" sig:", data[i]);
772 rc = pubkey->verify (algorithm, hash, data, pkey, cmp, opaquev);
1187 err = GPG_ERR_NO_OBJ; /* No cdr for the data object. */
1210 ; /* Not a data element - ignore. */
1224 /* Get the next which has the actual data. */
1229 err = GPG_ERR_NO_OBJ; /* No cdr for the data object. */
1298 (data
1326 ldata = gcry_sexp_find_token (input, "data", 0);
1342 ; /* not a data element*/
1569 Caller has to provide a public key as the SEXP pkey and data as a
1591 gcry_mpi_t *pkey = NULL, data = NULL, *ciph = NULL;
1622 rc = sexp_data_to_mpi (s_data, gcry_pk_get_nbits (s_pkey), &data, 1,
1634 rc = pubkey_encrypt (module->mod_id, ciph, data, pkey, flags);
1635 mpi_free (data);
1636 data = NULL;
1712 Caller has to provide a secret key as the SEXP skey and data in a
1736 gcry_mpi_t *skey = NULL, *data = NULL, plain = NULL;
1750 rc = sexp_to_enc (s_data, &data, &module_enc, &modern, &want_pkcs1, &flags);
1756 rc = GPG_ERR_CONFLICT; /* Key algo does not match data algo. */
1762 rc = pubkey_decrypt (module_key->mod_id, &plain, data, skey, flags);
1779 if (data)
1781 release_mpi_array (data);
1782 gcry_free (data);
1803 Caller has to provide a secret key as the SEXP skey and data
1939 hashvalue data. Public key has to be a standard public key given
1940 as an S-Exp, sig is a S-Exp as returned from gcry_pk_sign and data
2045 (key-data
2094 rc = GPG_ERR_INV_OBJ; /* Does not contain genkey data. */
2218 p = stpcpy (p, "(key-data");
2429 const char *data;
2436 data = gcry_sexp_nth_data (l2, 1, &datalen);
2437 if (! data)
2442 gcry_md_write (md, data, datalen);