diff options
author | Werner Koch <[email protected]> | 2020-04-27 14:53:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-04-27 17:54:39 +0000 |
commit | 5da6925a334c68d736804d8f19a684a678409d99 (patch) | |
tree | c68a6f6c8ab61d687d32b4f2ce26f97e107ad02e /common/sexputil.c | |
parent | common: Add an easy to use DER builder. (diff) | |
download | gnupg-5da6925a334c68d736804d8f19a684a678409d99.tar.gz gnupg-5da6925a334c68d736804d8f19a684a678409d99.zip |
sm: Add support to export ECC private keys.
* sm/minip12.c [TEST]: Remove test code. Include util.h, tlv.h. and
openpgpdefs.h. Remove the class and tag constants and replace them by
those from tlv.h.
(builder_add_oid, builder_add_mpi): New.
(build_key_sequence): Rename to ...
(build_rsa_key_sequence): this.
(build_ecc_key_sequence): New.
(p12_build): Call RSA or ECC builder.
(p12_raw_build): Ditto.
* sm/export.c (gpgsm_p12_export): Use correct armor header for ECC.
(sexp_to_kparms): Support ECC.
* sm/t-minip12.c: New to replace the former TEST code in minip12.h.
--
GnuPG-bug-id: 4921
Diffstat (limited to 'common/sexputil.c')
0 files changed, 0 insertions, 0 deletions