Cryptographic Hashing and Digital Signatures Questions

Cryptographic hash functions (collision resistance, preimage resistance), message authentication codes, and digital-signature schemes. Covers HMAC, signature verification, and how hashing underpins integrity, commitments, and authentication. Distinct from non-cryptographic hashing used in data structures.

HardTechnical
43 practiced

You're about to ship a new signature library supporting RSA-PSS, ECDSA, and EdDSA. Design a testing and fuzzing strategy that would actually catch real-world signature bugs before they reach production, not just confirm the happy path works. What would you test, and why would each thing you chose actually catch a bug that has bitten a real crypto library before?

EasyTechnical
45 practiced

Walk through HKDF's extract-then-expand design. What are the inputs to each stage, and why does the construction split entropy extraction from key expansion into two separate steps, rather than just hashing the shared secret directly? What does that split actually buy you?

EasyTechnical
47 practiced

You're building a cache-key generator for a CDN, and a teammate suggests reusing the same fast hash function for hashing user passwords too, to keep the codebase simple. How would you respond, and what's the real boundary between a general-purpose hash like MurmurHash and a cryptographic hash function? Give three situations where a non-cryptographic hash is perfectly fine and three where using one would be a serious mistake.

HardSystem Design
51 practiced

A high-throughput blockchain needs a Merkle tree variant that supports fast append, compact light-client proofs, and efficient reorgs. How would you lay out nodes, compress proofs, and handle large forks without re-hashing entire histories?

MediumTechnical
42 practiced

A protocol uses the same hash function for several different purposes, say deriving a key, computing a MAC, and generating a commitment. What could go wrong if you don't domain-separate these uses, and how would you fix it? Give two concrete examples of mistakes this causes.

Unlock Full Question Bank

Get access to all Cryptographic Hashing and Digital Signatures interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.