pubkey: Move sexp parsing for gcry_pk_decrypt to the modules.
[libgcrypt.git] / src / cipher-proto.h
index c570e5f..0dc83bd 100644 (file)
@@ -63,15 +63,9 @@ typedef gcry_err_code_t (*gcry_pk_encrypt_t) (gcry_sexp_t *r_ciph,
                                               gcry_sexp_t keyparms);
 
 /* Type for the pk_decrypt function.  */
-typedef gcry_err_code_t (*gcry_pk_decrypt_t) (int algo,
-                                             gcry_sexp_t *r_result,
-                                             gcry_mpi_t *data,
-                                             gcry_mpi_t *skey,
-                                             int flags,
-                                              enum pk_encoding encoding,
-                                              int hash_algo,
-                                              unsigned char *label,
-                                              size_t labellen);
+typedef gcry_err_code_t (*gcry_pk_decrypt_t) (gcry_sexp_t *r_plain,
+                                              gcry_sexp_t s_data,
+                                              gcry_sexp_t keyparms);
 
 /* Type for the pk_sign function.  */
 typedef gcry_err_code_t (*gcry_pk_sign_t) (gcry_sexp_t *r_sig,