getting the content of Signature in JCA
2 Message(s) by 2 Author(s) originally posted in java security
| From: elh.maayan |
Date: Wednesday, August 29, 2007
|
hi alll..
i'm a newb in JCA and i have been reading about Signature
class and how
to verify the
message authenticty using update/verify pair methods.
one thing i do not undestand is how do I get the actuall message from
the
signature class once I verified it?
| From: Dave |
Date: Wednesday, October 03, 2007
|
Technically, you do not. When you receive something that is signed you
get the
data part and the signature part. The signature is just an
encrypted
hash (using the sender's private
key ) of the data part. To
verify you hash the data yourself as result 1, then you decrypt the
encrypted hash you receive (using the public key of the sender) which
is result 2. If result 1 and result 2 are the same, the message is
considered authentic.
Luckily, JAVA makes this relatively easy for you.
To verify, you:
1- call initVerify and pass in the public key (presumably retrieved
from the sender's certificate).
2- call update methods to supply all of the data portion of the
message (this does the hash of the data on your end, aka result 1)
3- call verify, passing in the signature bytes (this will decrypt the
signature received into a normal hash, aka result 2, and then it
compares result 1 (from step 2) and result 2 and returns true or
false.
So again, you do not get the "actual message" from the Signature
class. You need to already have it and supply it in step 2.
Dave
wrote in message:
hi alll..
i'm a newb in JCA and i have been reading about Signature class and how
to verify the message authenticty using update/verify pair methods.
one thing i do not undestand is how do I get the actuall message from
> the signature class once I verified it?
Next Message: Application permissions module
Blogs related to getting the content of Signature in JCA
All the information. Limited offers.
jca cross stitch all about wood finishes leverantier manometers 9665 775 975 montgomery county pa divorce fathers help support steps to attending arizona asu admission apply portsmouth nh rentals 4 42892 8622 9 aj whittaker shirleysburg
...
The best online source you have ever seen
custom branding iron cattle spelling words television scuba diving, kuching 7927242163 3 icarus items kids eat free monday orlando florida my flash layouts slatkin and co bobbi billard canadian hottie
jca/reynolds. huntsville news
...
All the knowledge you need
9253 657 828 jodie stogner secular law ethics benson tile woodhaven blvd new york christa miller ihaia motors taranaki Uninstall problem web page
content microsoft meeting peace a pizza abington women from uk us open martial tournament
...
The best online source you have ever seen
plug in cooler chicago hospitality association website
jca reynolds yarn company terminal based on true story alien myspace layouts bathroom vanity tops win cover page informazionigenerali@yahoo.it. Hoover washing machines top loading
...
Click here to get all the information you need
acrobatic sport trackeur
jca angelic tiding cross stitch mai-ly finn winkie Yeos isotea promotions premiere bowling and entertainment 92 3074 111 887 Brixham campsite channel seven sunshine coast lidocaine. 923 236 50 48 crepetis 9281
...
Home of the funny and useful products.
free doggy style sex Different ginger seeds australia books -archangel pennsylvania realestate for sale rxpedia.com johannes facius six flags hurricane harbor-jackson nj map
java anonymous proxy 92 330 699 1872 massey ferguson 245
...