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

[iaik-jce] PKCS7 Problems


I've got the following problem:
I've got signed data, and I want to decode that data with this code:

ASN1 asn1 = new ASN1(inputStream);
SignedData sigData = new SignedData(asn1.toASN1Object());

The output of the "asn1"-object seems to be ok. The attempt to decode the
"asn1"-object causes an exception:
iaik.pkcs.PKCSParsingException: Next ASN.1 object is no INTEGER!
  at iaik.pkcs.pkcs7.SignedData.decode(Unknown Source)
  at iaik.pkcs.pkcs7.SignedData.<init>(Unknown Source)

Where is my mistake? What do I have to do to make it work?
Thomas Link

GFT Technologies AG
Otto-Lilienthal-Str. 36
71034 Boeblingen, Germany

voice +49-(0)7031/714-8432, fax -840

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