Skip to content

Asymmetric Cryptosystems, Hashing, PKI and Digital Signatures

RSA, ECC, hashes, HMAC, digital signatures and PKI, with certificate validation, revocation, timestamps and forensic reporting limits.

By Reviewed by Jeevesh Kumar

Last updated:

Public-key cryptography supports encryption, key establishment and signatures through scheme-specific public and private material. Hashes support content comparison; MACs require secret keys; certificates bind keys to subjects under a defined trust policy. These mechanisms answer different questions.

Forensic validation examines signed bytes, algorithms, parameters, certificate paths, relevant time and status evidence. A mathematical verification result is not an unconditional conclusion about human authorship, consent, document truth or legal admissibility.

By the end of this topic you will be able to:

  • Separate public-key encryption, key agreement and signature roles.
  • Explain RSA schemes and distinguish OAEP from PSS.
  • Use cryptographic hashes and MACs with appropriate provenance and password-storage distinctions.
  • Assess signatures, certificate paths, revocation and trusted time without human-authorship guarantees.
Key terms
Asymmetric cryptography
A family of constructions using related public/private material for scheme-specific operations. Public-key authenticity still requires an appropriate trust mechanism.
Trapdoor function
A function intended to be hard to invert without specified secret information. Not every public-key construction is accurately described by the same trapdoor-function model.
RSA
A mathematical family used by defined encryption and signature schemes. Textbook modular exponentiation alone is not a secure message scheme.
ECC
Elliptic-curve-based constructions, including ECDSA and ECDH. Security depends on the curve, subgroup, parameters and implementation, not just a nominal bit count.
Hash function
A deterministic digest function with specified security properties. A bare digest is neither encryption nor a secret-key authenticator.
HMAC
A keyed message-authentication construction using a hash. Validation depends on the actual key and algorithm; either shared-key holder may generate it.
Digital signature
A scheme with key generation, signing and verification operations. It is not generally “encrypt the hash with a private key.”
PKI
Policies, roles and mechanisms for binding public keys to subjects and managing trust, certificates and status. Trust anchors depend on the application.
Signing Certificate
A certificate binding a public key to a subject for specified purposes under a trust policy. It does not independently establish human consent or document truth.

Asymmetric Cryptography: Public Keys, Private Keys and Trapdoor Functions

Public-key schemes have different capabilities. RSA has encryption and signature schemes; ECDSA signs; ECDH establishes shared material. Do not encrypt to an arbitrary signing key or treat one key pair as suitable for every operation.

Hard mathematical problems support security arguments under particular assumptions. RSA inversion is related to factoring but not generally proved equivalent to it; elliptic-curve discrete-log hardness is not the identical trapdoor construction.

The public key is intentionally public and often derivable from private material. The intended difficulty is recovering the private secret from public information, not hiding the public half from an attacker.

Public and private keys have different roles in encryption and signatures. A scheme must support the intended operation; ECDH is key agreement and ECDSA is signing, not general-purpose encryption.

Public-key authentication needs a trusted binding. A certificate or verified fingerprint may help, but an attacker’s self-signed certificate is not trusted merely because its signature verifies.

Key lengths are not directly comparable across families. Common security-strength estimates place RSA-3072 and suitable 256-bit elliptic curves near 128-bit classical strength; implementation and parameter checks still matter.

RSA and conventional elliptic-curve systems are not post-quantum schemes. NIST’s ML-KEM standard is a different key-encapsulation construction; algorithm migration requires current protocol and policy guidance rather than larger RSA keys alone.

RSA Encryption: Key Generation, Encryption and Decryption

RSA key generation selects suitable primes and a public modulus n, with public exponent e and private exponent d satisfying the required relation. Validated generation includes more checks than this teaching outline.

This deliberately tiny textbook RSA example satisfies 9^7 mod 143 = 48 and 48^103 mod 143 = 9. Real RSA needs secure sizes, encodings and implementation protections.

