Implementation of digital signature

It is computationally expensive to public-key-encrypt long messages. The goal is to have a fixed-length, easy to compute digital “fingerprint”, and then to apply hash function H to m, get fixed size message digest, H(m). MD5 and SHA-1 are hash functions widely used.

Digital signature is a signed message digest:

This figure shows the signing and verification processes in digital signature. A hash function obtains a hash from the data which is encrypted using signer’s private key. The user attaches to data the signature and the certificate with his/her public key. This set is the digitally signed data. In the verification process we use the same hash function to get a hash of the received data. Using the public key contained in the certificate the message is decrypted. Then apply the hash function and compare both hashes. If the hashes are equal the signature is valid.
Project

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

This resource was developed as part of an Erasmus+ project, funded with support from the European Commission under grant agreement 2016-1-SE01-KA203-22064.

The project was a collaboration between:

  Creative Commons License

This resource has been released under Creative Commons license CC-BY-SA 4.0.

Contact

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

If you would like more information on this resource please contact:

  • Academic content – The University of Alcalá (https://www.uah.es/en/)
  • Technical resource development – The University of the Highlands and Islands Educational Development Unit - EDU (edu@uhi.ac.uk)
Disclaimer

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

Except where otherwise noted, this website is licensed under Creative Commons license CC-BY-SA 4.0. All images used under permission remain the copyright of the license holder.

PDF

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

Download a copy of this resource in PDF format.

You can also print individual pages by printing directly from the browser.

×