Changeset View
Changeset View
Standalone View
Standalone View
b/cipher/pubkey.c
| Context not available. | |||||
| init_encoding_ctx (&ctx, PUBKEY_OP_ENCRYPT, gcry_pk_get_nbits (s_pkey)); | init_encoding_ctx (&ctx, PUBKEY_OP_ENCRYPT, gcry_pk_get_nbits (s_pkey)); | ||||
| rc = sexp_data_to_mpi (s_data, &data, &ctx); | rc = sexp_data_to_mpi (s_data, &data, &ctx); | ||||
| if (rc) | if (rc) | ||||
| { | |||||
| mpi_free (data); | |||||
| data = NULL; | |||||
| goto leave; | goto leave; | ||||
| } | |||||
| /* Now we can encrypt DATA to CIPH. */ | /* Now we can encrypt DATA to CIPH. */ | ||||
| ciph = gcry_calloc (strlen (algo_elems) + 1, sizeof (*ciph)); | ciph = gcry_calloc (strlen (algo_elems) + 1, sizeof (*ciph)); | ||||
| if (!ciph) | if (!ciph) | ||||
| Context not available. | |||||
| if (!arg_list) | if (!arg_list) | ||||
| { | { | ||||
| rc = gpg_err_code_from_syserror (); | rc = gpg_err_code_from_syserror (); | ||||
| gcry_free (string) | |||||
| goto leave; | goto leave; | ||||
| } | } | ||||
| for (i = j = 0; i < elem_n; i++) | for (i = j = 0; i < elem_n; i++) | ||||
| Context not available. | |||||