Toy arithmetic: p = 11, q = 13, n = 143 and φ(n) = 120. Choose e = 7 and d = 103, since 7 × 103 ≡ 1 mod 120. For m = 9, c = 9^7 mod 143 = 48, and 48^103 mod 143 = 9.

This example demonstrates modular arithmetic only. Its tiny key and unencoded textbook operation provide no real security. Use a vetted scheme and implementation instead of translating the toy calculation into a production tool.

RSAES-OAEP is an encryption scheme; RSASSA-PSS is a signature scheme. They are not interchangeable, and signatures are not simply private-key encryption of a digest.

RSA PKCS#1 v1.5 encryption has serious oracle risks in vulnerable implementations. That is distinct from the status of properly implemented PKCS#1 v1.5 signatures; do not declare every v1.5 operation identically broken.

TLS 1.3 removed RSA key transport and can use RSA-PSS for appropriate certificate authentication. It does not use RSA-OAEP to transport every TLS session key.

Key-size and transition decisions depend on current security-strength targets, data lifetime and policy. Do not promise that RSA-2048 is automatically safe until a date or invent future national CA roadmaps.

Digital Signature Algorithms: DSA, ECDSA and Ed25519

DSA, ECDSA and EdDSA are signature families, not encryption algorithms. Under FIPS 186-5, DSA is retained for verification of existing signatures rather than generation of new ones.

Public-key algorithms are not interchangeable. Task, scheme parameters and protocol context determine which operation a key supports.

ECDSA uses elliptic-curve arithmetic and requires correct per-message secret handling. Nonce reuse or bias can expose keys; approved deterministic generation can avoid dependence on a fresh external random value for every signature.

Ed25519 is an EdDSA signature scheme using an Edwards-curve representation related to Curve25519. X25519 is a distinct key-agreement function. The names and wire encodings must not be treated as interchangeable.

Deterministic signing does not remove the need for secure key generation, correct implementation or fault resistance. Neither an algorithm name nor a small key proves a deployment immune to side channels.

For evidence, record the actual algorithm identifier, curve, signature encoding, message representation and validation result. A system may use different algorithms for certificates, key agreement and application signatures.

Post-quantum signatures and key encapsulation are separate tasks. NIST standardised ML-DSA and SLH-DSA alongside ML-KEM in 2024; their existence does not imply every deployed protocol or document format supports them.

Hashing: SHA-2, SHA-3, HMAC and Password Storage

Preimage resistance, second-preimage resistance and collision resistance are distinct. A practical collision attack finds two matching digests; it does not automatically let an attacker create a replacement for any specified existing evidence file.

Comparing a current digest with a securely recorded reference helps detect byte changes. A matching digest does not alone prove origin, lawful collection, authorship or truth of the contents.

MD5 and SHA-1 have serious collision weaknesses and should not be selected as the sole new integrity mechanism. Preserve historical recorded values where relevant and add an appropriate modern digest such as SHA-256 under the laboratory’s actual procedure.

SHA-2 and SHA-3 are different families. SHA-3 is not a transparent drop-in for every signed format, protocol or validated module: algorithm identifiers, implementation support and policy matter.

A checksum is useful only with provenance. Record what bytes or container were hashed, when, by which method and where the trusted reference is retained. Matching hashes do not prove a message is true or establish a person’s identity.

HMAC combines a secret with a hash in a defined construction and avoids the naive secret-prefix length-extension problem for susceptible hashes. Use a vetted MAC, not an improvised hash concatenation.

Passwords need a suitable salted password-hashing/KDF construction with configured cost. bcrypt is cost-adjustable but not memory-hard in the same way as scrypt or Argon2id. A fast bare SHA-256 digest is unsuitable password storage.

Fuzzy or similarity hashes serve triage and clustering, not exact integrity verification. Similarity scores need content and tool interpretation; they do not replace cryptographic digests in an evidence manifest.

Digital Signatures and X.509: Trust, Revocation and Validation Time

