summaryrefslogtreecommitdiff
path: root/cipher/elgamal.c
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-03-26 10:56:50 +0000
committerMoritz Schulte <mo@g10code.com>2003-03-26 10:56:50 +0000
commitfa96757af62826f3293134c3731b23bf38dad48e (patch)
tree58fd645156d60aac584d20746914dc263c7d665d /cipher/elgamal.c
parent7b2cbee4af924336e9071f5f0890ce9553f377ec (diff)
downloadlibgcrypt-fa96757af62826f3293134c3731b23bf38dad48e.tar.gz
2003-03-26 Moritz Schulte <moritz@g10code.com>
* dynload.c (_gcry_enum_gnupgext_pubkeys): Adjust `encrypt' and `decrypt' function arguments. (_gcry_enum_gnupgext_pubkeys): Likewise. * dynload.h: Likewise. * pubkey.c (dummy_decrypt): Add argument: int flags. (dummy_encrypt): Likewise. * elgamal.c (_gcry_elg_encrypt): Add argument: int flags. (_gcry_elg_decrypt): Likewise. * rsa.c (_gcry_rsa_encrypt): Add argument: int flags. (_gcry_rsa_decrypt): Likewise. * pubkey.c: Add `flags' argument to members `encrypt' and `decrypt' of struct `pubkey_table_s'. * rsa.h: Add `flags' argument to function declarations. * elgamal.h: Likewise. * pubkey.c (sexp_data_to_mpi): New variable: int parsed_flags. (sexp_data_to_mpi): Set `parsed_flags'. (sexp_data_to_mpi): New argument: int *flags. (gcry_pk_encrypt): New variable: int flags. (gcry_pk_encrypt): Pass `flags' to pubkey_encrypt. (pubkey_encrypt): New variable: int flags. (pubkey_encrypt): Pass `flags' to pubkey encrypt function. (pubkey_decrypt): Likewise. (pubkey_decrypt): Pass `flags' to pubkey encrypt function. (gcry_pk_encrypt): Include `flags' s-exp in return list. (sexp_to_enc): New argument: int *flags. (gcry_pk_decrypt): New variable: int flags. (gcry_pk_decrypt): Pass `flags' to pubkey_decrypt. (sexp_to_enc): New variable: int parsed_flags. (sexp_to_enc): Set `parsed_flags'.
Diffstat (limited to 'cipher/elgamal.c')
-rw-r--r--cipher/elgamal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/elgamal.c b/cipher/elgamal.c
index ea3a8dd6..a4b54254 100644
--- a/cipher/elgamal.c
+++ b/cipher/elgamal.c
@@ -538,7 +538,7 @@ _gcry_elg_check_secret_key( int algo, MPI *skey )
int
-_gcry_elg_encrypt( int algo, MPI *resarr, MPI data, MPI *pkey )
+_gcry_elg_encrypt( int algo, MPI *resarr, MPI data, MPI *pkey, int flags)
{
ELG_public_key pk;
@@ -557,7 +557,7 @@ _gcry_elg_encrypt( int algo, MPI *resarr, MPI data, MPI *pkey )
}
int
-_gcry_elg_decrypt( int algo, MPI *result, MPI *data, MPI *skey )
+_gcry_elg_decrypt( int algo, MPI *result, MPI *data, MPI *skey, int flags)
{
ELG_secret_key sk;