From 722bfc1e5f2268453db62f38cc46b5ec6ef3adee Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sat, 7 Sep 2013 10:06:46 +0200 Subject: pk: Move s-exp creation for gcry_pk_decrypt to the modules. * cipher/pubkey.c (sexp_to_enc): Remove RET_MODERN arg and merge it into FLAGS. (gcry_pk_decrypt): Move result s-exp building into the modules. * src/cipher-proto.h (gcry_pk_decrypt_t): Add some args. * cipher/ecc.c (ecc_decrypt_raw): Change to return an s-exp. * cipher/elgamal.c (elg_decrypt): Ditto. * cipher/rsa.c (rsa_decrypt): Ditto. (rsa_blind, rsa_unblind): Merge into rsa_decrypt. This saves several extra MPI allocations. -- The extra args added to gcry_pk_decrypt_t are a temporary solution unti we move the input s-exp parsing also into the modules. Signed-off-by: Werner Koch --- src/cipher.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cipher.h') diff --git a/src/cipher.h b/src/cipher.h index 9fe30a66..e3a2fe0c 100644 --- a/src/cipher.h +++ b/src/cipher.h @@ -30,6 +30,7 @@ #define PUBKEY_FLAG_RFC6979 (1 << 1) #define PUBKEY_FLAG_EDDSA (1 << 2) #define PUBKEY_FLAG_FIXEDLEN (1 << 3) +#define PUBKEY_FLAG_LEGACYRESULT (1 << 4) enum pk_operation { -- cgit v1.2.1