AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

rsaEncryption vs. ripemd160WithRSA

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java
View previous topic :: View next topic  
Author Message
Jan Franek
Guest





PostPosted: Mon Jan 08, 2007 4:46 am    Post subject: rsaEncryption vs. ripemd160WithRSA Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Security and Java All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.