Best way to import a public key from libgcrypt to gpgme?
Werner Koch
wk at gnupg.org
Tue Jan 31 13:17:10 CET 2017
On Tue, 31 Jan 2017 13:01, amzh at hushmail.com said:
> We 're using libgcrypt to generate a key pair, and to encrypt/decrypt
> data. However, we also need to upload our public keys to server, and
> because of that public key must be Ascii armored.
Libgcrypt does not implement any protocol; it provides building blocks
which other software can use to implement a protocol or data format.
> libgcrypt to gpgme? Should that involve gpgme_op_import (gpgme_ctx_t
> ctx, gpgme_data_t keydata) ?
gpgme supports the S/MIME and the OpenPGP protocol. Thus you need to
make keys compliant with these protocol specifications. Libgcrypt can't
do that - gpg or gpgsm are examples of software which can do that.
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: </pipermail/attachments/20170131/a17e859d/attachment-0001.sig>
More information about the Gnupg-devel
mailing list