Symmetric vs Asymmetric Encryption MCQ 60 Tests With Answers (2026)

Symmetric vs. Asymmetric Encryption MCQ practice questions are essential for preparing for competitive exams, certifications (CompTIA Security+, CISSP), and technical interviews. This comprehensive MCQ platform provides 60 carefully curated practice questions covering encryption fundamentals, key threats, and defensive strategies.
These questions are organized into three progressive difficulty levels of 20 questions each: Basics (covering foundational terminology and core definitions), Concepts (covering intermediate protocols, threat mechanics, and architectural trade-offs), and Advanced (covering scenario-based analysis, advanced compliance, and enterprise architectures). Each question includes a verified, in-depth explanation to reinforce learning.
Practice in Study Mode to reveal answers and detailed explanations instantly, or use Exam Mode for timed testing and real-time scoring to simulate CompTIA Security+ or university exam conditions. The interactive engine tracks your progress and identifies knowledge gaps across symmetric block/stream ciphers, public-key pairs, and hybrid TLS architectures.
Contents
- 1.Basics (20 Questions)One key vs. key pair Β· AES vs. RSA Β· public/private mechanics Β· digital signatures Β· DES obsolescence
- 2.Concepts (20 Questions)Hybrid encryption Β· TLS handshake Β· Diffie-Hellman Β· PKI Β· key scaling Β· block/stream ciphers Β· PFS Β· hashing
- 3.Advanced (20 Questions)ECDLP Β· Shor's Β· Grover's Β· padding oracle Β· AES-GCM tag Β· RSA-OAEP Β· ChaCha20 Β· PQC Β· KDFs
- 4.Conclusionsummary Β· next steps Β· study tips
- 5.Key Takeawaysquick-fire bullet recap of essential facts
- 6.Quick Review Summaryconcept Β· definition Β· key fact table
- 7.FAQcommon questions answered
Symmetric vs. Asymmetric Encryption β Basics
1What is the defining characteristic of Symmetric Encryption?
CorrectC: It uses a single, shared secret key for both the encryption and decryption processes
Symmetric encryption uses a single shared secret key for both encryption and decryption. Alice encrypts the data with Key K, and Bob decrypts it with the same Key K. This simple structure makes symmetric algorithms (AES, ChaCha20, 3DES) extremely fast and computationally efficient β suitable for encrypting large data volumes. The fundamental challenge is that both parties must somehow securely obtain and share this same secret key before communication begins. Popular symmetric algorithms: AES (Advanced Encryption Standard), ChaCha20, and the legacy 3DES. In contrast, asymmetric algorithms use mathematically linked key pairs.
IncorrectC: It uses a single, shared secret key for both the encryption and decryption processes
Symmetric encryption uses a single shared secret key for both encryption and decryption. Alice encrypts the data with Key K, and Bob decrypts it with the same Key K. This simple structure makes symmetric algorithms (AES, ChaCha20, 3DES) extremely fast and computationally efficient β suitable for encrypting large data volumes. The fundamental challenge is that both parties must somehow securely obtain and share this same secret key before communication begins. Popular symmetric algorithms: AES (Advanced Encryption Standard), ChaCha20, and the legacy 3DES. In contrast, asymmetric algorithms use mathematically linked key pairs.
2What is the defining characteristic of Asymmetric Encryption?
CorrectB: It utilizes a mathematically linked pair of keys: one public and one private
Asymmetric encryption (also called public-key cryptography) uses a mathematically linked key pair: a public key and a private key. The keys are generated together using algorithms like RSA or ECC β they are not independent random numbers; they are mathematically related so that data encrypted with one can only be decrypted by the other. The public key is freely distributed (published to certificate authorities, email headers, websites). The private key is kept secret by the owner and never shared. This relationship enables confidential communication and digital signatures without requiring prior secret sharing.
IncorrectB: It utilizes a mathematically linked pair of keys: one public and one private
Asymmetric encryption (also called public-key cryptography) uses a mathematically linked key pair: a public key and a private key. The keys are generated together using algorithms like RSA or ECC β they are not independent random numbers; they are mathematically related so that data encrypted with one can only be decrypted by the other. The public key is freely distributed (published to certificate authorities, email headers, websites). The private key is kept secret by the owner and never shared. This relationship enables confidential communication and digital signatures without requiring prior secret sharing.
3What is the primary operational challenge associated with Symmetric Encryption?
CorrectD: The secure distribution and management of the shared secret key between communicating parties
The Key Distribution Problem is the central weakness of symmetric encryption. For two parties to communicate securely, they must both have access to the same secret key β but how do you securely transmit that key in the first place if your communication channel is untrusted? In a small group, keys can be exchanged physically (out-of-band). But at internet scale, with millions of users, securely pre-sharing a unique symmetric key with every possible communication partner is impractical. This is why asymmetric cryptography and algorithms like Diffie-Hellman were developed β to establish a shared secret over an untrusted channel.
IncorrectD: The secure distribution and management of the shared secret key between communicating parties
The Key Distribution Problem is the central weakness of symmetric encryption. For two parties to communicate securely, they must both have access to the same secret key β but how do you securely transmit that key in the first place if your communication channel is untrusted? In a small group, keys can be exchanged physically (out-of-band). But at internet scale, with millions of users, securely pre-sharing a unique symmetric key with every possible communication partner is impractical. This is why asymmetric cryptography and algorithms like Diffie-Hellman were developed β to establish a shared secret over an untrusted channel.
4How do Symmetric and Asymmetric encryption generally compare in terms of processing speed?
CorrectA: Symmetric encryption is exponentially faster and less resource-intensive than asymmetric encryption
Symmetric encryption (AES, ChaCha20) is dramatically faster than asymmetric encryption (RSA, ECC) β often by a factor of 100β10,000Γ depending on key size and implementation. Symmetric algorithms use efficient bitwise operations (substitution, permutation). Asymmetric algorithms rely on computationally expensive mathematical operations: modular exponentiation of very large numbers (RSA) or elliptic curve point multiplication (ECC). This performance gap is the primary reason real-world systems use hybrid encryption: asymmetric to exchange a key, then symmetric to encrypt the bulk data.
IncorrectA: Symmetric encryption is exponentially faster and less resource-intensive than asymmetric encryption
Symmetric encryption (AES, ChaCha20) is dramatically faster than asymmetric encryption (RSA, ECC) β often by a factor of 100β10,000Γ depending on key size and implementation. Symmetric algorithms use efficient bitwise operations (substitution, permutation). Asymmetric algorithms rely on computationally expensive mathematical operations: modular exponentiation of very large numbers (RSA) or elliptic curve point multiplication (ECC). This performance gap is the primary reason real-world systems use hybrid encryption: asymmetric to exchange a key, then symmetric to encrypt the bulk data.
5Which of the following is a widely used Symmetric encryption algorithm?
CorrectC: AES (Advanced Encryption Standard)
AES (Advanced Encryption Standard) is the dominant symmetric encryption algorithm in use today. Standardized by NIST in 2001 (replacing DES), AES is a block cipher that operates on 128-bit blocks with key sizes of 128, 192, or 256 bits. It is used everywhere: TLS/HTTPS (symmetric bulk encryption), disk encryption (BitLocker, FileVault), Wi-Fi security (WPA2/WPA3-AES), VPNs, and database encryption. AES-256 is currently considered quantum-resistant with sufficient key size. RSA, DSA, and ECC are all asymmetric algorithms.
IncorrectC: AES (Advanced Encryption Standard)
AES (Advanced Encryption Standard) is the dominant symmetric encryption algorithm in use today. Standardized by NIST in 2001 (replacing DES), AES is a block cipher that operates on 128-bit blocks with key sizes of 128, 192, or 256 bits. It is used everywhere: TLS/HTTPS (symmetric bulk encryption), disk encryption (BitLocker, FileVault), Wi-Fi security (WPA2/WPA3-AES), VPNs, and database encryption. AES-256 is currently considered quantum-resistant with sufficient key size. RSA, DSA, and ECC are all asymmetric algorithms.
6Which of the following is a widely used Asymmetric encryption algorithm?
CorrectA: RSA (Rivest-Shamir-Adleman)
RSA (Rivest-Shamir-Adleman, 1977) is the most widely deployed asymmetric algorithm. It relies on the computational difficulty of factoring the product of two very large prime numbers. RSA is used for TLS certificate-based authentication, email encryption (PGP/S-MIME), digital signatures (code signing, document signing), and key encapsulation. Common RSA key sizes: 2048-bit (current minimum), 3072-bit, and 4096-bit. DES, AES, and ChaCha20 are all symmetric algorithms. RSA is being phased out in favor of ECC and post-quantum algorithms but remains extremely prevalent.
IncorrectA: RSA (Rivest-Shamir-Adleman)
RSA (Rivest-Shamir-Adleman, 1977) is the most widely deployed asymmetric algorithm. It relies on the computational difficulty of factoring the product of two very large prime numbers. RSA is used for TLS certificate-based authentication, email encryption (PGP/S-MIME), digital signatures (code signing, document signing), and key encapsulation. Common RSA key sizes: 2048-bit (current minimum), 3072-bit, and 4096-bit. DES, AES, and ChaCha20 are all symmetric algorithms. RSA is being phased out in favor of ECC and post-quantum algorithms but remains extremely prevalent.
7In an Asymmetric encryption system, how many keys does a single user need to generate to participate securely?
CorrectB: Two (A Public key and a Private key)
Each participant in an asymmetric encryption system generates exactly one key pair: a Public Key and a Private Key. These two keys are generated together as a mathematically linked pair β you cannot generate one without the other. The user's public key is distributed openly to anyone who needs it (via PKI certificates, email headers, key servers). The user's private key is kept exclusively secret by the owner and is never transmitted or shared. This two-key structure is the foundation of all asymmetric operations: encryption (public key), decryption (private key), digital signing (private key), and signature verification (public key).
IncorrectB: Two (A Public key and a Private key)
Each participant in an asymmetric encryption system generates exactly one key pair: a Public Key and a Private Key. These two keys are generated together as a mathematically linked pair β you cannot generate one without the other. The user's public key is distributed openly to anyone who needs it (via PKI certificates, email headers, key servers). The user's private key is kept exclusively secret by the owner and is never transmitted or shared. This two-key structure is the foundation of all asymmetric operations: encryption (public key), decryption (private key), digital signing (private key), and signature verification (public key).
8In Asymmetric encryption, what is the intended purpose of the Public Key?
CorrectD: To be freely distributed so others can encrypt messages meant specifically for the key owner
The public key is designed to be shared openly with anyone in the world β it can be published on a web page, embedded in a digital certificate, or uploaded to a public key server without any security risk. When someone wants to send a confidential message exclusively to the key owner, they encrypt it using the owner's public key. The resulting ciphertext can only be decrypted by the corresponding private key, which only the owner possesses. This asymmetric property solves the key distribution problem: no secret needs to be pre-shared, and anyone can securely encrypt a message to someone they have never met.
IncorrectD: To be freely distributed so others can encrypt messages meant specifically for the key owner
The public key is designed to be shared openly with anyone in the world β it can be published on a web page, embedded in a digital certificate, or uploaded to a public key server without any security risk. When someone wants to send a confidential message exclusively to the key owner, they encrypt it using the owner's public key. The resulting ciphertext can only be decrypted by the corresponding private key, which only the owner possesses. This asymmetric property solves the key distribution problem: no secret needs to be pre-shared, and anyone can securely encrypt a message to someone they have never met.
9In Asymmetric encryption, how must the Private Key be handled?
CorrectA: It must be kept strictly secret and never shared with anyone under any circumstances
The private key is the most sensitive asset in an asymmetric cryptosystem. It must remain exclusively in the possession of the owner and must never be shared, transmitted, or revealed to anyone β including the Certificate Authority that signs the public key certificate. Compromise of the private key completely invalidates the security model: an attacker with the private key can decrypt all historical and future confidential messages and forge digital signatures as if they were the legitimate owner. Private keys are protected via: password-based encryption (PKCS#8), Hardware Security Modules (HSMs), Trusted Platform Modules (TPM), or hardware tokens (YubiKey).
IncorrectA: It must be kept strictly secret and never shared with anyone under any circumstances
The private key is the most sensitive asset in an asymmetric cryptosystem. It must remain exclusively in the possession of the owner and must never be shared, transmitted, or revealed to anyone β including the Certificate Authority that signs the public key certificate. Compromise of the private key completely invalidates the security model: an attacker with the private key can decrypt all historical and future confidential messages and forge digital signatures as if they were the legitimate owner. Private keys are protected via: password-based encryption (PKCS#8), Hardware Security Modules (HSMs), Trusted Platform Modules (TPM), or hardware tokens (YubiKey).
10If Bob wants to send a digitally signed message to Alice, which key does Bob use to CREATE the digital signature?
CorrectC: Bob's Private Key
Digital signature creation uses the signer's own private key. Bob computes a hash of the message (e.g., SHA-256), then encrypts that hash with his private key β the result is the digital signature. The private key proves identity because only Bob controls it; no one else can produce a signature that verifiably came from Bob. To verify the signature, Alice uses Bob's public key to decrypt the signature back to the hash value, then computes the hash of the received message independently. If both hashes match, the signature is valid β proving both that Bob signed it (authentication) and that the message has not been altered (integrity). These properties together provide non-repudiation.
IncorrectC: Bob's Private Key
Digital signature creation uses the signer's own private key. Bob computes a hash of the message (e.g., SHA-256), then encrypts that hash with his private key β the result is the digital signature. The private key proves identity because only Bob controls it; no one else can produce a signature that verifiably came from Bob. To verify the signature, Alice uses Bob's public key to decrypt the signature back to the hash value, then computes the hash of the received message independently. If both hashes match, the signature is valid β proving both that Bob signed it (authentication) and that the message has not been altered (integrity). These properties together provide non-repudiation.
11Which of the following terms is a common synonym for Symmetric Encryption?
CorrectB: Secret-key cryptography
Symmetric encryption is commonly called Secret-key cryptography β reflecting the fact that the single key shared between parties must be kept secret. Other synonyms include: private-key cryptography (though this is ambiguous with asymmetric's private key), conventional cryptography (from its status as the oldest type), and shared-key cryptography. Public-key cryptography is the synonym for asymmetric encryption. Quantum cryptography (specifically Quantum Key Distribution/QKD) is a distinct technology that uses quantum mechanics to distribute symmetric keys. Ephemeral key exchange refers to the generation of temporary short-lived keys.
IncorrectB: Secret-key cryptography
Symmetric encryption is commonly called Secret-key cryptography β reflecting the fact that the single key shared between parties must be kept secret. Other synonyms include: private-key cryptography (though this is ambiguous with asymmetric's private key), conventional cryptography (from its status as the oldest type), and shared-key cryptography. Public-key cryptography is the synonym for asymmetric encryption. Quantum cryptography (specifically Quantum Key Distribution/QKD) is a distinct technology that uses quantum mechanics to distribute symmetric keys. Ephemeral key exchange refers to the generation of temporary short-lived keys.
12Which of the following terms is a common synonym for Asymmetric Encryption?
CorrectD: Public-key cryptography
Asymmetric encryption is universally known as Public-key cryptography β named for the defining innovation that one of the two keys (the public key) can be openly distributed without compromising security. This term was introduced by Whitfield Diffie and Martin Hellman in their landmark 1976 paper "New Directions in Cryptography," which first proposed the concept of key pairs. Block cipher cryptography and stream cipher cryptography are subclasses of symmetric encryption (not asymmetric). Single-key cryptography is a synonym for symmetric encryption β it highlights the use of one shared key.
IncorrectD: Public-key cryptography
Asymmetric encryption is universally known as Public-key cryptography β named for the defining innovation that one of the two keys (the public key) can be openly distributed without compromising security. This term was introduced by Whitfield Diffie and Martin Hellman in their landmark 1976 paper "New Directions in Cryptography," which first proposed the concept of key pairs. Block cipher cryptography and stream cipher cryptography are subclasses of symmetric encryption (not asymmetric). Single-key cryptography is a synonym for symmetric encryption β it highlights the use of one shared key.
13Which of the following is the most appropriate use case for Symmetric Encryption?
CorrectA: Encrypting a massive multi-terabyte database for secure long-term storage
Symmetric encryption is ideal for encrypting large data volumes at rest or in transit because of its high speed. Encrypting a multi-terabyte database with AES-256 is a common real-world use case: BitLocker (Windows full-disk encryption), FileVault (macOS), and dm-crypt (Linux) all use AES for this purpose. AES can process data at several gigabytes per second on modern hardware with AES-NI acceleration. Exchanging cryptographic parameters over an untrusted channel requires asymmetric cryptography or Diffie-Hellman (since you cannot securely distribute a symmetric key without a pre-existing secure channel). Server identity verification is done via digital certificates (asymmetric). Digital signatures for non-repudiation require asymmetric private keys.
IncorrectA: Encrypting a massive multi-terabyte database for secure long-term storage
Symmetric encryption is ideal for encrypting large data volumes at rest or in transit because of its high speed. Encrypting a multi-terabyte database with AES-256 is a common real-world use case: BitLocker (Windows full-disk encryption), FileVault (macOS), and dm-crypt (Linux) all use AES for this purpose. AES can process data at several gigabytes per second on modern hardware with AES-NI acceleration. Exchanging cryptographic parameters over an untrusted channel requires asymmetric cryptography or Diffie-Hellman (since you cannot securely distribute a symmetric key without a pre-existing secure channel). Server identity verification is done via digital certificates (asymmetric). Digital signatures for non-repudiation require asymmetric private keys.
14Which of the following is the most appropriate use case for Asymmetric Encryption?
CorrectC: Securely exchanging a session key over the internet to establish a secure communication channel
Securely exchanging a session key over the internet is the classic and most important use case for asymmetric encryption β specifically, it solves the key distribution problem for symmetric encryption. In TLS/HTTPS, asymmetric encryption or Diffie-Hellman is used during the handshake to establish a shared symmetric session key; all subsequent web traffic is encrypted with that faster symmetric key (hybrid encryption). Full-disk encryption (BitLocker, FileVault) uses AES (symmetric) due to performance requirements. Password hashing uses one-way hash functions (bcrypt, Argon2) β not encryption at all. Real-time VoIP streams require symmetric encryption (AES, ChaCha20) due to latency constraints.
IncorrectC: Securely exchanging a session key over the internet to establish a secure communication channel
Securely exchanging a session key over the internet is the classic and most important use case for asymmetric encryption β specifically, it solves the key distribution problem for symmetric encryption. In TLS/HTTPS, asymmetric encryption or Diffie-Hellman is used during the handshake to establish a shared symmetric session key; all subsequent web traffic is encrypted with that faster symmetric key (hybrid encryption). Full-disk encryption (BitLocker, FileVault) uses AES (symmetric) due to performance requirements. Password hashing uses one-way hash functions (bcrypt, Argon2) β not encryption at all. Real-time VoIP streams require symmetric encryption (AES, ChaCha20) due to latency constraints.
15Which of the following is considered an obsolete and insecure Symmetric encryption algorithm?
CorrectD: DES (Data Encryption Standard)
DES (Data Encryption Standard) is a 56-bit symmetric block cipher standardized in 1977. By 1999, DES was publicly broken: the EFF's "Deep Crack" machine (and its successor DESCracker) demonstrated that a 56-bit key could be exhaustively brute-forced in less than 22 hours for under $250,000. Today, commodity hardware can break DES in seconds. DES was replaced first by Triple DES (3DES), which applies DES three times β but 3DES is also being deprecated due to the SWEET32 birthday attack on 64-bit blocks. The current standard is AES (128/192/256-bit). ECC-256 and RSA-2048 are asymmetric algorithms, not symmetric.
IncorrectD: DES (Data Encryption Standard)
DES (Data Encryption Standard) is a 56-bit symmetric block cipher standardized in 1977. By 1999, DES was publicly broken: the EFF's "Deep Crack" machine (and its successor DESCracker) demonstrated that a 56-bit key could be exhaustively brute-forced in less than 22 hours for under $250,000. Today, commodity hardware can break DES in seconds. DES was replaced first by Triple DES (3DES), which applies DES three times β but 3DES is also being deprecated due to the SWEET32 birthday attack on 64-bit blocks. The current standard is AES (128/192/256-bit). ECC-256 and RSA-2048 are asymmetric algorithms, not symmetric.
16How is the key typically shared in a purely Symmetric encryption scenario?
CorrectB: It must be exchanged via a secure, out-of-band channel (e.g., a courier or a secure phone call)
In a purely symmetric scenario β without the help of asymmetric cryptography or Diffie-Hellman β the shared secret key must be exchanged via a separate, trusted, out-of-band channel. Examples: a courier physically delivering a key on USB, a secure encrypted phone call, or a pre-arranged in-person meeting. Government and military agencies historically used physical One-Time Pad key books delivered by diplomatic couriers. This requirement for out-of-band key exchange is precisely what makes symmetric encryption impractical for open internet communications at scale β which is why modern systems use asymmetric key exchange (TLS, PGP) or key agreement protocols (Diffie-Hellman) to establish the symmetric key.
IncorrectB: It must be exchanged via a secure, out-of-band channel (e.g., a courier or a secure phone call)
In a purely symmetric scenario β without the help of asymmetric cryptography or Diffie-Hellman β the shared secret key must be exchanged via a separate, trusted, out-of-band channel. Examples: a courier physically delivering a key on USB, a secure encrypted phone call, or a pre-arranged in-person meeting. Government and military agencies historically used physical One-Time Pad key books delivered by diplomatic couriers. This requirement for out-of-band key exchange is precisely what makes symmetric encryption impractical for open internet communications at scale β which is why modern systems use asymmetric key exchange (TLS, PGP) or key agreement protocols (Diffie-Hellman) to establish the symmetric key.
17If Alice encrypts a Word document using a Symmetric algorithm with the password "Secret123", what does Bob need to decrypt it?
CorrectC: The exact same password ("Secret123")
In symmetric encryption, decryption requires the exact same key used for encryption. When a password ("Secret123") is used, a Key Derivation Function (like PBKDF2 or Argon2) generates a fixed-length cryptographic key from that password, and it is this derived key that performs the actual AES encryption. To decrypt, Bob must provide the exact same password, which will generate the same derived key. This is why passwords for symmetric encryption must be communicated securely β via phone, text, or another secure channel β before or after sharing the encrypted file. Public keys, private keys, and CA certificates are all asymmetric concepts irrelevant to purely symmetric encryption.
IncorrectC: The exact same password ("Secret123")
In symmetric encryption, decryption requires the exact same key used for encryption. When a password ("Secret123") is used, a Key Derivation Function (like PBKDF2 or Argon2) generates a fixed-length cryptographic key from that password, and it is this derived key that performs the actual AES encryption. To decrypt, Bob must provide the exact same password, which will generate the same derived key. This is why passwords for symmetric encryption must be communicated securely β via phone, text, or another secure channel β before or after sharing the encrypted file. Public keys, private keys, and CA certificates are all asymmetric concepts irrelevant to purely symmetric encryption.
18If Bob signs a document with his Private Key, what does Alice use to VERIFY that the signature is authentic and actually came from Bob?
CorrectA: Bob's Public Key
Signature verification in asymmetric cryptography uses the signer's public key. Alice obtains Bob's public key (from a certificate, email header, or key server), uses it to decrypt the digital signature Bob attached, recovering the original hash value. She then independently calculates the hash of the received document. If the two hashes are identical, the signature is mathematically valid β proving: (1) Bob signed it (only he had the private key to create a signature decryptable with his public key), (2) the document has not been altered since signing (any change would produce a different hash). This verification process requires no secret β anyone with Bob's public key can verify his signatures.
IncorrectA: Bob's Public Key
Signature verification in asymmetric cryptography uses the signer's public key. Alice obtains Bob's public key (from a certificate, email header, or key server), uses it to decrypt the digital signature Bob attached, recovering the original hash value. She then independently calculates the hash of the received document. If the two hashes are identical, the signature is mathematically valid β proving: (1) Bob signed it (only he had the private key to create a signature decryptable with his public key), (2) the document has not been altered since signing (any change would produce a different hash). This verification process requires no secret β anyone with Bob's public key can verify his signatures.
19If Alice wants to send a highly confidential email to Bob using Asymmetric encryption, which key must she use to encrypt the email so ONLY Bob can read it?
CorrectD: Bob's Public Key
To send a message that only Bob can read, Alice must encrypt it with Bob's Public Key. This works because of the asymmetric mathematical relationship: data encrypted with Bob's public key can only be decrypted by Bob's corresponding private key, which only Bob possesses. Alice can obtain Bob's public key from any public source (his certificate, a key server, or his email footer) without any security risk, because the public key is designed to be shared openly. This solves the key distribution problem: Alice never needs to share a secret with Bob beforehand β his public key serves as a publicly-available "padlock" that anyone can use to lock a message only Bob can open.
IncorrectD: Bob's Public Key
To send a message that only Bob can read, Alice must encrypt it with Bob's Public Key. This works because of the asymmetric mathematical relationship: data encrypted with Bob's public key can only be decrypted by Bob's corresponding private key, which only Bob possesses. Alice can obtain Bob's public key from any public source (his certificate, a key server, or his email footer) without any security risk, because the public key is designed to be shared openly. This solves the key distribution problem: Alice never needs to share a secret with Bob beforehand β his public key serves as a publicly-available "padlock" that anyone can use to lock a message only Bob can open.
20When Bob receives the encrypted email from Alice (from the previous question), which key does he use to decrypt and read it?
CorrectB: Bob's Private Key
Bob uses his own Private Key to decrypt the message Alice encrypted with his public key. Only Bob's private key can unlock data that was locked with his public key β this mathematical asymmetry is the core of the RSA/ECC relationship. Bob's private key never leaves his possession; he never needs to share it with Alice, the mail server, or anyone. This is the fundamental advantage over symmetric encryption: Bob and Alice achieve confidential communication without having pre-shared any secret. The email traveled in a form that only Bob's private key can decrypt, even if intercepted by a third party.
IncorrectB: Bob's Private Key
Bob uses his own Private Key to decrypt the message Alice encrypted with his public key. Only Bob's private key can unlock data that was locked with his public key β this mathematical asymmetry is the core of the RSA/ECC relationship. Bob's private key never leaves his possession; he never needs to share it with Alice, the mail server, or anyone. This is the fundamental advantage over symmetric encryption: Bob and Alice achieve confidential communication without having pre-shared any secret. The email traveled in a form that only Bob's private key can decrypt, even if intercepted by a third party.
Symmetric vs. Asymmetric Encryption β Concepts
1What is "Hybrid Encryption"?
CorrectD: Using asymmetric encryption to securely exchange a symmetric session key, and then using that symmetric key to encrypt the bulk data payload
Hybrid encryption combines both types to exploit their complementary strengths: the key distribution advantage of asymmetric, and the speed advantage of symmetric. The process: (1) The sender generates a random symmetric session key (e.g., a 256-bit AES key). (2) The sender encrypts this symmetric key with the recipient's public key (using RSA or ECC). (3) The sender encrypts the actual data payload with the symmetric session key (using AES-GCM). (4) Both encrypted items are transmitted together. The recipient decrypts the symmetric key with their private key, then uses it to decrypt the data. TLS/HTTPS, PGP/GPG, and S/MIME all use this pattern β it is the standard architecture for all secure internet communications.
IncorrectD: Using asymmetric encryption to securely exchange a symmetric session key, and then using that symmetric key to encrypt the bulk data payload
Hybrid encryption combines both types to exploit their complementary strengths: the key distribution advantage of asymmetric, and the speed advantage of symmetric. The process: (1) The sender generates a random symmetric session key (e.g., a 256-bit AES key). (2) The sender encrypts this symmetric key with the recipient's public key (using RSA or ECC). (3) The sender encrypts the actual data payload with the symmetric session key (using AES-GCM). (4) Both encrypted items are transmitted together. The recipient decrypts the symmetric key with their private key, then uses it to decrypt the data. TLS/HTTPS, PGP/GPG, and S/MIME all use this pattern β it is the standard architecture for all secure internet communications.
2During a standard SSL/TLS handshake for HTTPS, how are Symmetric and Asymmetric encryption utilized?
CorrectB: Asymmetric encryption is used first to authenticate the server and exchange keys; symmetric encryption is used thereafter to encrypt the actual web traffic
TLS (Transport Layer Security) is the canonical real-world example of hybrid encryption. Phase 1 β Handshake (Asymmetric): the client verifies the server's digital certificate (RSA or ECDSA signature checked against a trusted CA), then uses the server's public key or Diffie-Hellman to establish a shared secret. Phase 2 β Bulk Data Transfer (Symmetric): from the shared secret, both sides derive matching symmetric session keys (typically AES-256-GCM). All HTTP requests and responses are encrypted with these symmetric keys at gigabit speeds. Using asymmetric encryption for all web traffic would be impossibly slow; using only symmetric would require pre-shared keys for every website visit.
IncorrectB: Asymmetric encryption is used first to authenticate the server and exchange keys; symmetric encryption is used thereafter to encrypt the actual web traffic
TLS (Transport Layer Security) is the canonical real-world example of hybrid encryption. Phase 1 β Handshake (Asymmetric): the client verifies the server's digital certificate (RSA or ECDSA signature checked against a trusted CA), then uses the server's public key or Diffie-Hellman to establish a shared secret. Phase 2 β Bulk Data Transfer (Symmetric): from the shared secret, both sides derive matching symmetric session keys (typically AES-256-GCM). All HTTP requests and responses are encrypted with these symmetric keys at gigabit speeds. Using asymmetric encryption for all web traffic would be impossibly slow; using only symmetric would require pre-shared keys for every website visit.
3To achieve a roughly equivalent level of security, how do the required key sizes of RSA (Asymmetric) compare to AES (Symmetric)?
CorrectA: RSA requires significantly larger keys (e.g., 2048 bits) than AES (e.g., 256 bits)
The security strength of a key is measured in "bits of security." According to NIST recommendations: AES-128 = 128 bits of security. AES-256 = 256 bits of security. RSA-2048 β 112 bits of security. RSA-3072 β 128 bits of security. RSA-15360 β 256 bits of security. To match the security of AES-256, an RSA key would need to be approximately 15,360 bits β impractically large. This disparity arises because RSA security is based on integer factorization (which has sub-exponential attack algorithms), while AES security is based on exhaustive key search (which has only exponential time complexity). This is another reason ECC (with smaller key sizes) is increasingly preferred over RSA.
IncorrectA: RSA requires significantly larger keys (e.g., 2048 bits) than AES (e.g., 256 bits)
The security strength of a key is measured in "bits of security." According to NIST recommendations: AES-128 = 128 bits of security. AES-256 = 256 bits of security. RSA-2048 β 112 bits of security. RSA-3072 β 128 bits of security. RSA-15360 β 256 bits of security. To match the security of AES-256, an RSA key would need to be approximately 15,360 bits β impractically large. This disparity arises because RSA security is based on integer factorization (which has sub-exponential attack algorithms), while AES security is based on exhaustive key search (which has only exponential time complexity). This is another reason ECC (with smaller key sizes) is increasingly preferred over RSA.
4What is the primary function of the Diffie-Hellman algorithm?
CorrectC: To allow two parties who have no prior knowledge of each other to securely establish a shared symmetric key over an insecure channel
Diffie-Hellman (DH), published in 1976 by Whitfield Diffie and Martin Hellman, was the first public-domain solution to the key distribution problem. It allows two parties who have never communicated before to establish a shared secret over a completely insecure channel (the internet) β even if every message is intercepted by an eavesdropper. The mathematics relies on the computational difficulty of the Discrete Logarithm Problem: Alice and Bob exchange public values derived from their private random numbers; the eavesdropper sees the public values but cannot compute the shared secret without solving the discrete log problem. The shared secret is then used as (or to derive) a symmetric encryption key. DH is a key agreement protocol, not an encryption algorithm.
IncorrectC: To allow two parties who have no prior knowledge of each other to securely establish a shared symmetric key over an insecure channel
Diffie-Hellman (DH), published in 1976 by Whitfield Diffie and Martin Hellman, was the first public-domain solution to the key distribution problem. It allows two parties who have never communicated before to establish a shared secret over a completely insecure channel (the internet) β even if every message is intercepted by an eavesdropper. The mathematics relies on the computational difficulty of the Discrete Logarithm Problem: Alice and Bob exchange public values derived from their private random numbers; the eavesdropper sees the public values but cannot compute the shared secret without solving the discrete log problem. The shared secret is then used as (or to derive) a symmetric encryption key. DH is a key agreement protocol, not an encryption algorithm.
5Which unique security property is provided by Asymmetric Encryption that Symmetric Encryption fundamentally CANNOT provide?
CorrectB: Non-repudiation
Non-repudiation is the property that a sender cannot later deny having sent or signed a message. Only asymmetric cryptography can provide this β specifically through digital signatures using the sender's private key. Because only Alice has access to her private key, a message signed with Alice's private key can only have come from Alice. She cannot repudiate (deny) it: anyone can verify the signature using her public key, and the mathematical proof is conclusive. Symmetric encryption cannot provide non-repudiation: if Alice and Bob share the same secret key, Bob could have produced any message encrypted with that key β so Alice cannot prove she created it specifically. Both symmetric and asymmetric encryption provide confidentiality. Integrity is provided by MACs (symmetric) and digital signatures (asymmetric).
IncorrectB: Non-repudiation
Non-repudiation is the property that a sender cannot later deny having sent or signed a message. Only asymmetric cryptography can provide this β specifically through digital signatures using the sender's private key. Because only Alice has access to her private key, a message signed with Alice's private key can only have come from Alice. She cannot repudiate (deny) it: anyone can verify the signature using her public key, and the mathematical proof is conclusive. Symmetric encryption cannot provide non-repudiation: if Alice and Bob share the same secret key, Bob could have produced any message encrypted with that key β so Alice cannot prove she created it specifically. Both symmetric and asymmetric encryption provide confidentiality. Integrity is provided by MACs (symmetric) and digital signatures (asymmetric).
6In the realm of Symmetric cryptography, what is the difference between a Block Cipher and a Stream Cipher?
CorrectD: Block ciphers encrypt data in fixed-size chunks; stream ciphers encrypt data continuously bit-by-bit
Block Ciphers (AES, 3DES, Blowfish, Twofish) divide the plaintext into fixed-size blocks (AES: 128 bits) and encrypt each block using a transformation that depends on the key. Block modes address how consecutive blocks are chained: ECB, CBC, CTR, GCM. Stream Ciphers (ChaCha20, RC4) generate a pseudo-random keystream of the same length as the message and XOR it with the plaintext bit-by-bit (or byte-by-byte). Stream ciphers are inherently suited to real-time or variable-length data (network streams, audio, video) because they do not require padding. AES in CTR or GCM mode effectively turns a block cipher into a stream cipher. RC4 (a legacy stream cipher) is now deprecated due to statistical biases. ChaCha20 is the modern, secure stream cipher.
IncorrectD: Block ciphers encrypt data in fixed-size chunks; stream ciphers encrypt data continuously bit-by-bit
Block Ciphers (AES, 3DES, Blowfish, Twofish) divide the plaintext into fixed-size blocks (AES: 128 bits) and encrypt each block using a transformation that depends on the key. Block modes address how consecutive blocks are chained: ECB, CBC, CTR, GCM. Stream Ciphers (ChaCha20, RC4) generate a pseudo-random keystream of the same length as the message and XOR it with the plaintext bit-by-bit (or byte-by-byte). Stream ciphers are inherently suited to real-time or variable-length data (network streams, audio, video) because they do not require padding. AES in CTR or GCM mode effectively turns a block cipher into a stream cipher. RC4 (a legacy stream cipher) is now deprecated due to statistical biases. ChaCha20 is the modern, secure stream cipher.
7What is the fixed block size utilized by the AES (Advanced Encryption Standard) symmetric algorithm?
CorrectA: 128 bits
AES always operates on fixed 128-bit (16-byte) blocks β this is non-negotiable and does not change regardless of the key size. The key size (128, 192, or 256 bits) affects the number of encryption rounds (10, 12, or 14 rounds respectively) and the strength against brute-force attacks, but the block size is always 128 bits. If plaintext is not a multiple of 128 bits, padding is added (PKCS#7 padding). Legacy block ciphers like DES and 3DES used 64-bit blocks β which makes them vulnerable to demonstrable birthday attacks (SWEET32) at scale. The 512-bit block size applies to some hash functions (SHA-512 internal state) but not to AES.
IncorrectA: 128 bits
AES always operates on fixed 128-bit (16-byte) blocks β this is non-negotiable and does not change regardless of the key size. The key size (128, 192, or 256 bits) affects the number of encryption rounds (10, 12, or 14 rounds respectively) and the strength against brute-force attacks, but the block size is always 128 bits. If plaintext is not a multiple of 128 bits, padding is added (PKCS#7 padding). Legacy block ciphers like DES and 3DES used 64-bit blocks β which makes them vulnerable to demonstrable birthday attacks (SWEET32) at scale. The 512-bit block size applies to some hash functions (SHA-512 internal state) but not to AES.
8What is the purpose of a Public Key Infrastructure (PKI) in relation to asymmetric encryption?
CorrectC: It manages the issuance, distribution, and revocation of digital certificates that bind public keys to specific identities
PKI (Public Key Infrastructure) solves the critical trust problem in asymmetric cryptography: how do you verify that a public key actually belongs to who it claims to belong to? Without PKI, an attacker could publish a fake public key claiming to be "amazon.com." PKI's answer: Certificate Authorities (CAs) digitally sign digital certificates that bind a public key to a verified identity (domain name, organization, or person). Your browser trusts a list of Root CAs (Mozilla, Google) β and by extension, any certificate signed by those CAs. PKI also manages certificate lifecycle: issuance (CSR β signed certificate), distribution (via HTTPS headers, OCSP, CRL), and revocation (OCSP and Certificate Revocation Lists for compromised/expired certificates).
IncorrectC: It manages the issuance, distribution, and revocation of digital certificates that bind public keys to specific identities
PKI (Public Key Infrastructure) solves the critical trust problem in asymmetric cryptography: how do you verify that a public key actually belongs to who it claims to belong to? Without PKI, an attacker could publish a fake public key claiming to be "amazon.com." PKI's answer: Certificate Authorities (CAs) digitally sign digital certificates that bind a public key to a verified identity (domain name, organization, or person). Your browser trusts a list of Root CAs (Mozilla, Google) β and by extension, any certificate signed by those CAs. PKI also manages certificate lifecycle: issuance (CSR β signed certificate), distribution (via HTTPS headers, OCSP, CRL), and revocation (OCSP and Certificate Revocation Lists for compromised/expired certificates).
9The security of the RSA asymmetric algorithm relies fundamentally on which mathematical difficulty?
CorrectB: The computational difficulty of factoring the product of two very large prime numbers
RSA security is founded on the Integer Factorization Problem: given N = p Γ q (the product of two large prime numbers), it is computationally infeasible to determine p and q when N is sufficiently large. RSA key generation selects two large secret primes (p and q, each ~1024 bits for RSA-2048), computes N = p Γ q (the public modulus), and derives the public exponent e and private exponent d from the primes' properties. Encryption uses: c = m^e mod N. Decryption uses: m = c^d mod N. The public key is (N, e); the private key is d. Factoring a 2048-bit N on classical computers would take longer than the age of the universe with current algorithms β but Shor's Algorithm on a quantum computer could factor it in polynomial time.
IncorrectB: The computational difficulty of factoring the product of two very large prime numbers
RSA security is founded on the Integer Factorization Problem: given N = p Γ q (the product of two large prime numbers), it is computationally infeasible to determine p and q when N is sufficiently large. RSA key generation selects two large secret primes (p and q, each ~1024 bits for RSA-2048), computes N = p Γ q (the public modulus), and derives the public exponent e and private exponent d from the primes' properties. Encryption uses: c = m^e mod N. Decryption uses: m = c^d mod N. The public key is (N, e); the private key is d. Factoring a 2048-bit N on classical computers would take longer than the age of the universe with current algorithms β but Shor's Algorithm on a quantum computer could factor it in polynomial time.
10What is the primary advantage of Elliptic Curve Cryptography (ECC) over RSA?
CorrectD: It provides equivalent cryptographic strength using significantly smaller key sizes, reducing computational overhead
ECC's primary advantage is achieving the same security level as RSA with dramatically smaller key sizes. Key size comparison for equivalent security: 80-bit security: RSA-1024 vs. ECC-160. 128-bit security: RSA-3072 vs. ECC-256. 256-bit security: RSA-15360 vs. ECC-521. Smaller keys mean: faster computation (critical for TLS handshakes on mobile devices), smaller certificate sizes (less bandwidth), and lower memory/storage requirements. ECC is based on the Elliptic Curve Discrete Logarithm Problem (ECDLP) β a different mathematical structure from RSA's factorization. Note: while ECC is harder to break classically, like RSA, it is also vulnerable to Shor's Algorithm on quantum computers. Post-Quantum Cryptography (lattice-based) will replace both.
IncorrectD: It provides equivalent cryptographic strength using significantly smaller key sizes, reducing computational overhead
ECC's primary advantage is achieving the same security level as RSA with dramatically smaller key sizes. Key size comparison for equivalent security: 80-bit security: RSA-1024 vs. ECC-160. 128-bit security: RSA-3072 vs. ECC-256. 256-bit security: RSA-15360 vs. ECC-521. Smaller keys mean: faster computation (critical for TLS handshakes on mobile devices), smaller certificate sizes (less bandwidth), and lower memory/storage requirements. ECC is based on the Elliptic Curve Discrete Logarithm Problem (ECDLP) β a different mathematical structure from RSA's factorization. Note: while ECC is harder to break classically, like RSA, it is also vulnerable to Shor's Algorithm on quantum computers. Post-Quantum Cryptography (lattice-based) will replace both.
11What is the formula to calculate the number of symmetric keys required for 'N' users to all communicate securely with each other?
CorrectA: N(N-1) / 2
For N users to communicate symmetrically, every pair of users needs a unique shared key (sharing one key across all users would be insecure β any user could read any other user's messages). The number of unique pairs of N items is the combination formula: N(N-1)/2. For 3 users: 3Γ2/2 = 3 keys. For 10 users: 10Γ9/2 = 45 keys. For 100 users: 100Γ99/2 = 4,950 keys. For 1,000 users: 499,500 keys. This quadratic growth (O(NΒ²)) makes symmetric key management completely unscalable for large groups. This exponential key proliferation problem is precisely what asymmetric cryptography solves: with asymmetric, each N user needs exactly 2 keys (a key pair), meaning only 2N total keys regardless of group size.
IncorrectA: N(N-1) / 2
For N users to communicate symmetrically, every pair of users needs a unique shared key (sharing one key across all users would be insecure β any user could read any other user's messages). The number of unique pairs of N items is the combination formula: N(N-1)/2. For 3 users: 3Γ2/2 = 3 keys. For 10 users: 10Γ9/2 = 45 keys. For 100 users: 100Γ99/2 = 4,950 keys. For 1,000 users: 499,500 keys. This quadratic growth (O(NΒ²)) makes symmetric key management completely unscalable for large groups. This exponential key proliferation problem is precisely what asymmetric cryptography solves: with asymmetric, each N user needs exactly 2 keys (a key pair), meaning only 2N total keys regardless of group size.
12What is the formula to calculate the total number of asymmetric keys required for 'N' users to all communicate securely with each other?
CorrectC: 2N
In an asymmetric system, each user generates exactly one key pair: one public key + one private key = 2 keys per user. N users therefore require a total of 2N keys. For 3 users: 6 keys. For 100 users: 200 keys. For 1,000 users: 2,000 keys. This linear scaling (O(N)) is dramatically more manageable than the symmetric model's O(NΒ²). Each user publishes their public key (freely distributable) and protects their private key. Any pair of users can communicate confidentially using each other's public keys without any pre-arranged shared secret. This linear scalability is the foundational reason the internet's secure communication infrastructure is built on asymmetric cryptography.
IncorrectC: 2N
In an asymmetric system, each user generates exactly one key pair: one public key + one private key = 2 keys per user. N users therefore require a total of 2N keys. For 3 users: 6 keys. For 100 users: 200 keys. For 1,000 users: 2,000 keys. This linear scaling (O(N)) is dramatically more manageable than the symmetric model's O(NΒ²). Each user publishes their public key (freely distributable) and protects their private key. Any pair of users can communicate confidentially using each other's public keys without any pre-arranged shared secret. This linear scalability is the foundational reason the internet's secure communication infrastructure is built on asymmetric cryptography.
13In an Asymmetric system, what is the role of a Certificate Authority (CA)?
CorrectB: To digitally sign the user's public key certificate, vouching for their identity
A Certificate Authority (CA) is a trusted third party in the PKI system that vouches for the binding between a public key and an identity. The process: the domain owner generates a key pair, submits a Certificate Signing Request (CSR) containing their public key and identity information, the CA verifies the identity through Domain Validation (DV), Organization Validation (OV), or Extended Validation (EV) processes, and signs the certificate with the CA's own private key. Browsers trust a set of root CAs (DigiCert, Let's Encrypt, Comodo). When you visit HTTPS websites, your browser verifies the server's certificate chain back to a trusted root CA. If the CA's private key is compromised (DigiNotar breach, 2011), all certificates it signed must be immediately revoked.
IncorrectB: To digitally sign the user's public key certificate, vouching for their identity
A Certificate Authority (CA) is a trusted third party in the PKI system that vouches for the binding between a public key and an identity. The process: the domain owner generates a key pair, submits a Certificate Signing Request (CSR) containing their public key and identity information, the CA verifies the identity through Domain Validation (DV), Organization Validation (OV), or Extended Validation (EV) processes, and signs the certificate with the CA's own private key. Browsers trust a set of root CAs (DigiCert, Let's Encrypt, Comodo). When you visit HTTPS websites, your browser verifies the server's certificate chain back to a trusted root CA. If the CA's private key is compromised (DigiNotar breach, 2011), all certificates it signed must be immediately revoked.
14Which of the following is an example of Authenticated Encryption with Associated Data (AEAD), a modern symmetric encryption mode?
CorrectA: AES-GCM (Galois/Counter Mode)
AES-GCM (Galois/Counter Mode) is the dominant AEAD mode in modern cryptographic protocols (TLS 1.3, SSH, WireGuard, QUIC, Signal Protocol). AEAD provides both: Encryption (confidentiality β the "AE" part) and Authentication via a MAC tag (integrity and authenticity β ensuring the ciphertext has not been tampered with). The "AD" part allows Additional Data (like packet headers) to be authenticated but not encrypted. AES-GCM combines AES in CTR mode (for speed and streaming capability) with a GHASH authentication function. The authentication tag detects any bit-level tampering with the ciphertext. RSA-OAEP is an asymmetric padding scheme. AES-ECB is an insecure mode (no chaining β identical blocks produce identical ciphertext). ECDHE is a key agreement protocol, not a symmetric mode.
IncorrectA: AES-GCM (Galois/Counter Mode)
AES-GCM (Galois/Counter Mode) is the dominant AEAD mode in modern cryptographic protocols (TLS 1.3, SSH, WireGuard, QUIC, Signal Protocol). AEAD provides both: Encryption (confidentiality β the "AE" part) and Authentication via a MAC tag (integrity and authenticity β ensuring the ciphertext has not been tampered with). The "AD" part allows Additional Data (like packet headers) to be authenticated but not encrypted. AES-GCM combines AES in CTR mode (for speed and streaming capability) with a GHASH authentication function. The authentication tag detects any bit-level tampering with the ciphertext. RSA-OAEP is an asymmetric padding scheme. AES-ECB is an insecure mode (no chaining β identical blocks produce identical ciphertext). ECDHE is a key agreement protocol, not a symmetric mode.
15What is the primary reason why "Out-of-Band" key exchange is problematic for large-scale symmetric encryption deployments?
CorrectD: It requires exchanging the key via a separate, secure channel (like physically meeting), which is unscalable for global internet communications
Out-of-band key exchange means the symmetric key must be transmitted through a completely separate, secure channel that is independent of the channel you intend to protect. This might mean physically meeting, sending via encrypted postal mail, or using a separate secure phone call. While feasible for a small, well-defined group of communicators, it is fundamentally unscalable for the internet: you cannot physically meet with amazon.com's servers, your bank's web server, or every email correspondent worldwide. The internet requires being able to establish secure communications with arbitrary new parties dynamically β which out-of-band symmetric key exchange architecturally cannot support. This is the core motivation for Diffie-Hellman and asymmetric PKI.
IncorrectD: It requires exchanging the key via a separate, secure channel (like physically meeting), which is unscalable for global internet communications
Out-of-band key exchange means the symmetric key must be transmitted through a completely separate, secure channel that is independent of the channel you intend to protect. This might mean physically meeting, sending via encrypted postal mail, or using a separate secure phone call. While feasible for a small, well-defined group of communicators, it is fundamentally unscalable for the internet: you cannot physically meet with amazon.com's servers, your bank's web server, or every email correspondent worldwide. The internet requires being able to establish secure communications with arbitrary new parties dynamically β which out-of-band symmetric key exchange architecturally cannot support. This is the core motivation for Diffie-Hellman and asymmetric PKI.
16In Asymmetric cryptography, how are the public and private keys generated?
CorrectC: They are generated simultaneously as a mathematically linked pair using a specific algorithm
The public and private keys in asymmetric cryptography are generated together as a mathematically inseparable pair. They cannot be generated independently β the algorithm produces both simultaneously through a complex mathematical process. For RSA: two large random primes p and q are selected; N = pΓq (public modulus); then public exponent e and private exponent d are derived from p, q, and e through modular arithmetic (Euler's totient function). The relationship between e and d (ed β‘ 1 mod Ο(N)) means they are mathematically coupled. For ECC: a random private key scalar k is selected; the public key point P = k Γ G (G is the generator point of the curve). The keys are linked β but given only the public key, deriving the private key is computationally infeasible.
IncorrectC: They are generated simultaneously as a mathematically linked pair using a specific algorithm
The public and private keys in asymmetric cryptography are generated together as a mathematically inseparable pair. They cannot be generated independently β the algorithm produces both simultaneously through a complex mathematical process. For RSA: two large random primes p and q are selected; N = pΓq (public modulus); then public exponent e and private exponent d are derived from p, q, and e through modular arithmetic (Euler's totient function). The relationship between e and d (ed β‘ 1 mod Ο(N)) means they are mathematically coupled. For ECC: a random private key scalar k is selected; the public key point P = k Γ G (G is the generator point of the curve). The keys are linked β but given only the public key, deriving the private key is computationally infeasible.
17Which of the following are modes of operation specifically associated with Symmetric block ciphers?
CorrectB: CBC, ECB, CTR
Block cipher modes of operation define how a block cipher (like AES) processes plaintext longer than a single block. ECB (Electronic Codebook): each block is encrypted independently β insecure because identical plaintext blocks produce identical ciphertext blocks (the ECB penguin attack). CBC (Cipher Block Chaining): each plaintext block is XORed with the previous ciphertext block before encryption, requiring an IV β vulnerable to padding oracle attacks. CTR (Counter Mode): converts AES into a stream cipher by encrypting successive counter values and XORing with plaintext; parallelizable. GCM (Galois/Counter Mode): CTR + authentication tag (AEAD). SHA-1/SHA-2/MD5 are hash functions. RSA/DSA/ECC are asymmetric algorithms. IKE/ESP/AH are IPsec protocol components.
IncorrectB: CBC, ECB, CTR
Block cipher modes of operation define how a block cipher (like AES) processes plaintext longer than a single block. ECB (Electronic Codebook): each block is encrypted independently β insecure because identical plaintext blocks produce identical ciphertext blocks (the ECB penguin attack). CBC (Cipher Block Chaining): each plaintext block is XORed with the previous ciphertext block before encryption, requiring an IV β vulnerable to padding oracle attacks. CTR (Counter Mode): converts AES into a stream cipher by encrypting successive counter values and XORing with plaintext; parallelizable. GCM (Galois/Counter Mode): CTR + authentication tag (AEAD). SHA-1/SHA-2/MD5 are hash functions. RSA/DSA/ECC are asymmetric algorithms. IKE/ESP/AH are IPsec protocol components.
18Why is Asymmetric encryption almost never used to encrypt large databases or massive files directly?
CorrectD: Because the complex mathematics make it far too slow and computationally expensive for bulk data
Asymmetric encryption's performance is its critical limitation for bulk data: RSA and ECC operations involve modular exponentiation of very large numbers, which is orders of magnitude slower than AES's bitwise substitution/permutation operations. RSA-2048 can encrypt roughly 245 bytes per operation. Encrypting a 1 GB file with RSA alone would take an impractical amount of time versus milliseconds with AES. Additionally, RSA has a fundamental constraint: it can only directly encrypt data smaller than the key size minus padding (e.g., RSA-2048 with OAEP can encrypt at most ~214 bytes at once). This is why asymmetric cryptography is always used in hybrid fashion: it encrypts only the small symmetric key (AES-256 = 32 bytes), which AES then uses to encrypt the actual data.
IncorrectD: Because the complex mathematics make it far too slow and computationally expensive for bulk data
Asymmetric encryption's performance is its critical limitation for bulk data: RSA and ECC operations involve modular exponentiation of very large numbers, which is orders of magnitude slower than AES's bitwise substitution/permutation operations. RSA-2048 can encrypt roughly 245 bytes per operation. Encrypting a 1 GB file with RSA alone would take an impractical amount of time versus milliseconds with AES. Additionally, RSA has a fundamental constraint: it can only directly encrypt data smaller than the key size minus padding (e.g., RSA-2048 with OAEP can encrypt at most ~214 bytes at once). This is why asymmetric cryptography is always used in hybrid fashion: it encrypts only the small symmetric key (AES-256 = 32 bytes), which AES then uses to encrypt the actual data.
19What is "Perfect Forward Secrecy" (PFS) in the context of hybrid encryption?
CorrectA: Using temporary, ephemeral asymmetric keys for each session, ensuring that if a long-term private key is compromised, past session traffic cannot be decrypted
Perfect Forward Secrecy (PFS) β also called Forward Secrecy (FS) β addresses a critical vulnerability in traditional key exchange: if a server's long-term RSA private key is stolen (breach, legal order, or hardware seizure), an attacker who recorded past encrypted TLS sessions can retroactively decrypt all of them using that private key. PFS prevents this by generating a fresh, throwaway Diffie-Hellman or ECDHE key pair for every TLS session. The session key is derived from the ephemeral DH exchange, used for the session's symmetric encryption, and then discarded β never stored. Even if the server's long-term certificate private key is later compromised, the attacker cannot decrypt past sessions because the ephemeral keys no longer exist. PFS is mandatory in TLS 1.3; ECDHE is the standard cipher suite.
IncorrectA: Using temporary, ephemeral asymmetric keys for each session, ensuring that if a long-term private key is compromised, past session traffic cannot be decrypted
Perfect Forward Secrecy (PFS) β also called Forward Secrecy (FS) β addresses a critical vulnerability in traditional key exchange: if a server's long-term RSA private key is stolen (breach, legal order, or hardware seizure), an attacker who recorded past encrypted TLS sessions can retroactively decrypt all of them using that private key. PFS prevents this by generating a fresh, throwaway Diffie-Hellman or ECDHE key pair for every TLS session. The session key is derived from the ephemeral DH exchange, used for the session's symmetric encryption, and then discarded β never stored. Even if the server's long-term certificate private key is later compromised, the attacker cannot decrypt past sessions because the ephemeral keys no longer exist. PFS is mandatory in TLS 1.3; ECDHE is the standard cipher suite.
20How does a Hash Function differ from both Symmetric and Asymmetric encryption?
CorrectC: Hashing is a one-way mathematical function that cannot be decrypted or reversed, whereas encryption is specifically designed to be two-way and reversible
Hashing is fundamentally different from encryption in one critical way: a hash function is one-way (irreversible). Given a hash output (digest), it is computationally infeasible to reconstruct the original input. In contrast, both symmetric and asymmetric encryption are two-way processes designed to be reversible with the correct key. Hash functions (SHA-256, SHA-3, BLAKE2) have no key and produce a fixed-length fingerprint of arbitrary input data β any change in the input produces a completely different digest. Use cases for hashing: password storage (stored as bcrypt/Argon2 hashes, never encrypted), data integrity verification (file checksums), and the core component of digital signatures (sign the hash, not the full document). Combining a hash with a secret key gives a Message Authentication Code (HMAC).
IncorrectC: Hashing is a one-way mathematical function that cannot be decrypted or reversed, whereas encryption is specifically designed to be two-way and reversible
Hashing is fundamentally different from encryption in one critical way: a hash function is one-way (irreversible). Given a hash output (digest), it is computationally infeasible to reconstruct the original input. In contrast, both symmetric and asymmetric encryption are two-way processes designed to be reversible with the correct key. Hash functions (SHA-256, SHA-3, BLAKE2) have no key and produce a fixed-length fingerprint of arbitrary input data β any change in the input produces a completely different digest. Use cases for hashing: password storage (stored as bcrypt/Argon2 hashes, never encrypted), data integrity verification (file checksums), and the core component of digital signatures (sign the hash, not the full document). Combining a hash with a secret key gives a Message Authentication Code (HMAC).
Symmetric vs. Asymmetric Encryption β Advanced
1While RSA relies on integer factorization, what mathematical problem does Elliptic Curve Cryptography (ECC) rely on?
CorrectC: The elliptic curve discrete logarithm problem (ECDLP)
ECC security is based on the Elliptic Curve Discrete Logarithm Problem (ECDLP): given points P and Q on an elliptic curve where Q = k Γ P (k is a scalar, P is a known generator point, and Γ denotes elliptic curve point multiplication), compute the scalar k. While iterating the scalar multiplication in one direction (computing Q from k and P) is computationally cheap, reversing it β finding k given only P and Q β is computationally infeasible for properly sized curves. This "trapdoor function" is the security foundation of ECDH, ECDSA, and ECDHE. The discrete logarithm problem in a finite field (option B) is the foundation of original Diffie-Hellman (in Z_p), not ECC specifically. The shortest vector problem (option D) is the basis of lattice-based post-quantum cryptography.
IncorrectC: The elliptic curve discrete logarithm problem (ECDLP)
ECC security is based on the Elliptic Curve Discrete Logarithm Problem (ECDLP): given points P and Q on an elliptic curve where Q = k Γ P (k is a scalar, P is a known generator point, and Γ denotes elliptic curve point multiplication), compute the scalar k. While iterating the scalar multiplication in one direction (computing Q from k and P) is computationally cheap, reversing it β finding k given only P and Q β is computationally infeasible for properly sized curves. This "trapdoor function" is the security foundation of ECDH, ECDSA, and ECDHE. The discrete logarithm problem in a finite field (option B) is the foundation of original Diffie-Hellman (in Z_p), not ECC specifically. The shortest vector problem (option D) is the basis of lattice-based post-quantum cryptography.
2Which theoretical quantum computing algorithm threatens to break both RSA and ECC asymmetric encryption by efficiently solving integer factorization and discrete logarithms?
CorrectA: Shor's Algorithm
Shor's Algorithm (Peter Shor, 1994) is a quantum algorithm that can solve the Integer Factorization Problem (underlying RSA) and the Discrete Logarithm Problem (underlying DH, DSA, and ECC β including ECDLP) in polynomial time on a quantum computer β compared to the sub-exponential or exponential time required on classical computers. A quantum computer with sufficient fault-tolerant qubits running Shor's Algorithm would break every currently deployed asymmetric cryptosystem. NIST finalized four Post-Quantum Cryptography standards in 2024 (ML-KEM, ML-DSA, SLH-DSA, FALCON) to replace RSA, ECC, and DH before cryptographically relevant quantum computers emerge. Grover's Algorithm is a separate quantum algorithm that threatens symmetric encryption (not asymmetric). The Euclidean Algorithm is a classical number theory algorithm used in RSA key generation β not an attack.
IncorrectA: Shor's Algorithm
Shor's Algorithm (Peter Shor, 1994) is a quantum algorithm that can solve the Integer Factorization Problem (underlying RSA) and the Discrete Logarithm Problem (underlying DH, DSA, and ECC β including ECDLP) in polynomial time on a quantum computer β compared to the sub-exponential or exponential time required on classical computers. A quantum computer with sufficient fault-tolerant qubits running Shor's Algorithm would break every currently deployed asymmetric cryptosystem. NIST finalized four Post-Quantum Cryptography standards in 2024 (ML-KEM, ML-DSA, SLH-DSA, FALCON) to replace RSA, ECC, and DH before cryptographically relevant quantum computers emerge. Grover's Algorithm is a separate quantum algorithm that threatens symmetric encryption (not asymmetric). The Euclidean Algorithm is a classical number theory algorithm used in RSA key generation β not an attack.
3How does Grover's Algorithm (in quantum computing) specifically threaten Symmetric encryption algorithms like AES?
CorrectB: It drastically reduces the brute-force time, effectively halving the security strength of the key (e.g., reducing AES-256 to AES-128 equivalent strength)
Grover's Algorithm is a quantum database search algorithm that can search an unsorted database of N items in βN steps instead of classical N/2 average steps. Applied to symmetric key brute-force: classically, breaking a 256-bit key requires 2^256 operations. Grover's Algorithm reduces this to β(2^256) = 2^128 operations β equivalent to the classical security of a 128-bit key. This effectively halves the security strength in bits. The cryptographic community's response: simply double the key size. AES-256 with Grover's Attack = 2^128 security β still considered computationally infeasible. This is why NIST recommends AES-256 (gives 128-bit post-quantum security) rather than AES-128 (which would drop to 64-bit post-quantum security β broken). Note that Grover's Algorithm is a much milder threat than Shor's: Shor's completely breaks asymmetric; Grover's only halves symmetric key security.
IncorrectB: It drastically reduces the brute-force time, effectively halving the security strength of the key (e.g., reducing AES-256 to AES-128 equivalent strength)
Grover's Algorithm is a quantum database search algorithm that can search an unsorted database of N items in βN steps instead of classical N/2 average steps. Applied to symmetric key brute-force: classically, breaking a 256-bit key requires 2^256 operations. Grover's Algorithm reduces this to β(2^256) = 2^128 operations β equivalent to the classical security of a 128-bit key. This effectively halves the security strength in bits. The cryptographic community's response: simply double the key size. AES-256 with Grover's Attack = 2^128 security β still considered computationally infeasible. This is why NIST recommends AES-256 (gives 128-bit post-quantum security) rather than AES-128 (which would drop to 64-bit post-quantum security β broken). Note that Grover's Algorithm is a much milder threat than Shor's: Shor's completely breaks asymmetric; Grover's only halves symmetric key security.
4In modern TLS 1.3 implementations, why is ECDHE overwhelmingly preferred over traditional RSA key exchange?
CorrectD: ECDHE provides Perfect Forward Secrecy via ephemeral keys, whereas traditional RSA key exchange does not
Traditional RSA key exchange (used in TLS 1.2 and earlier) works as follows: the client generates a random Pre-Master Secret, encrypts it with the server's long-term RSA public key (from its certificate), and sends it to the server. The server decrypts with its RSA private key. This means: if the server's private key is ever compromised (years later), every recorded TLS session protected with that key can be retroactively decrypted ("harvest now, decrypt later"). ECDHE (Elliptic Curve Diffie-Hellman Ephemeral) generates a fresh throwaway EC key pair for every TLS session. The shared secret is derived from this ephemeral exchange and then discarded. Compromising the server's long-term certificate private key does not help decrypt past ECDHE sessions. This is Perfect Forward Secrecy. TLS 1.3 completely removed non-PFS key exchange methods (RSA key transport, static DH).
IncorrectD: ECDHE provides Perfect Forward Secrecy via ephemeral keys, whereas traditional RSA key exchange does not
Traditional RSA key exchange (used in TLS 1.2 and earlier) works as follows: the client generates a random Pre-Master Secret, encrypts it with the server's long-term RSA public key (from its certificate), and sends it to the server. The server decrypts with its RSA private key. This means: if the server's private key is ever compromised (years later), every recorded TLS session protected with that key can be retroactively decrypted ("harvest now, decrypt later"). ECDHE (Elliptic Curve Diffie-Hellman Ephemeral) generates a fresh throwaway EC key pair for every TLS session. The shared secret is derived from this ephemeral exchange and then discarded. Compromising the server's long-term certificate private key does not help decrypt past ECDHE sessions. This is Perfect Forward Secrecy. TLS 1.3 completely removed non-PFS key exchange methods (RSA key transport, static DH).
5Which of the following is a classic attack against Symmetric block ciphers operating in Cipher Block Chaining (CBC) mode?
CorrectC: Padding Oracle Attack
The Padding Oracle Attack exploits a specific vulnerability in CBC mode encryption when the system provides different error messages (or timing differences) for invalid vs. valid padding. CBC mode requires plaintext to be padded (PKCS#7) to a multiple of the block size before encryption. When decrypting, the system validates the padding β and in a vulnerable implementation, it reveals whether the padding was valid via a distinct error message. By sending carefully crafted ciphertexts and observing padding error responses ("oracle" = an entity that answers questions), an attacker can iteratively decrypt the ciphertext byte-by-byte without knowing the key. POODLE (SSL 3.0, 2014) and BEAST (TLS 1.0, 2011) exploited CBC padding oracles. Solution: use AEAD modes (AES-GCM, ChaCha20-Poly1305) that authenticate before decrypting, eliminating padding oracle surface. Birthday attacks target hash collisions. Pass-the-Hash reuses stolen password hashes. Length extension attacks target certain hash constructions.
IncorrectC: Padding Oracle Attack
The Padding Oracle Attack exploits a specific vulnerability in CBC mode encryption when the system provides different error messages (or timing differences) for invalid vs. valid padding. CBC mode requires plaintext to be padded (PKCS#7) to a multiple of the block size before encryption. When decrypting, the system validates the padding β and in a vulnerable implementation, it reveals whether the padding was valid via a distinct error message. By sending carefully crafted ciphertexts and observing padding error responses ("oracle" = an entity that answers questions), an attacker can iteratively decrypt the ciphertext byte-by-byte without knowing the key. POODLE (SSL 3.0, 2014) and BEAST (TLS 1.0, 2011) exploited CBC padding oracles. Solution: use AEAD modes (AES-GCM, ChaCha20-Poly1305) that authenticate before decrypting, eliminating padding oracle surface. Birthday attacks target hash collisions. Pass-the-Hash reuses stolen password hashes. Length extension attacks target certain hash constructions.
6What is the critical purpose of an Initialization Vector (IV) or Nonce in Symmetric encryption?
CorrectA: To inject randomization into the first block, ensuring that identical plaintexts encrypted with the same key produce completely different ciphertexts
An IV (Initialization Vector) or Nonce (Number Used Once) provides semantic security: without it, encrypting the same plaintext with the same key would always produce the same ciphertext β making traffic analysis trivial. With a random IV, every encryption of the same message produces a completely different ciphertext. The IV is generally not secret (it is transmitted with the ciphertext), but it must be unpredictable (random, not sequential) and unique for each encryption operation. Critical nonce-reuse danger: in AES-GCM, reusing a nonce with the same key allows an attacker to XOR two ciphertexts to cancel the keystream, entirely breaking both confidentiality and the authentication tag β a catastrophic failure (CVE-2016-0270 exploit pattern). ChaCha20 uses a 96-bit nonce designed for high-volume environments.
IncorrectA: To inject randomization into the first block, ensuring that identical plaintexts encrypted with the same key produce completely different ciphertexts
An IV (Initialization Vector) or Nonce (Number Used Once) provides semantic security: without it, encrypting the same plaintext with the same key would always produce the same ciphertext β making traffic analysis trivial. With a random IV, every encryption of the same message produces a completely different ciphertext. The IV is generally not secret (it is transmitted with the ciphertext), but it must be unpredictable (random, not sequential) and unique for each encryption operation. Critical nonce-reuse danger: in AES-GCM, reusing a nonce with the same key allows an attacker to XOR two ciphertexts to cancel the keystream, entirely breaking both confidentiality and the authentication tag β a catastrophic failure (CVE-2016-0270 exploit pattern). ChaCha20 uses a 96-bit nonce designed for high-volume environments.
7What is a "Key Encryption Key" (KEK) in cryptographic key management?
CorrectD: A high-value symmetric or asymmetric key used exclusively to encrypt and protect other lower-level cryptographic keys (Data Encryption Keys)
A Key Encryption Key (KEK) is a master key in a hierarchical key management architecture: it encrypts and protects Data Encryption Keys (DEKs), which in turn encrypt the actual data. This "key wrapping" hierarchy means the high-volume DEKs can be frequently rotated and stored encrypted, while the KEK β which is more rigorously protected β only needs to decrypt DEKs when re-keying is needed. Example architecture: Data β encrypted by AES-256 DEK β DEK encrypted by KEK β KEK protected in an HSM. In AWS KMS and Azure Key Vault, the Customer Master Key (CMK) functions as a KEK. In TLS session key management, an RSA or ECC public key can act as a KEK to protect the symmetric session key during the handshake.
IncorrectD: A high-value symmetric or asymmetric key used exclusively to encrypt and protect other lower-level cryptographic keys (Data Encryption Keys)
A Key Encryption Key (KEK) is a master key in a hierarchical key management architecture: it encrypts and protects Data Encryption Keys (DEKs), which in turn encrypt the actual data. This "key wrapping" hierarchy means the high-volume DEKs can be frequently rotated and stored encrypted, while the KEK β which is more rigorously protected β only needs to decrypt DEKs when re-keying is needed. Example architecture: Data β encrypted by AES-256 DEK β DEK encrypted by KEK β KEK protected in an HSM. In AWS KMS and Azure Key Vault, the Customer Master Key (CMK) functions as a KEK. In TLS session key management, an RSA or ECC public key can act as a KEK to protect the symmetric session key during the handshake.
8Which advanced cryptographic concept, strictly a property of specialized asymmetric algorithms, allows mathematical computations to be performed directly on ciphertext without decrypting it first?
CorrectB: Homomorphic Encryption
Homomorphic Encryption (HE) enables computations to be performed directly on encrypted data β the result decrypts to the same value as if the computation had been performed on the plaintext. Full HE (Craig Gentry, 2009) allows arbitrary computations. Partial HE allows only specific operations (RSA is multiplicatively homomorphic; Paillier is additively homomorphic). Use cases: cloud computing on sensitive data (a cloud server computes on encrypted medical records and returns an encrypted result that only the patient can decrypt), private database queries, and encrypted machine learning inference. HE is computationally expensive β orders of magnitude slower than operating on plaintext β but the privacy guarantees enable genuinely new computing models. It is a property of asymmetric-based cryptographic constructions, not symmetric algorithms. Zero-Knowledge Proofs allow proving knowledge without revealing the knowledge. Steganography hides data within other data. QKD is a quantum key distribution protocol.
IncorrectB: Homomorphic Encryption
Homomorphic Encryption (HE) enables computations to be performed directly on encrypted data β the result decrypts to the same value as if the computation had been performed on the plaintext. Full HE (Craig Gentry, 2009) allows arbitrary computations. Partial HE allows only specific operations (RSA is multiplicatively homomorphic; Paillier is additively homomorphic). Use cases: cloud computing on sensitive data (a cloud server computes on encrypted medical records and returns an encrypted result that only the patient can decrypt), private database queries, and encrypted machine learning inference. HE is computationally expensive β orders of magnitude slower than operating on plaintext β but the privacy guarantees enable genuinely new computing models. It is a property of asymmetric-based cryptographic constructions, not symmetric algorithms. Zero-Knowledge Proofs allow proving knowledge without revealing the knowledge. Steganography hides data within other data. QKD is a quantum key distribution protocol.
9What is the most significant vulnerability of a basic, unauthenticated Diffie-Hellman key exchange?
CorrectA: It is highly susceptible to Man-in-the-Middle (MitM) attacks because it lacks inherent endpoint authentication
Diffie-Hellman in its basic form solves the key distribution problem but not the authentication problem. A Man-in-the-Middle attacker (Mallory) can intercept the DH exchange: Mallory performs a separate DH handshake with Alice (pretending to be Bob) and another with Bob (pretending to be Alice), establishing independent shared secrets with each party. Alice and Bob believe they share a key but are actually each sharing a key with Mallory β who can decrypt, read, modify, and re-encrypt all communications. Solution: authenticated DH, where the DH public values are digitally signed with long-term asymmetric private keys (this is what ECDHE in TLS does β the server signs its ephemeral DH values with its certificate private key). Without authentication, DH provides no protection against active MitM attacks.
IncorrectA: It is highly susceptible to Man-in-the-Middle (MitM) attacks because it lacks inherent endpoint authentication
Diffie-Hellman in its basic form solves the key distribution problem but not the authentication problem. A Man-in-the-Middle attacker (Mallory) can intercept the DH exchange: Mallory performs a separate DH handshake with Alice (pretending to be Bob) and another with Bob (pretending to be Alice), establishing independent shared secrets with each party. Alice and Bob believe they share a key but are actually each sharing a key with Mallory β who can decrypt, read, modify, and re-encrypt all communications. Solution: authenticated DH, where the DH public values are digitally signed with long-term asymmetric private keys (this is what ECDHE in TLS does β the server signs its ephemeral DH values with its certificate private key). Without authentication, DH provides no protection against active MitM attacks.
10To prevent adaptive chosen-ciphertext attacks against RSA encryption, modern implementations must use an advanced padding scheme. Which of the following is the industry standard?
CorrectC: Optimal Asymmetric Encryption Padding (OAEP)
OAEP (Optimal Asymmetric Encryption Padding), standardized in PKCS#1 v2.1 / RFC 8017, is the required padding scheme for RSA encryption in modern systems. Without secure padding, RSA has fatal mathematical weaknesses: "textbook RSA" (raw modular exponentiation with no padding) is deterministic and malleable β the same plaintext always produces the same ciphertext, and attackers can exploit mathematical relationships. PKCS#1 v1.5 padding (an older scheme) is vulnerable to the Bleichenbacher padding oracle attack (1998) β still exploitable in poorly implemented TLS stacks (ROBOT attack, 2017). OAEP adds randomization (the message is combined with a random seed via mask generation functions before encryption) and integrity checking. RSA-OAEP is the safe choice for RSA encryption in all modern implementations. Note: CBC is a symmetric mode; PKCS#5 is a key derivation standard; GMAC is an authentication tag.
IncorrectC: Optimal Asymmetric Encryption Padding (OAEP)
OAEP (Optimal Asymmetric Encryption Padding), standardized in PKCS#1 v2.1 / RFC 8017, is the required padding scheme for RSA encryption in modern systems. Without secure padding, RSA has fatal mathematical weaknesses: "textbook RSA" (raw modular exponentiation with no padding) is deterministic and malleable β the same plaintext always produces the same ciphertext, and attackers can exploit mathematical relationships. PKCS#1 v1.5 padding (an older scheme) is vulnerable to the Bleichenbacher padding oracle attack (1998) β still exploitable in poorly implemented TLS stacks (ROBOT attack, 2017). OAEP adds randomization (the message is combined with a random seed via mask generation functions before encryption) and integrity checking. RSA-OAEP is the safe choice for RSA encryption in all modern implementations. Note: CBC is a symmetric mode; PKCS#5 is a key derivation standard; GMAC is an authentication tag.
11In symmetric AES-GCM (Galois/Counter Mode), how is the integrity and authenticity of the ciphertext ensured?
CorrectD: By generating an Authentication Tag (MAC) concurrently during the encryption process using Galois field multiplication
AES-GCM's authentication mechanism is its defining security advantage over non-AEAD modes. During GCM encryption, a parallel computation runs in GF(2^128) β the Galois field of 2^128 elements β operating on 128-bit blocks of ciphertext. This computation produces an Authentication Tag (typically 128 bits, can be 96-bit for efficiency). The tag is computed over both the ciphertext blocks and the Associated Data (AD), and is derived using a universal hash function (GHASH) keyed with a value derived from the encryption key. The tag is appended to the ciphertext. Decryption: the receiver computes the tag independently over the received ciphertext; if it matches the transmitted tag, the ciphertext is authentic and unmodified. Any single bit flip in the ciphertext or associated data changes the tag. This simultaneous encrypt-then-MAC approach is provably secure β unlike hash-then-encrypt or encrypt-then-hash orderings with separate primitives.
IncorrectD: By generating an Authentication Tag (MAC) concurrently during the encryption process using Galois field multiplication
AES-GCM's authentication mechanism is its defining security advantage over non-AEAD modes. During GCM encryption, a parallel computation runs in GF(2^128) β the Galois field of 2^128 elements β operating on 128-bit blocks of ciphertext. This computation produces an Authentication Tag (typically 128 bits, can be 96-bit for efficiency). The tag is computed over both the ciphertext blocks and the Associated Data (AD), and is derived using a universal hash function (GHASH) keyed with a value derived from the encryption key. The tag is appended to the ciphertext. Decryption: the receiver computes the tag independently over the received ciphertext; if it matches the transmitted tag, the ciphertext is authentic and unmodified. Any single bit flip in the ciphertext or associated data changes the tag. This simultaneous encrypt-then-MAC approach is provably secure β unlike hash-then-encrypt or encrypt-then-hash orderings with separate primitives.
12What is the primary objective of "Post-Quantum Cryptography" (PQC)?
CorrectB: To develop complex mathematical algorithms (like lattice-based cryptography) that run on classical computers but are resistant to attacks from quantum computers
Post-Quantum Cryptography (PQC) β also called quantum-safe or quantum-resistant cryptography β refers to classical computer algorithms designed to be secure against attacks by both classical and quantum computers. The goal is not to use quantum hardware, but to replace current asymmetric algorithms (RSA, ECC, DH) β which are completely broken by Shor's Algorithm β with new algorithms based on mathematical problems believed to be hard for quantum computers. NIST PQC finalists standardized in 2024: ML-KEM (CRYSTALS-Kyber) for key encapsulation (replaces RSA/ECDH); ML-DSA (CRYSTALS-Dilithium) for digital signatures (replaces RSA/ECDSA); SLH-DSA (SPHINCS+) for signatures (hash-based); FALCON for signatures (NTRU lattice-based). The mathematical basis: lattice problems (Learning With Errors, Short Integer Solution), hash-based constructions, and code-based cryptography β all believed resistant to Shor's Algorithm. Simply increasing RSA key sizes does not help against Shor's Algorithm.
IncorrectB: To develop complex mathematical algorithms (like lattice-based cryptography) that run on classical computers but are resistant to attacks from quantum computers
Post-Quantum Cryptography (PQC) β also called quantum-safe or quantum-resistant cryptography β refers to classical computer algorithms designed to be secure against attacks by both classical and quantum computers. The goal is not to use quantum hardware, but to replace current asymmetric algorithms (RSA, ECC, DH) β which are completely broken by Shor's Algorithm β with new algorithms based on mathematical problems believed to be hard for quantum computers. NIST PQC finalists standardized in 2024: ML-KEM (CRYSTALS-Kyber) for key encapsulation (replaces RSA/ECDH); ML-DSA (CRYSTALS-Dilithium) for digital signatures (replaces RSA/ECDSA); SLH-DSA (SPHINCS+) for signatures (hash-based); FALCON for signatures (NTRU lattice-based). The mathematical basis: lattice problems (Learning With Errors, Short Integer Solution), hash-based constructions, and code-based cryptography β all believed resistant to Shor's Algorithm. Simply increasing RSA key sizes does not help against Shor's Algorithm.
13Which modern, highly efficient stream cipher is frequently paired with the Poly1305 authenticator to provide AEAD symmetric encryption, particularly on mobile devices lacking AES hardware acceleration?
CorrectA: ChaCha20
ChaCha20-Poly1305 is a modern AEAD cipher designed by Daniel J. Bernstein as a software-optimized alternative to AES-GCM. ChaCha20 (the encryption half) is a stream cipher that generates 512-bit keystream blocks using 20 rounds of a quarter-round ARX (Add-Rotate-XOR) operation. Poly1305 (the authentication half) provides a 128-bit authentication tag using polynomial evaluation over a prime field. ChaCha20-Poly1305 was specifically designed to be fast in software on processors without AES hardware acceleration (common on older/lower-end mobile CPUs, ARM embedded devices). On such devices, ChaCha20-Poly1305 is significantly faster than AES-GCM, while providing equivalent security. It is standardized in RFC 8439 and used in TLS 1.3, QUIC, WireGuard, Signal Protocol, and iOS/Android platforms. RC4 is a broken stream cipher (statistical biases, Wi-Fi WEP attacks). Twofish and Blowfish are block ciphers, not stream ciphers.
IncorrectA: ChaCha20
ChaCha20-Poly1305 is a modern AEAD cipher designed by Daniel J. Bernstein as a software-optimized alternative to AES-GCM. ChaCha20 (the encryption half) is a stream cipher that generates 512-bit keystream blocks using 20 rounds of a quarter-round ARX (Add-Rotate-XOR) operation. Poly1305 (the authentication half) provides a 128-bit authentication tag using polynomial evaluation over a prime field. ChaCha20-Poly1305 was specifically designed to be fast in software on processors without AES hardware acceleration (common on older/lower-end mobile CPUs, ARM embedded devices). On such devices, ChaCha20-Poly1305 is significantly faster than AES-GCM, while providing equivalent security. It is standardized in RFC 8439 and used in TLS 1.3, QUIC, WireGuard, Signal Protocol, and iOS/Android platforms. RC4 is a broken stream cipher (statistical biases, Wi-Fi WEP attacks). Twofish and Blowfish are block ciphers, not stream ciphers.
14Why did the cryptographic community transition from standard DES directly to Triple DES (3DES), rather than Double DES (2DES)?
CorrectC: 2DES is vulnerable to a "Meet-in-the-Middle" attack, which renders its effective security strength only slightly better than single DES
The Meet-in-the-Middle Attack (MITM, not to be confused with Man-in-the-Middle) proves that 2DES provides far less security than its apparent 112-bit key space suggests. The attack works as follows: for 2DES, the encryption is E_K2(E_K1(P)) = C. An attacker constructs two tables: one encrypting plaintext P with all 2^56 possible K1 values, and one decrypting ciphertext C with all 2^56 possible K2 values. The tables are sorted and compared for matches β a match reveals K1 and K2. This requires only 2 Γ 2^56 = 2^57 operations (plus substantial memory) β just slightly harder than breaking single DES at 2^56. In contrast, 3DES uses three independent keys (or two keys in EDE mode), which defeats the MITM attack and provides approximately 112-bit of effective security. 3DES is itself now deprecated (SWEET32 birthday attack, 64-bit block issues) β AES is the replacement.
IncorrectC: 2DES is vulnerable to a "Meet-in-the-Middle" attack, which renders its effective security strength only slightly better than single DES
The Meet-in-the-Middle Attack (MITM, not to be confused with Man-in-the-Middle) proves that 2DES provides far less security than its apparent 112-bit key space suggests. The attack works as follows: for 2DES, the encryption is E_K2(E_K1(P)) = C. An attacker constructs two tables: one encrypting plaintext P with all 2^56 possible K1 values, and one decrypting ciphertext C with all 2^56 possible K2 values. The tables are sorted and compared for matches β a match reveals K1 and K2. This requires only 2 Γ 2^56 = 2^57 operations (plus substantial memory) β just slightly harder than breaking single DES at 2^56. In contrast, 3DES uses three independent keys (or two keys in EDE mode), which defeats the MITM attack and provides approximately 112-bit of effective security. 3DES is itself now deprecated (SWEET32 birthday attack, 64-bit block issues) β AES is the replacement.
15In the context of asymmetric key exchange, what does the term "Ephemeral" mean?
CorrectB: A temporary key pair generated for a single session and subsequently discarded, providing forward secrecy
Ephemeral keys are temporary cryptographic keys generated fresh for each individual session (or each TLS handshake) and securely destroyed after use. They are never stored or reused. This is the core mechanism behind Perfect Forward Secrecy (PFS). In ECDHE (Elliptic Curve Diffie-Hellman Ephemeral): for each TLS handshake, a brand-new EC key pair is generated, used to derive the session's symmetric key, and then discarded. The long-term certificate key (used for authentication/signing) is separate and unrelated to the session key. Consequently, compromise of the certificate private key β even years later β cannot decrypt past sessions: the ephemeral DH private keys used to derive those session keys no longer exist on any system. TLS 1.3 mandates ephemeral key exchange (ECDHE or DHE) and has removed all non-PFS key exchange methods.
IncorrectB: A temporary key pair generated for a single session and subsequently discarded, providing forward secrecy
Ephemeral keys are temporary cryptographic keys generated fresh for each individual session (or each TLS handshake) and securely destroyed after use. They are never stored or reused. This is the core mechanism behind Perfect Forward Secrecy (PFS). In ECDHE (Elliptic Curve Diffie-Hellman Ephemeral): for each TLS handshake, a brand-new EC key pair is generated, used to derive the session's symmetric key, and then discarded. The long-term certificate key (used for authentication/signing) is separate and unrelated to the session key. Consequently, compromise of the certificate private key β even years later β cannot decrypt past sessions: the ephemeral DH private keys used to derive those session keys no longer exist on any system. TLS 1.3 mandates ephemeral key exchange (ECDHE or DHE) and has removed all non-PFS key exchange methods.
16How does "Shamir's Secret Sharing" scheme relate to advanced key management?
CorrectD: It uses polynomial interpolation to divide a master key into 'N' parts, requiring a threshold of 'K' parts to reconstruct the key
Shamir's Secret Sharing (Adi Shamir, 1979) is a (K, N)-threshold secret sharing scheme: a master secret (like a CA root private key or a master encryption key) is split into N shares, distributed to N custodians. The secret can be reconstructed only if at least K shares are brought together (K β€ N). If fewer than K shares are combined, no information about the secret is leaked. The mathematics uses polynomial interpolation: a random polynomial of degree K-1 is constructed with the secret as the constant term; each share is a point on this polynomial. Application in cryptography: certificate authorities (CAs) use Shamir's Secret Sharing to protect root CA private keys. The key is split among multiple trusted key custodians across different organizations and geographies. This protects against both insider attacks (one compromised custodian cannot reconstruct the key) and loss (no single point of failure).
IncorrectD: It uses polynomial interpolation to divide a master key into 'N' parts, requiring a threshold of 'K' parts to reconstruct the key
Shamir's Secret Sharing (Adi Shamir, 1979) is a (K, N)-threshold secret sharing scheme: a master secret (like a CA root private key or a master encryption key) is split into N shares, distributed to N custodians. The secret can be reconstructed only if at least K shares are brought together (K β€ N). If fewer than K shares are combined, no information about the secret is leaked. The mathematics uses polynomial interpolation: a random polynomial of degree K-1 is constructed with the secret as the constant term; each share is a point on this polynomial. Application in cryptography: certificate authorities (CAs) use Shamir's Secret Sharing to protect root CA private keys. The key is split among multiple trusted key custodians across different organizations and geographies. This protects against both insider attacks (one compromised custodian cannot reconstruct the key) and loss (no single point of failure).
17What is the fundamental difference between a Cryptographic Salt and an Asymmetric Key?
CorrectA: A salt is random, non-secret data appended to a password before hashing to prevent rainbow table attacks; an asymmetric key is a mathematical construct used for encryption/decryption
A cryptographic salt and an asymmetric key serve entirely different purposes. A Salt: is a random, non-secret value (typically 128+ bits) that is appended to a password before it is processed by a one-way hash function (bcrypt, Argon2, PBKDF2) and stored alongside the resulting hash in plaintext in the database. Its purpose: preventing rainbow table attacks and ensuring that two users with the same password have different hash outputs. The salt does not need to be secret β its value comes from uniqueness. An Asymmetric Key: is a mathematically derived value used for encryption, decryption, and digital signatures β used in two-way cryptographic operations. Salts are a hash-related concept; asymmetric keys are an encryption/decryption concept. They operate in entirely different cryptographic contexts.
IncorrectA: A salt is random, non-secret data appended to a password before hashing to prevent rainbow table attacks; an asymmetric key is a mathematical construct used for encryption/decryption
A cryptographic salt and an asymmetric key serve entirely different purposes. A Salt: is a random, non-secret value (typically 128+ bits) that is appended to a password before it is processed by a one-way hash function (bcrypt, Argon2, PBKDF2) and stored alongside the resulting hash in plaintext in the database. Its purpose: preventing rainbow table attacks and ensuring that two users with the same password have different hash outputs. The salt does not need to be secret β its value comes from uniqueness. An Asymmetric Key: is a mathematically derived value used for encryption, decryption, and digital signatures β used in two-way cryptographic operations. Salts are a hash-related concept; asymmetric keys are an encryption/decryption concept. They operate in entirely different cryptographic contexts.
18What type of cryptanalytic attack assumes the attacker can observe the operation of a cipher using several different keys whose mathematical relationships are known?
CorrectB: Related-key attack
A Related-Key Attack is a form of cryptanalysis where the attacker can observe and analyze encryptions under multiple keys that have a known mathematical relationship to each other (e.g., keys that differ in only a few bits, or keys derived by known operations on a base key). By studying how the cipher's behavior changes across these related keys, the attacker can deduce structural weaknesses in the key schedule or the cipher itself. Related-key attacks are particularly dangerous when applications generate multiple keys from a single master key without sufficient separation. AES itself was shown in 2009 to have theoretical related-key weaknesses in AES-256 (Biryukov-Khovratovich), though these are non-practical academic results under idealized attack models. They prompted improvements in key derivation practices. WEP (Wi-Fi Encryption Protocol) was practically broken via related-key attacks against RC4 (the Fluhrer-Mantin-Shamir attack, 2001).
IncorrectB: Related-key attack
A Related-Key Attack is a form of cryptanalysis where the attacker can observe and analyze encryptions under multiple keys that have a known mathematical relationship to each other (e.g., keys that differ in only a few bits, or keys derived by known operations on a base key). By studying how the cipher's behavior changes across these related keys, the attacker can deduce structural weaknesses in the key schedule or the cipher itself. Related-key attacks are particularly dangerous when applications generate multiple keys from a single master key without sufficient separation. AES itself was shown in 2009 to have theoretical related-key weaknesses in AES-256 (Biryukov-Khovratovich), though these are non-practical academic results under idealized attack models. They prompted improvements in key derivation practices. WEP (Wi-Fi Encryption Protocol) was practically broken via related-key attacks against RC4 (the Fluhrer-Mantin-Shamir attack, 2001).
19While RSA can be used for both data encryption and digital signatures, the Digital Signature Algorithm (DSA) is mathematically restricted. What can DSA do?
CorrectC: It can only be used for generating and verifying digital signatures, not for encrypting data payloads
DSA (Digital Signature Algorithm), standardized by NIST in FIPS 186, is a signature-only algorithm β its mathematical structure is specifically designed for signing and verification and cannot be used for data encryption or key encapsulation. DSA is based on the Discrete Logarithm Problem in a prime field and uses a random per-signature nonce k (critically: if k is ever reused or leaks, the private key can be computed β the PlayStation 3 hack in 2011 exploited this). RSA, by contrast, supports both encryption (RSA-OAEP) and signing (RSA-PSS or PKCS#1 v1.5). ECDSA (Elliptic Curve DSA) uses the same signature-only structure as DSA but over elliptic curves. For combined encryption + signing workflows, systems typically use separate keys: RSA or ECC for encryption, and DSA or ECDSA for signatures β or simply use RSA for both as separate operations.
IncorrectC: It can only be used for generating and verifying digital signatures, not for encrypting data payloads
DSA (Digital Signature Algorithm), standardized by NIST in FIPS 186, is a signature-only algorithm β its mathematical structure is specifically designed for signing and verification and cannot be used for data encryption or key encapsulation. DSA is based on the Discrete Logarithm Problem in a prime field and uses a random per-signature nonce k (critically: if k is ever reused or leaks, the private key can be computed β the PlayStation 3 hack in 2011 exploited this). RSA, by contrast, supports both encryption (RSA-OAEP) and signing (RSA-PSS or PKCS#1 v1.5). ECDSA (Elliptic Curve DSA) uses the same signature-only structure as DSA but over elliptic curves. For combined encryption + signing workflows, systems typically use separate keys: RSA or ECC for encryption, and DSA or ECDSA for signatures β or simply use RSA for both as separate operations.
20What is the purpose of a Key Derivation Function (KDF) like PBKDF2, bcrypt, or Argon2 in symmetric cryptographic systems?
CorrectD: To repeatedly hash a user's password with a salt thousands of times to deliberately slow down the generation of the symmetric encryption key, thwarting brute-force attacks
Key Derivation Functions (KDFs) are specifically designed to make brute-force and dictionary attacks against passwords computationally expensive. The problem they solve: a human-memorable password has low entropy (~40 bits for a strong password); a symmetric encryption key needs high entropy (128β256 bits); and most importantly, a simple fast hash of a password (MD5, SHA-256) allows attackers to test billions of candidates per second using GPUs/ASICs. KDFs solve this through: (1) Salting β appending a random unique salt to prevent precomputed rainbow tables and ensure each password hash is unique even among users with identical passwords. (2) Stretching β applying the hash function thousands (PBKDF2) or hundreds of thousands (bcrypt work factor 12 = 2^12 iterations) of times, deliberately introducing a configurable delay. Argon2 (winner of the 2015 Password Hashing Competition) additionally provides memory-hardness β requiring gigabytes of RAM to compute β defeating GPU and ASIC acceleration. The output is a key suitable for use with AES.
IncorrectD: To repeatedly hash a user's password with a salt thousands of times to deliberately slow down the generation of the symmetric encryption key, thwarting brute-force attacks
Key Derivation Functions (KDFs) are specifically designed to make brute-force and dictionary attacks against passwords computationally expensive. The problem they solve: a human-memorable password has low entropy (~40 bits for a strong password); a symmetric encryption key needs high entropy (128β256 bits); and most importantly, a simple fast hash of a password (MD5, SHA-256) allows attackers to test billions of candidates per second using GPUs/ASICs. KDFs solve this through: (1) Salting β appending a random unique salt to prevent precomputed rainbow tables and ensure each password hash is unique even among users with identical passwords. (2) Stretching β applying the hash function thousands (PBKDF2) or hundreds of thousands (bcrypt work factor 12 = 2^12 iterations) of times, deliberately introducing a configurable delay. Argon2 (winner of the 2015 Password Hashing Competition) additionally provides memory-hardness β requiring gigabytes of RAM to compute β defeating GPU and ASIC acceleration. The output is a key suitable for use with AES.
Conclusion: Master Encryption Foundations
These 60 MCQs span the complete encryption knowledge stack β from the single-key simplicity of AES and the problematic key distribution challenge it creates, through Diffie and Hellman's revolutionary key pair solution, to the modern hybrid architecture that powers every HTTPS connection on the internet. Advanced questions push into Shor's and Grover's quantum threats, the provable security of RSA-OAEP and AES-GCM, and the NIST-standardized post-quantum algorithms that will replace today's asymmetric baseline. Each question builds the precision needed for certification exams and real-world security engineering decisions.
After mastering these questions, continue with the Zero Trust Architecture MCQs to understand how modern identity-based security frameworks deploy the cryptographic primitives covered here in real-world enterprise architectures.
Key Takeaways β Symmetric vs. Asymmetric Encryption
- Symmetric = one shared secret key; incredibly fast (AES-256); key distribution problem β requires secure out-of-band channel.
- Asymmetric = public + private key pair; 100β10,000Γ slower; solves key distribution β public key freely distributed, private key never shared.
- Hybrid Encryption: asymmetric exchanges the symmetric session key; symmetric encrypts the bulk data β used by TLS, PGP, SSH, Signal.
- Symmetric key scaling: N(N-1)/2 keys for N users (quadratic, unscalable). Asymmetric: 2N keys (linear, scalable).
- AES: 128-bit block, 128/192/256-bit keys. DES: broken (56-bit). ECB mode: insecure. GCM mode: preferred (AEAD β encrypts + authenticates).
- RSA security: integer factorization. ECC security: ECDLP β much smaller keys for equal strength (ECC-256 β RSA-3072).
- Digital signature: sign with private key; verify with public key β non-repudiation (symmetric cannot provide this).
- Encrypt for confidentiality: use recipient's public key β only they decrypt with private key.
- PFS (Perfect Forward Secrecy): ephemeral ECDHE per session β compromise of long-term key can't decrypt past traffic. TLS 1.3 mandates PFS.
- Quantum threats: Shor's breaks RSA/ECC (use PQC: ML-KEM, ML-DSA). Grover's halves symmetric key strength (AES-256 β 128-bit post-quantum β still safe).
Quick Review & Summary
Use this table to consolidate key encryption concepts before or after attempting the questions above.
| Concept | What It Is | Key Fact / Standard |
|---|---|---|
| AES | Symmetric block cipher (NIST standard) | 128-bit block; 128/192/256-bit keys; NIST FIPS 197 |
| RSA | Asymmetric: integer factorization | 2048-bit minimum; used for key exchange + signatures |
| ECC | Asymmetric: ECDLP (smaller keys) | ECC-256 β RSA-3072; used in ECDHE, ECDSA |
| Diffie-Hellman | Key agreement over untrusted channel | Discrete log; authenticated DH (ECDHE) prevents MitM |
| Hybrid Encryption | Asymmetric key exchange + symmetric bulk | TLS, PGP, SSH, S/MIME all use this pattern |
| AES-GCM | AEAD: encrypt + authenticate simultaneously | Galois field MAC tag; nonce reuse is catastrophic |
| RSA-OAEP | Safe padding for RSA encryption | Prevents Bleichenbacher / chosen-ciphertext attacks |
| PFS | Ephemeral session keys prevent retroactive decryption | ECDHE per-session; TLS 1.3 mandates PFS |
| Shor's Algorithm | Quantum: breaks RSA/ECC via factorization/ECDLP | Mitigated by PQC: ML-KEM, ML-DSA (NIST 2024) |
| Grover's Algorithm | Quantum: halves symmetric key security | AES-256 β 128-bit post-quantum security (still safe) |
Frequently Asked Questions
Q. How many Symmetric vs. Asymmetric Encryption MCQs are on this page?
Q. What is the fundamental difference between Symmetric and Asymmetric encryption?
Q. What is hybrid encryption and why is it used?
Q. Which certifications test Symmetric vs. Asymmetric Encryption?
Q. Is AES symmetric or asymmetric?
Q. What is the difference between Study Mode and Exam Mode?
Q. What is Perfect Forward Secrecy and why does TLS 1.3 mandate it?
Struggling with some questions? Re-read the full Theory Guide: Symmetric vs. Asymmetric Encryption