Exporting DSA versus RSA

View: New views
2 Messages — Rating Filter:   Alert me  

Exporting DSA versus RSA

by Crypt lib :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a working Cryptlib function that allows me to export an arbitrary RSA keyset's public key into; X509, OpenSSL, SECSH/SSH2 or Putty format into their respective defacto PEM format (yes X509 is NULL transform :) ), by traversing the X509 ASN.1 cert generated using cryptlibExportCert().

However when that same code is presented with a DSA keyset, versus RSA keyset, I seem unable to export a recognizable X509 cert. I seem to be getting junk without an error being thrown.

It's my understanding that Cryptlib uses X509/ANS.1 for all key exports, and this is algorithm agnostic. What am I missing here?

I'm also required to support export of DSA with EGAMAL to defacto PEM next, so any hints regarding what I face there would be appreciated.

Thanks!

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
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.

Re: Exporting DSA versus RSA

by Peter Gutmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Crypt lib" <cryptlib@...> writes:

>However when that same code is presented with a DSA keyset, versus RSA
>keyset, I seem unable to export a recognizable X509 cert. I seem to be
>getting junk without an error being thrown.
>
>It's my understanding that Cryptlib uses X509/ANS.1 for all key exports, and
>this is algorithm agnostic. What am I missing here?

Nothing, if you've got a DSA certificate object and you export it with
cryptExportCert() you'll get the encoded form of the certificate.

Peter.

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
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.