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.
Sketch how to construct a collision-resistant hash function from a set of weaker primitives. For example, given two hash functions H1 and H2 with different designs, describe a combining method that increases resistance to collisions and discuss any formal guarantees you can claim or limitations you must acknowledge.
Compare ECDSA and EdDSA with respect to side-channel resistance, nonce handling (deterministic vs randomized), curve formats (Weierstrass vs Edwards), and suitability for long-lived server keys versus client-side ephemeral keys. Recommend specific schemes for a high-security CA and for constrained IoT devices.
Your legacy API accepts certificate signatures using RSA PKCS#1 v1.5 and SHA-1. Outline concrete detection and mitigation actions to protect against Bleichenbacher-style oracle attacks and chosen-prefix collision threats. Include code-level changes, runtime mitigations, library updates, emergency policy changes, and a migration timeline prioritizing high-risk endpoints.
Design a secure, incremental authenticated data structure (similar to how Git uses content-addressable storage) that resists second-preimage and collision attacks across multiple versions. Explain domain separation, versioning of hash algorithms, storing mixed-era objects, and propose an efficient migration path if the underlying hash becomes broken while keeping repository integrity verifiable.
You are responsible for migrating a large PKI that uses SHA-1-signed certificates and many legacy artifacts to SHA-256. Describe a comprehensive migration plan covering inventory, compatibility, cross-signing, certificate revocation, client updates, code-signing artifacts, OTA updates, and archived signatures. Include safety nets and monitoring approaches to ensure service continuity during the migration.
Unlock Full Question Bank
Get access to all Cryptographic Hashing and Digital Signatures interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.