I am very new to Bouncy Castle.I want to know is there any way using Bouncy Castle API that i can get original content if i only have signature using X509Certificate with public key.I am not finding any way as we have only public key.We don't have private key which is used to sign the message.
Asked
Active
Viewed 737 times
0
-
We have public key as X509Certificate – Swapnil Nov 29 '13 at 06:07
-
So what is your question ? – Suresh Atta Nov 29 '13 at 06:07
-
I want to get the content from signature string. – Swapnil Nov 29 '13 at 06:08
1 Answers
0
If one has created a detached signature and you have only that signature (and no original data) then you are out of luck.
If the signature is wrapping, then surely you can get original data back. Signed data doesn't require a private key to be verified and extracted. Public key (actually the certificate with the key) can be included in the wrapping signature in which case you don't even need the certificate separately.

Eugene Mayevski 'Callback
- 45,135
- 8
- 71
- 121
-
Yes correct, actually i have wrapped signature just i want to verify the signature,but i am always getting Message Digest miss match exception so i just want to get the Content from signature,to check original content content which i have for comparison .So any method or code that will retrieve content from signature for my verification will be helpful. – Swapnil Nov 29 '13 at 08:43