mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Unify AEAD parameter retrieval.
* g10/pkclist.c (select_aead_from_pklist): Return the AEAD_algo. * g10/encrypt.c (use_aead): Return the AEAD algo. (encrypt_simple): Adjust for this change. (encrypt_crypt): Ditto. (encrypt_filter): Ditto. * g10/sign.c (sign_symencrypt_file): Ditto. * g10/misc.c (MY_GCRY_CIPHER_MODE_EAX): New. (openpgp_aead_algo_info): New. * g10/cipher-aead.c (MY_GCRY_CIPHER_MODE_EAX): Remove. (write_header): Use new fucntion. * g10/decrypt-data.c (MY_GCRY_CIPHER_MODE_EAX): Remove. (decrypt_data): Use new function. Also allow for chunkbytes other than 10. -- Note that other chunk bytes than 10 and in particular 0 (64 byte chunks) have not yet been tested. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
0131d4369a
commit
da3015e3c0
8 changed files with 63 additions and 66 deletions
|
@ -127,6 +127,9 @@ const char *openpgp_cipher_algo_name (cipher_algo_t algo);
|
|||
|
||||
gpg_error_t openpgp_aead_test_algo (aead_algo_t algo);
|
||||
const char *openpgp_aead_algo_name (aead_algo_t algo);
|
||||
gpg_error_t openpgp_aead_algo_info (aead_algo_t algo,
|
||||
enum gcry_cipher_modes *r_mode,
|
||||
unsigned int *r_noncelen);
|
||||
|
||||
pubkey_algo_t map_pk_gcry_to_openpgp (enum gcry_pk_algos algo);
|
||||
int openpgp_pk_test_algo (pubkey_algo_t algo);
|
||||
|
@ -234,7 +237,7 @@ void display_online_help( const char *keyword );
|
|||
int setup_symkey (STRING2KEY **symkey_s2k,DEK **symkey_dek);
|
||||
gpg_error_t encrypt_seskey (DEK *dek, DEK **r_seskey,
|
||||
void **r_enckey, size_t *r_enckeylen);
|
||||
int use_aead (pk_list_t pk_list, int algo);
|
||||
aead_algo_t use_aead (pk_list_t pk_list, int algo);
|
||||
int use_mdc (pk_list_t pk_list,int algo);
|
||||
int encrypt_symmetric (const char *filename );
|
||||
int encrypt_store (const char *filename );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue