1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-25 15:27:03 +01:00
Werner Koch 2e39fed109
common: New function get_keyalgo_string.
* common/openpgp-oid.c (struct keyalgo_string_s): New.
(keyalgo_strings): New.
(keyalgo_strings_size, keyalgo_strings_used): New.
(openpgp_oid_or_name_to_curve): New.
(get_keyalgo_string): New.
--

This function is intended as a more general version of gpg's
pubkey_string function.  It has the advantage to avoid mallocs and
uses static table of algorithm strings instead.  There should be only
a few dozen of such strings (if at all) and thus all those allocations
we do internally in gpg's pubkey_string and the static buffers all
over the place are not too nice.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 3a1fa13eedb969b561bae18cd3d7c2fb0b63d6ab)
(cherry picked from commit 332a72f7340895e7db1e9c5f89046f722bb7465b)
2023-01-13 14:54:20 +01:00
..
2022-10-31 14:33:10 +01:00
2022-10-31 14:33:10 +01:00
2021-11-13 21:02:22 +01:00
2023-01-11 10:11:26 +01:00
2022-10-31 14:33:10 +01:00
2015-02-04 09:15:34 +01:00
2018-03-08 14:08:51 +09:00
2022-10-31 14:33:10 +01:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2022-11-15 17:24:04 +01:00
2022-11-15 17:24:04 +01:00
2017-03-07 20:25:54 +09:00
2022-10-31 14:33:10 +01:00
2022-05-05 14:02:02 +02:00
2022-10-31 14:33:10 +01:00
2017-03-07 20:25:54 +09:00
2017-01-23 19:16:55 +01:00
2020-10-28 18:10:01 +01:00
2017-02-21 13:11:46 -05:00
2017-03-07 20:32:09 +09:00
2017-03-07 20:25:54 +09:00
2017-04-28 10:06:33 +09:00
2016-03-08 14:08:49 +01:00
2016-12-06 12:16:56 +01:00