On Wed, Nov 01, 2000 at 12:11:50PM +0000, Logi Ragnarsson wrote:

(replying to my own post so people don't waste time on it)

> I'm trying to use the public key from my GPK-8000 with the JCE. I can read
> the key from the card, but it can't be used to initialize f.ex. RSA
> signatures in the JCE.
> 
> Is my feeling correct that in order for an instance of a class implementing
> a sub-interface of PublicKey to be really useful for anything it needs to be
> associated with an entire crypto provider. I.e. there is no easy way to
> "insert" a key into an existing crypto provider like Sun's provider? I can
> get the exponent and modulus; shouldn't I at least be able to instantiate a
> class from the JCE with this?

This seems to be possible by creating an RSAPublicKeySpec object and
converting it. I just dind't think to look for this in the JCA included in
the JDK :)

Sorry, posted a bit too quick. The other questions are still open, though.

Logi


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to