Verify the exact signed representation. Document formats may sign selected byte ranges, canonicalised structures or detached content, so a visible page screenshot is not necessarily the signed input.

A successful verification supports the scheme’s integrity and key-possession claim under its assumptions. Consider key compromise, automated signing and shared access before asserting a named human intended the transaction.

Signature verification tests the supplied message, signature and public key. Identity, certificate status, signing time and possible key compromise need separate assessment.

X.509 certificates carry a subject/public-key binding signed by an issuer. Identity assurance differs: a domain-validated server certificate does not establish a natural person’s identity or prove a business is trustworthy.

Path validation checks an appropriate trust anchor, signatures, validity, constraints, purposes and applicable policy. Application checks such as hostname matching are additional. Code signing is an extended-key-usage purpose, not simply another basic keyUsage bit.

CRLs and OCSP supply scoped certificate-status information. An OCSP “good” response does not establish every aspect of validity or even necessarily that the responder confirms issuance. Record freshness, responder authority, status and retrieval conditions.

A certificate chain is evaluated against an accepted trust anchor, constraints and status information. Self-signing alone does not make a root trustworthy; later revocation does not automatically invalidate every historical signature.

Historical signature assessment differs from checking a certificate today. Preserve trusted timestamp evidence, relevant certificate/status material and the validation time/policy. Expiry today does not automatically invalidate a signature demonstrably made validly earlier.

Certificates and trusted timestamps support particular claims, not document truth. Legal recognition and evidentiary presumptions depend on the applicable jurisdiction and scheme. Use the final legal module for jurisdiction-specific statutory analysis.

Validate TLS and Signed Documents in Forensic Work

A typical certificate-authenticated TLS 1.3 exchange combines supported key establishment, a signed transcript, a key schedule and AEAD records. PSK modes and 0-RTT have different properties; do not impose one handshake on every capture.

This conceptual certificate-authenticated ECDHE handshake separates key agreement, authentication, derivation and bulk protection. It is one TLS 1.3 mode, not a universal description of every payment protocol.

TLS 1.3 encrypts most handshake messages after ServerHello. A passive packet capture without appropriate secrets does not necessarily expose the certificate or signature. Traffic inspection results must reflect actual visibility.

The negotiated cipher suite does not by itself identify the authentication signature or key-agreement group. Record the relevant extensions and messages where available, and avoid transferring network TLS guarantees to application-level signed content.

Hypothetical technical example: an examiner receives a signed PDF and its associated validation records. They preserve the original, identify the signed byte ranges and revisions, verify the signature and build the appropriate certificate path.

They assess any timestamp and status evidence at the relevant time, report unsigned later changes and distinguish technical validation from the alleged signer’s consent. A green viewer badge alone is not the complete forensic report.

For a US case, use the applicable federal/state evidentiary framework; for a UK case identify the relevant legal system; for an Indian case consult the dedicated IT Act/BSA material. The technical verification remains explicit in each, without assuming equivalent legal effect.

For limits and attack models, continue to Cryptanalysis and Diffie–Hellman.

Check Your Understanding

Question 1 of 5· 0 answered
Which operation belongs to RSA-OAEP?

Sources

  1. 1.RSA encryption and signature schemes · RFC 8017
  2. 2.Digital Signature Standard · NIST FIPS 186-5
  3. 3.EdDSA signature schemes · RFC 8032
  4. 4.X.509 certificates and path validation · RFC 5280
  5. 5.OCSP certificate status and response scope · RFC 6960
  6. 6.TLS 1.3 handshake and visibility · RFC 8446
  7. 7.ML-KEM key encapsulation · NIST FIPS 203
  8. 8.ML-DSA signatures · NIST FIPS 204
  9. 9.SLH-DSA signatures · NIST FIPS 205

Test yourself on Digital Forensics with free, timed mocks.

Practice Digital Forensics questions

Found this useful? Pass it along.