 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jan Franek Guest
|
Posted: Mon Jan 08, 2007 4:46 am Post subject: rsaEncryption vs. ripemd160WithRSA |
|
|
Hi,
I'm trying to generate some PKCS7 signed data using Bouncycastle
provider (CMSSignedDataGenerator). I need to create structure with
ripemd160 digest and ripemd160WithRSA signature. I can set digest
algorithm to CMSSignedDataGenerator but generated signed data structure
end with:
672:d=5 hl=2 l= 13 cons: SEQUENCE
674:d=6 hl=2 l= 9 prim: OBJECT :rsaEncryption
685:d=6 hl=2 l= 0 prim: NULL
687:d=5 hl=3 l= 128 prim: OCTET STRING [HEX DUMP]:...
and I need it to look like this:
676:d=5 hl=2 l= 10 cons: SEQUENCE
678:d=6 hl=2 l= 6 prim: OBJECT :ripemd160WithRSA
686:d=6 hl=2 l= 0 prim: NULL
688:d=5 hl=3 l= 128 prim: OCTET STRING [HEX DUMP]:...
I'm not expert in this field, but I know, that signature is in fact
just encrypted digest. And as my digest is correctly generated using
ripemd160 I think, that the signature is generated correctly and only
thing I need to do is to replace "rsaEncryption" with
"ripemd160WithRSA". Can anybody confirm this ? Or am I wrong ? If so,
how can I generate correct signature. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|