• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Digital Signature Doubt

 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In PKI, I have a doubt in the process of creating Digital Signature. In the "Digest and Sign" phase, once we
generate a message digest of original document, we sign and encrypt this message digest with a private key.

Now what exactly is difference between signing and encrypting the message digest mean ? What does signing the
message digest mean exactly ?
 
author
Posts: 23834
140
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Now what exactly is difference between signing and encrypting the message digest mean ? What does signing the message digest mean exactly ?



It has been awhile since I used PKI programmatically... but it basically means the same thing. Signing simply means to encrypt the message digest -- and probably something else -- with your private key.

Since you are the only person with the private key, you are the only person who could have encrypted the digest. When the reader, regens the digest from the message, and decrypts the digest with your public key, a match means that it was sent from the holder of the private key.

Henry
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!