Cryptography Fundamentals Questions

Core concepts and vocabulary of cryptography: confidentiality, integrity, authentication, and non-repudiation; the difference between symmetric and asymmetric primitives; and how standard algorithms, libraries, and protocols fit together. Covers threat models, common standards, and applying primitives and cryptographic libraries correctly to real-world security problems. The entry point for the cryptography track.

MediumTechnical
96 practiced

Your code needs N cryptographically secure random bytes for a key or nonce. Walk through how you'd get them correctly in Python and in C, and what specific mistakes in either language would quietly make the result insecure.

MediumTechnical
95 practiced

You are responsible for randomness on a constrained IoT device with minimal entropy sources. Propose a robust design to initialize cryptographic keys and generate RNG material for TLS sessions and attestations. Include use of any available hardware TRNG, seeding and reseeding policies for a DRBG, secure storage for seeds, fallback behaviors, and approaches for validating entropy quality during manufacturing and in-field operation.

HardSystem Design
119 practiced

Design the cryptographic architecture for a high-throughput VPN targetting ~100 Gbps aggregate throughput with many short-lived sessions. Choose cipher suites (AEAD choices), handshake mechanisms, KDF and session-resumption strategies, and describe how to leverage hardware acceleration (NIC offload, AES-NI, vectorized implementations). Provide a realistic benchmarking and instrumentation plan to validate throughput, latency, and connection setup performance under load.

MediumTechnical
72 practiced

Compare AES-GCM and ChaCha20-Poly1305 as practical AEAD choices for an application. Discuss performance differences on platforms with and without AES-NI (e.g., x86 server vs mobile ARM), implementation complexity and side-channel considerations, nonce and IV handling details, and typical protocol-level pitfalls for each algorithm. Recommend choice guidelines for a cross-platform service.

That is every published Cryptography Fundamentals question for Embedded Developer so far. Browse the other topics in this category, or practice this one interactively.