Digital Signatures and Non-Repudiation
Non-repudiation gives evidence that a specific party performed an action. This lesson explains how digital signatures and certificates provide it, why HMAC does not, and how audit trails support non-repudiation of actions within systems.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how digital signatures are created and verified.
- Explain the role of certificates and trusted timestamps.
- Explain why HMAC does not provide non-repudiation.
- Describe how audit trails support non-repudiation.
What non-repudiation requires
Non-repudiation is assurance that a party cannot successfully deny having performed an action, such as sending a message, signing a contract or approving a payment. It requires evidence that would convince an independent third party, which means the evidence must be something only that party could have produced. Shared secrets cannot provide this, because more than one party holds them.
The following diagram compares an HMAC with a digital signature for proving who placed a disputed order.

How digital signatures work
A digital signature uses asymmetric cryptography. The following steps show signing and verification.
-
Hash the message
The signer computes a digest of the message, for example with SHA-256.
-
Sign the digest
The signer applies their private key to the digest with a signature algorithm such as RSA-PSS, ECDSA or Ed25519, producing the signature.
-
Send
The message and signature are sent together; the message itself is not encrypted by signing.
-
Verify
The recipient computes the digest of the received message and uses the signer's public key to check the signature against it.
If verification succeeds, the recipient knows the message has not changed (integrity), that it was signed with the private key matching the public key (authenticity) and, because only the signer holds that private key, that the signer cannot plausibly deny signing (non-repudiation). A signature does not provide confidentiality; if the content is secret, it must also be encrypted.
Non-repudiation depends on the private key being protected and used only by its owner. Keys stored on smart cards, hardware tokens or HSMs, protected by PINs, give stronger assurance than keys in files.
Signing a document
Digital certificates
A signature proves possession of a private key, but the verifier must also know whose key it is. A digital certificate, in the X.509 format, binds a public key to an identity (a person, organisation, server or device) and is itself signed by a certificate authority (CA) that verified the identity. Verifiers trust the CA, check the certificate's validity period and revocation status, and so trust the binding. Code-signing certificates let operating systems verify software publishers; email certificates support S/MIME signatures; document-signing certificates support electronic signatures with legal effect in many jurisdictions.
Trusted timestamps from a timestamping authority prove when something was signed, so that a signature remains verifiable after the signing certificate expires and the signer cannot claim the signature was made after the key was revoked.
HMAC and audit trails
An HMAC proves that a message came from someone holding the shared key and was not altered, but because both sender and receiver hold the key, the receiver could have created the HMAC too. In a dispute, an HMAC cannot show which party produced the message, so it gives authentication without non-repudiation.
For actions within systems, such as an administrator changing a configuration or a user approving a transaction, non-repudiation is supported by audit trails: records of who did what and when, tied to strongly authenticated unique identities, with accurate time and protection against tampering (central storage, restricted access, hashing or signing of logs). Shared accounts, weak authentication or editable logs all undermine it. The following table summarises the mechanisms.
| Mechanism | Non-repudiation? | Why |
|---|---|---|
| Digital signature with certificate | Yes | Only the private key holder could sign; the certificate identifies them |
| HMAC | No | Both parties hold the shared key |
| Plain hash | No | Anyone can compute it |
| Protected audit trail with unique identities | Supports it | Records actions by authenticated individuals, if logs cannot be altered |
Does it give non-repudiation?
The disputed order
A supplier receives a large order through an API protected with HMAC using a key shared with the customer. The customer later denies placing the order. Can the supplier prove the customer sent it?
Not conclusively. Because the supplier also holds the shared key, it could have generated the HMAC itself, so the HMAC does not provide non-repudiation. If non-repudiation is required, the customer should digitally sign orders with a private key bound to a certificate, with trusted timestamps, and the supplier should keep protected logs of the API sessions.
Signature without secrecy
A manager digitally signs an email containing salary figures and sends it to HR. The email is intercepted. Was its content protected?
No. A signature provides integrity, authenticity and non-repudiation, but not confidentiality; the content is readable. To protect it, the email must also be encrypted, for example with S/MIME using HR's public key, or sent over a channel with end-to-end encryption.
Which key does a recipient use to verify a digital signature?
Show answer
The signer's public key, usually obtained from the signer's certificate.
Exam Tips
Remember for the exam
- Signing uses the signer's private key; verification uses their public key.
- Signatures give integrity, authenticity and non-repudiation but not confidentiality.
- HMAC cannot provide non-repudiation; audit trails support it for system actions.