gpgme - raw RSA operation using GPG public/private keys?

Werner Koch wk at gnupg.org
Wed Jul 26 18:03:51 CEST 2017


On Wed, 26 Jul 2017 02:21, gnupg-user at niob.at said:

> One more question for this topic: Am I right that secret key export is
> not really implemented, even though there is the
> GPGME_EXPORT_MODE_SECRET flag to gpgme_op_export_keys()?

No, it is implemented.  You may use the run-export test program from
the gpgme build directory to test it:

  $ ./run-export --openpgp --secret patrice.lumumba at example.net
  keyid: 139563682A020D0A  (fpr: B21DEAB4F875FB3DA42F1D1D139563682A020D0A)
  exporting secret keys!
  Begin Result:
  -----BEGIN PGP PRIVATE KEY BLOCK-----
  
  lIYEV2o9XRYJKwYBBAHaRw8BAQdAZ8zkuQDL9x7rcvvoo6s3iEF1j88Dknd9nZhL
  nTEoBRn+BwMCg63ihXzAmZ3h0IU0FKiAxZOSy5VAKrU1M1f9/euePQpNXK1X50ef
  WWb2zuE37junfzr5TITbl/3EC4YgbH/FmhvztZJxjoqcg6CNhTUtzLQbcGF0cmlj
  ZS5sdW11bWJhQGV4YW1wbGUubmV0iHkEExYIACEFAldqPV0CGwMFCwkIBwIGFQgJ
  CgsCBBYCAwECHgECF4AACgkQE5VjaCoCDQqZDQEAxQ3MCVM7Mbu2iVIj3aWF4+Ll
  Wq612pMRBPJhhaLVoSwA/Rh+K6iw2CBNzShFNLPjpLeLRCMCWlfB9TTTzzzIit4N
  nIsEV2o9jRIKKwYBBAGXVQEFAQEHQBZ55mXPfU7ipOYgqvcJmGVFRdkXFzdgrKgJ
  fIhkEFFrAwEIB/4HAwK7JqxPETtQvuFYDuRCIj/saGn4B+5WgpRdDlW78NkfNIi/
  c9wS2u6zvhIM8LboJgH6hxQR1wcNR1OTdGYaNCqbBroYu0RvNL8ad476PLiQiGEE
  GBYIAAkFAldqPY0CGwwACgkQE5VjaCoCDQrLhQD/QaZVpfNd6Yu+/VfDjLERrP8p
  8ooZzhEn7fx/KpTPDw0BAKiFD6SLcjl/zgRctkSJSIuydW06fUc3G80P+BZOIVkE
  =SgH0
  -----END PGP PRIVATE KEY BLOCK-----
  End Result.


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/20170726/08cb954c/attachment.sig>


More information about the Gnupg-users mailing list