[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [iaik-jce] Digital signature verification



Hello,

most likely you did not add the IAIK provider:

IAIK.addAsProvider();

or

Security.addProvider(new IAIK());

(or, if using an IAIK-JCE version before jce2.61 you only have iaik_jce.jar
(not including RSA) in your classpath).

Regards,
Dieter Bratko

-----Ursprüngliche Nachricht-----
Von: iaik-jce-owner@iaik.tu-graz.ac.at
[mailto:iaik-jce-owner@iaik.tu-graz.ac.at]Im Auftrag von Marina Fisher
Gesendet: Donnerstag, 14. Dezember 2000 00:06
An: iaik-jce@iaik.tu-graz.ac.at
Betreff: [iaik-jce] Digital signature verification


Hello,

I'm trying to verify the digital signature using IAIK library. The original
document is signed using VeriSign certificate and Netscape s
crypto.signedText()
method. I am receiving an error stating that rsa public key algorithm is not
implemented although RSAPublicKey class is included as part of
the iaik.security.rsa package. The orginal code looks like:

..
      AlgorithmID[] algIDs = { AlgorithmID.md5};
      String message = "Hello, World";// orig message
      SignedData signed_data = new SignedData(message.getBytes(), algIDs);
      System.out.println("Signed data: "+signed_data);

     // This line causes the error
       signed_data.decode(cis.getContentInputStream());
..

The output is:

Signed data: Version: 1
digestAlgorithms: MD5
ContentInfo: yet not set
signerInfos: 0


Error loading file: java.io.IOException: Cannot parse certificate: PublicKey
algorithm not implemented: rsaEncryption

Any thoughts?

Thanks,
 - marina

--
Mailinglist-archive at
http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content:
UNSUBSCRIBE iaik-jce



--
Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-jce