Re: Importing an OpenPGP keyring to Cryptlib
Peter Gutmann <[email protected]> Tue, 19 Feb 2013 02:31:58 +1300
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
Lahiru Dissanayake <[email protected]> writes: >Ok then, how can I create a *private keyring* that can be imported to >Cryptlib? As I mentioned earlier, the key bytes are generated from >PGPPrivateKey.getEncoded() method in Bouncy Castle library in an existing >system. I've attached such a (private) key file with a user "David" and >passphrase "password". When I try to load this to Cryptib using >cryptKeysetOpen() method, I get the error code -43 (CRYPT_ERROR_NOTFOUND). >However, GPG can import this file to get the keys. I've just tested it and it works fine, 'cryptGetPrivateKey( pgpKeyset, &pgpPrivateKeyContext, CRYPT_KEYID_NAME, "David", "password" )' returns the key as expected. Peter. _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.