mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
common: Add OpenPGP<->Gcrypt pubkey id mapping functions.
* g10/misc.c (map_pk_gcry_to_openpgp): Move to ... * common/openpgp-oid.c (map_gcry_pk_to_openpgp): here and rename. Change all 4 callers. (map_openpgp_pk_to_gcry): New. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
9df9996b41
commit
49c891a9bf
5 changed files with 41 additions and 21 deletions
|
@ -209,8 +209,14 @@ compress_algo_t;
|
|||
#define S2K_DECODE_COUNT(_val) ((16ul + ((_val) & 15)) << (((_val) >> 4) + 6))
|
||||
|
||||
|
||||
/*--openpgp-s2k.c --*/
|
||||
/*-- openpgp-s2k.c --*/
|
||||
unsigned char encode_s2k_iterations (int iterations);
|
||||
|
||||
|
||||
/*-- openpgp-oid.c --*/
|
||||
pubkey_algo_t map_gcry_pk_to_openpgp (enum gcry_pk_algos algo);
|
||||
enum gcry_pk_algos map_openpgp_pk_to_gcry (pubkey_algo_t algo);
|
||||
|
||||
|
||||
|
||||
#endif /*GNUPG_COMMON_OPENPGPDEFS_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue