[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [iaik-jce] PKCS7 question
You have to pass a null to the SignerInfo constructor and then use the
setEncryptedDigest to put an already encrypted hash into it.
The code will appear like:
SignerInfo signer_info = new SignerInfo(issuer,
The rest will be the same as in the examples.
I think this is an undocumented feature: this information was passed to me
this mailing list some day ago.
----- Original Message -----
From: "Andrei Savitsky" <firstname.lastname@example.org>
Sent: Wednesday, November 01, 2000 4:58 PM
Subject: [iaik-jce] PKCS7 question
> I need to sign file with certificate. Certificate and Keys are on
> smartcard, so I can't put Private Key to SignedData or
> SignedDataStream Objects. I generate signature with the help of
> other package. So, how can I make file in PKCS7 format, when I have
> ready signature? Don't understand how to use setMessageDigest
> function, if it can help me.
> Best regards,
> Andrey mailto:email@example.com
> Mailinglist-archive at
> To unsubscribe send an email to firstname.lastname@example.org with the folowing
To unsubscribe send an email to email@example.com with the folowing content: