IoT Encryption and Digital Signatures
- 48Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which security property can be provided by both symmetric and asymmetric encryption?
Which security property can be provided by both symmetric and asymmetric encryption?
48 questions
- 1
Which security property can be provided by both symmetric and asymmetric encryption?
- A
Non-repudiation, by proving that a sender received the data
- B
Confidentiality, by making data unreadable to third parties
- C
Entity authentication, by confirming every message in a session
- D
Integrity, by detecting all transmission errors automatically
Correct answer
BConfidentiality, by making data unreadable to third parties
Explanation
Both symmetric and asymmetric encryption can preserve confidentiality by encrypting data so third parties cannot read it.
- A
- 2
Which combination of mechanisms is associated with authentication in the material?
- A
Confidentiality, integrity, and non-repudiation
- B
Digital signatures, certificates, and message authentication codes
- C
Symmetric encryption, hashing, and session keys
- D
Public keys, random values, and transmission parameters
Correct answer
BDigital signatures, certificates, and message authentication codes
Explanation
The material associates authentication with digital signatures, certificates, and message authentication codes; these address different aspects of authentication.
- A
- 3
Which mechanisms are identified as providing message integrity?
- A
Digital signatures and message authentication codes
- B
Certificates and symmetric encryption keys
- C
Confidentiality and non-repudiation mechanisms
- D
Entity authentication and public key exchange
Correct answer
ADigital signatures and message authentication codes
Explanation
The material states that integrity is handled by both digital signatures and message authentication codes.
- A
- 4
What role do digital signatures play in non-repudiation?
- A
They prevent a third party from reading any data on the network.
- B
They help provide evidence of a message's origin and whether it was sent and received.
- C
They keep the symmetric key secret while it is transmitted between parties.
- D
They confirm that every message was encrypted with the same shared key.
Correct answer
BThey help provide evidence of a message's origin and whether it was sent and received.
Explanation
The material identifies digital signatures as the mechanism for non-repudiation, helping prove a message's origin and whether it was sent and received.
- A
- 5
When does entity authentication typically occur, and what does it establish?
- A
At the end of a session, it establishes that the symmetric key was destroyed.
- B
With every message, it establishes that the message was not altered in transit.
- C
Before encryption, it establishes that the message contains no transmission errors.
- D
At the start of a session, it establishes that the other party is who it claims to be.
Correct answer
DAt the start of a session, it establishes that the other party is who it claims to be.
Explanation
Entity authentication is described as a one-time operation at the start of a communication session to validate the party being contacted.
- A
- 6
Why is entity authentication useful when an IoT device connects to a server?
- A
It proves that no transmission error can occur after the connection begins.
- B
It ensures the server can decrypt every message using the device's public key.
- C
It prevents the device from needing to authenticate messages later in the session.
- D
It helps the device distinguish the intended server from an impostor, such as a man-in-the-middle attacker.
Correct answer
DIt helps the device distinguish the intended server from an impostor, such as a man-in-the-middle attacker.
Explanation
Entity authentication helps an endpoint confirm it is connecting to the real server it intended to reach rather than an impostor.
- A
- 7
What does message authentication check during an established communication session?
- A
Whether each received message came from the party originally authenticated
- B
Whether the session key was permanently stored on the server
- C
Whether the public key was kept secret during transmission
- D
Whether the initial connection was made to the correct server
Correct answer
AWhether each received message came from the party originally authenticated
Explanation
Message authentication checks that each message received came from the party the communicating entity originally connected to.
- A
- 8
Besides identifying the source of a message, what can message authentication help detect?
- A
Integrity problems, including corruption caused by transmission errors
- B
The presence of an outdated certificate authority
- C
The encryption algorithm's computational requirements
- D
The use of a public key instead of a private key for decryption
Correct answer
AIntegrity problems, including corruption caused by transmission errors
Explanation
Message authentication also checks message integrity and helps address issues such as corruption caused by transmission errors.
- A
- 9
In symmetric encryption, what key arrangement is used between two communicating parties?
- A
Each message uses a new public key, while decryption requires no key.
- B
The sender uses a private key while the receiver uses an unrelated public key.
- C
Both parties use the same shared key to encrypt and decrypt data.
- D
Each party uses a public key to encrypt and a shared private key to decrypt.
Correct answer
CBoth parties use the same shared key to encrypt and decrypt data.
Explanation
Symmetric encryption uses a single shared key at both ends: the same key is used to encrypt and decrypt data.
- A
- 10
How can two parties use symmetric encryption to communicate in both directions?
- A
The server encrypts with a public key, and the endpoint decrypts with that same key.
- B
They use the same shared key to encrypt and decrypt data in either direction.
- C
Each party encrypts with its own key, and the other party decrypts without a key.
- D
They exchange a separate private key every time either party sends data.
Correct answer
BThey use the same shared key to encrypt and decrypt data in either direction.
Explanation
The same symmetric key can encrypt endpoint-to-server data and server-to-endpoint data, and each recipient uses that key to decrypt.
- A
- 11
Why is symmetric encryption commonly used for bulk data encryption?
- A
It does not require the communicating parties to possess any key.
- B
It automatically authenticates entities without additional mechanisms.
- C
It creates a separate public and private key for each data block.
- D
It is relatively CPU efficient, especially compared with asymmetric encryption.
Correct answer
DIt is relatively CPU efficient, especially compared with asymmetric encryption.
Explanation
Symmetric encryption is relatively CPU efficient, so it is commonly used for bulk data; most encrypted internet traffic uses it.
- A
- 12
What is the main security challenge created by symmetric encryption's shared key?
- A
The key must be permanently stored on the server to support every session.
- B
The public key must be hidden from anyone who can access the network.
- C
The parties must get the secret key to one another without an attacker intercepting it.
- D
The key can encrypt data but cannot decrypt data at the other endpoint.
Correct answer
CThe parties must get the secret key to one another without an attacker intercepting it.
Explanation
The shared secret key must be exchanged safely; if an attacker intercepts it, the attacker may decrypt subsequent traffic.
- A
- 13
Which statement about the symmetric ciphers named in the material is correct?
- A
RSA and ECC are the most popular symmetric ciphers for bulk encryption.
- B
DES is the most popular, while AES and RSA are being eliminated from use.
- C
ChaCha20 is the only cipher named, and it is a form of asymmetric encryption.
- D
AES is the most popular, while DES, 3DES, and ChaCha20 are also mentioned.
Correct answer
DAES is the most popular, while DES, 3DES, and ChaCha20 are also mentioned.
Explanation
The material names AES, DES, 3DES, and ChaCha20 as symmetric ciphers, and describes AES as by far the most popular.
- A
- 14
What does the material say about DES, 3DES, and TLS 1.3?
- A
TLS 1.3 replaces AES with DES and 3DES for bulk encryption.
- B
TLS 1.3 uses DES and 3DES only for digital signatures.
- C
DES and 3DES are being eliminated in TLS 1.3.
- D
DES and 3DES are required for key exchange in TLS 1.3.
Correct answer
CDES and 3DES are being eliminated in TLS 1.3.
Explanation
The material states that DES and 3DES are both being eliminated in TLS 1.3.
- A
- 15
According to the material, what is the main alternative to AES among the symmetric ciphers discussed?
- A
ChaCha20
- B
ECDSA
- C
RSA
- D
Diffie-Hellman
Correct answer
AChaCha20
Explanation
The material describes ChaCha20 as the main remaining alternative to AES among the symmetric ciphers it discusses.
- A
- 16
Why are symmetric encryption ciphers often paired with message authentication techniques?
- A
The pairing ensures that the shared key can be sent openly without risk.
- B
The pairing replaces the need for public and private keys in entity authentication.
- C
The pairing makes it possible to encrypt data without using a symmetric key.
- D
The pairing helps verify that messages were not tampered with and belong to the expected conversation.
Correct answer
DThe pairing helps verify that messages were not tampered with and belong to the expected conversation.
Explanation
Message authentication is commonly paired with symmetric ciphers to check that messages have not been tampered with and are legitimately part of the conversation.
- A
- 17
Which pairings are given as examples of symmetric encryption combined with message authentication?
- A
DES-ECDHE and 3DES-SHA256
- B
AES-GCM and ChaCha20-Poly1305
- C
AES-ECDSA and ChaCha20-RSA
- D
RSA-GCM and ECDH-Poly1305
Correct answer
BAES-GCM and ChaCha20-Poly1305
Explanation
The material gives AES-GCM and ChaCha20-Poly1305 as examples of symmetric encryption ciphers paired with message authentication.
- A
- 18
What information is described as contributing to the generation of a message authentication code?
- A
A cipher name, a transmission timestamp, and the sender's public key
- B
A random value, an OTA image, and the receiver's private key
- C
A public key, a certificate chain, and the server's permanent session key
- D
A hash of the message, a sequence or session value, and the symmetric key
Correct answer
DA hash of the message, a sequence or session value, and the symmetric key
Explanation
The described MAC generation combines a hash of the message with a sequence or session value and uses the symmetric encryption key as part of the process.
- A
- 19
Why is a sequence or session value included when generating a message authentication code?
- A
It makes the hash longer than the original message.
- B
It helps prevent replay attacks from reusing previously captured packets.
- C
It allows the public key to be transmitted without encryption.
- D
It enables the receiver to calculate the sender's private key.
Correct answer
BIt helps prevent replay attacks from reusing previously captured packets.
Explanation
The sequence or session value is included so that replay attacks cannot simply reuse packets.
- A
- 20
How does including the symmetric key in MAC generation help authenticate a message?
- A
It proves that the sender's certificate was issued by a trusted authority.
- B
It makes the symmetric key public so that any receiver can verify the message.
- C
It allows the message to be decrypted without access to the symmetric key.
- D
It helps show that the message belongs to the communication stream using that key.
Correct answer
DIt helps show that the message belongs to the communication stream using that key.
Explanation
Because the symmetric key is used in MAC generation and also in the encrypted message stream, the MAC helps show that the message belongs to that stream.
- A
- 21
Which two claims does a message authentication code help support?
- A
The sender's private key was never used and the session has ended.
- B
The message was not tampered with and legitimately belongs to the conversation.
- C
The initial entity authentication can be skipped and replay is permitted.
- D
The message was encrypted with a public key and can be read by anyone.
Correct answer
BThe message was not tampered with and legitimately belongs to the conversation.
Explanation
The material summarizes a MAC's purpose as showing that a message has not been tampered with and is legitimately part of the conversation.
- A
- 22
What is the key difference between symmetric and asymmetric encryption?
- A
Symmetric encryption is for authentication only, while asymmetric encryption is for confidentiality only.
- B
Asymmetric encryption uses no keys, while symmetric encryption uses a public key.
- C
Symmetric encryption requires two key pairs, while asymmetric encryption requires one shared key.
- D
Asymmetric encryption uses a public and private key pair rather than one shared key at both ends.
Correct answer
DAsymmetric encryption uses a public and private key pair rather than one shared key at both ends.
Explanation
Asymmetric cryptography uses a public/private key pair, rather than one shared key used at both ends as in symmetric encryption.
- A
- 23
In the described asymmetric encryption example, how does an endpoint send confidential data to a server?
- A
It encrypts the data with the server's private key, and the server decrypts it with the endpoint's private key.
- B
It encrypts the data with the server's public key, and the server decrypts it with its private key.
- C
It encrypts the data with its own public key, and the server decrypts it with its public key.
- D
It encrypts the data with a shared secret, and the server decrypts it with the endpoint's public key.
Correct answer
BIt encrypts the data with the server's public key, and the server decrypts it with its private key.
Explanation
The server sends its public key to the endpoint, which encrypts data with that key; the server then uses its corresponding private key to decrypt it.
- A
- 24
Why does two-way asymmetric encryption require two key pairs in the described arrangement?
- A
Each direction requires two private keys, but no public keys are exchanged.
- B
Each endpoint needs its own public/private pair so the other party can encrypt data for it.
- C
One pair encrypts messages, while a second unrelated pair decrypts the same messages.
- D
Each party must share its private key so the other party can encrypt data.
Correct answer
BEach endpoint needs its own public/private pair so the other party can encrypt data for it.
Explanation
For the server to send encrypted data to the endpoint, the endpoint also needs a key pair. Thus, each end has a public/private pair for two-way communication.
- A
- 25
Which statement correctly describes the secrecy requirements of asymmetric keys?
- A
A public key can be sent openly, but its associated private key must remain secret.
- B
Both keys must be transmitted secretly before either can be used.
- C
A private key can be sent openly, but its associated public key must remain secret.
- D
Neither key needs protection because the pair is used only for bulk encryption.
Correct answer
AA public key can be sent openly, but its associated private key must remain secret.
Explanation
The public key is designed not to be secret, while the private key must be kept secret.
- A
- 26
Why is asymmetric encryption generally not used to encrypt bulk data?
- A
It is much more computationally intensive than symmetric encryption.
- B
It requires the same shared secret key at both communicating ends.
- C
It cannot provide confidentiality for data sent over a network.
- D
It only works when the receiver's private key is openly transmitted.
Correct answer
AIt is much more computationally intensive than symmetric encryption.
Explanation
Asymmetric cryptography is very compute intensive compared with symmetric cryptography, so it is not used for bulk data encryption.
- A
- 27
What are the two primary uses of asymmetric cryptography described in the material?
- A
Hashing and replay prevention
- B
Bulk encryption and compression
- C
Session storage and transmission correction
- D
Key exchange and authentication
Correct answer
DKey exchange and authentication
Explanation
The material identifies key exchange and authentication as the primary functions of asymmetric cryptography.
- A
- 28
Which statement best compares RSA and ECC as described in the material?
- A
RSA can perform authentication and key exchange, while ECC supports authentication and is paired with Diffie-Hellman for key exchange.
- B
RSA supports key exchange only, while ECC supports bulk encryption without other algorithms.
- C
RSA is used only for bulk encryption, while ECC is used only to calculate message hashes.
- D
RSA and ECC are symmetric ciphers that use one shared key for all operations.
Correct answer
ARSA can perform authentication and key exchange, while ECC supports authentication and is paired with Diffie-Hellman for key exchange.
Explanation
RSA can perform authentication and key exchange. ECC is used for authentication methods such as digital signatures and is paired with Diffie-Hellman for key exchange.
- A
- 29
How does TLS 1.3 treat RSA according to the material?
- A
It eliminates RSA for certificate signing but retains RSA for key exchange.
- B
It eliminates RSA for key exchange but retains RSA for certificate signing.
- C
It requires RSA for both key exchange and bulk data encryption.
- D
It replaces all RSA authentication with symmetric encryption.
Correct answer
BIt eliminates RSA for key exchange but retains RSA for certificate signing.
Explanation
The material says TLS 1.3 eliminates RSA for key exchange while retaining it for certificate signing.
- A
- 30
What does the prefix EC indicate in names such as ECDH, ECDHE, and ECDSA?
- A
The algorithm is based on elliptic curve cryptography.
- B
The algorithm is a symmetric cipher with an ephemeral session key.
- C
The algorithm performs error correction during transmission.
- D
The algorithm uses an encrypted certificate as its only key.
Correct answer
AThe algorithm is based on elliptic curve cryptography.
Explanation
The material explains that EC in these algorithm names stands for elliptic curve.
- A
- 31
Why does the material anticipate growing use of elliptic curve cryptography?
- A
It uses smaller keys, performs better than RSA, and scales better as key size grows.
- B
It eliminates the need for keys and performs bulk encryption more efficiently than AES.
- C
It uses larger keys than RSA but requires less computation for certificates.
- D
It keeps public keys secret and avoids the need for authentication.
Correct answer
AIt uses smaller keys, performs better than RSA, and scales better as key size grows.
Explanation
The material says ECC is likely to see growing use because it has smaller keys, better performance than RSA, and scales better as key size grows.
- A
- 32
What is a digital signature intended to establish about content received over a network?
- A
That the content was transmitted without any use of public-key cryptography
- B
That the content was encrypted using the same symmetric key at both endpoints
- C
That the content originated from the claimed source and was not tampered with in transit
- D
That the sender and receiver stored the same private key permanently
Correct answer
CThat the content originated from the claimed source and was not tampered with in transit
Explanation
Digital signatures are used to show that content, such as a software update or certificate, came from its claimed source and was not tampered with en route.
- A
- 33
Why is an OTA update image hashed before its hash is signed?
- A
The hash makes the original image confidential without any encryption.
- B
The hash is much shorter than the original image and is therefore faster to encrypt.
- C
The hash replaces the need to check the received image's integrity.
- D
The hash allows the endpoint to recover the server's private key.
Correct answer
BThe hash is much shorter than the original image and is therefore faster to encrypt.
Explanation
Hashing produces a much shorter value than the original data, making the value to be signed faster to encrypt.
- A
- 34
How does hashing the entire OTA update image contribute to integrity checking?
- A
A changed or corrupted image will produce a hash that fails to match the signed hash.
- B
The hash guarantees that only the intended endpoint can receive the image.
- C
The hash encrypts each image byte with the endpoint's private key.
- D
The hash prevents all transmission errors from occurring in the first place.
Correct answer
AA changed or corrupted image will produce a hash that fails to match the signed hash.
Explanation
Hashing the entire update allows the endpoint to compare the received image's hash with the signed hash and detect whether the image was corrupted or altered.
- A
- 35
In the OTA update example, what is encrypted to create the digital signature?
- A
The hash of the update image, using the code-signing private key
- B
The session key, using the server's public key
- C
The entire update image, using the endpoint's public key
- D
The certificate chain, using the endpoint's private key
Correct answer
AThe hash of the update image, using the code-signing private key
Explanation
The hash is encrypted using the private key specifically used for code signing, producing the digital signature.
- A
- 36
What does the endpoint do to check an OTA image's digital signature?
- A
It hashes the signature, encrypts the image with the same signature, and stores both.
- B
It checks only that the image arrived with a certificate, without calculating a hash.
- C
It uses the private key to decrypt the image, then compares it with the server's public key.
- D
It uses the public key to recover the signed hash, hashes the image, and compares the two values.
Correct answer
DIt uses the public key to recover the signed hash, hashes the image, and compares the two values.
Explanation
The endpoint uses the public key to decrypt the signed hash, calculates a hash of the received image, and checks whether the values match.
- A
- 37
If the endpoint's calculated image hash matches the hash recovered from the signature, what can it conclude?
- A
The update is consistent with the signing server's signature and was not altered in transit.
- B
The server's private key is available to the endpoint for future encryption.
- C
The update cannot be read by any party, including the endpoint.
- D
The update was encrypted using a symmetric key that the endpoint never received.
Correct answer
AThe update is consistent with the signing server's signature and was not altered in transit.
Explanation
A matching hash supports the conclusion that the update came from the signing server and was not tampered with during transmission.
- A
- 38
Which hashing guidance is given for secure use in the material?
- A
MD5 is generally preferred because it is newer than SHA-256.
- B
SHA-1 is the only secure choice for signing update images.
- C
Any hash is secure if it is encrypted with a public key.
- D
SHA-256 or a stronger method is generally accepted as secure.
Correct answer
DSHA-256 or a stronger method is generally accepted as secure.
Explanation
The material identifies SHA-256 or greater as the generally accepted secure hashing method.
- A
- 39
How does the material characterize MD5 and SHA-1?
- A
They are message authentication codes that replace hashing.
- B
They are newer secure methods recommended over SHA-256.
- C
They were commonly used in the past but are no longer regarded as secure.
- D
They are asymmetric encryption algorithms used for key exchange.
Correct answer
CThey were commonly used in the past but are no longer regarded as secure.
Explanation
Although microcontrollers may include MD5 or SHA-1 accelerators because these methods were commonly used in the past, the material says they are no longer regarded as secure.
- A
- 40
What problem does Diffie-Hellman key exchange address?
- A
It encrypts bulk data without requiring either party to use a key.
- B
It enables two parties to derive a shared symmetric key without sending that key over the wire.
- C
It lets two parties send their private keys openly to create a digital signature.
- D
It verifies the image hash without requiring a public key.
Correct answer
BIt enables two parties to derive a shared symmetric key without sending that key over the wire.
Explanation
Diffie-Hellman enables both sides to derive a shared symmetric key without actually passing the key over the network.
- A
- 41
What does the ephemeral property of DHE mean in the material?
- A
The same key is permanently stored and reused for every session.
- B
A new key is calculated for every communication session.
- C
A new certificate is created for every message in a session.
- D
The public key is replaced by a message hash after each packet.
Correct answer
BA new key is calculated for every communication session.
Explanation
The material contrasts DHE with earlier approaches by explaining that DHE calculates a new key for every communication session.
- A
- 42
What security benefit does forward secrecy provide?
- A
It ensures that public keys cannot be intercepted during a session.
- B
A later compromise of the server's private key reveals every earlier session key.
- C
A later compromise of the server's private key does not enable decryption of earlier session communications.
- D
It prevents the server from authenticating new sessions.
Correct answer
CA later compromise of the server's private key does not enable decryption of earlier session communications.
Explanation
With forward secrecy, compromising the server's private key later is not useful for decrypting earlier communications.
- A
- 43
Why could older Diffie-Hellman and RSA key-exchange approaches expose recorded past communications after a private-key compromise?
- A
They used the service certificate's public key as a basis for calculating the shared key.
- B
They encrypted all messages with the server's public key only.
- C
They transmitted every session key openly alongside the certificate.
- D
They stored message hashes as permanent session keys on the endpoint.
Correct answer
AThey used the service certificate's public key as a basis for calculating the shared key.
Explanation
The material says earlier Diffie-Hellman implementations and RSA used the certificate's public key as a basis for calculating the shared key, allowing later private-key compromise to expose recorded communications.
- A
- 44
Which sequence describes the ECDHE key derivation example?
- A
The parties exchange random values and parameters, derive pre-master keys, and then derive a session key.
- B
The server sends a private key, the endpoint hashes it, and both store the same certificate.
- C
The parties exchange session keys, derive public keys, and then create random parameters.
- D
The endpoint sends an image hash, the server encrypts it, and both derive a certificate chain.
Correct answer
AThe parties exchange random values and parameters, derive pre-master keys, and then derive a session key.
Explanation
In the example, the parties exchange a random value and Diffie-Hellman parameters, use them to derive a pre-master key, and then derive a session key.
- A
- 45
Why can the two parties compute their ECDHE-derived keys in parallel?
- A
The endpoint copies the pre-master key directly from the server.
- B
Both parties use a single public key as the final session key.
- C
The server sends its session key before the endpoint begins computing.
- D
The keys are computed locally rather than being exchanged over the connection.
Correct answer
DThe keys are computed locally rather than being exchanged over the connection.
Explanation
Because the keys are computed rather than exchanged over the connection, both parties can perform the calculations in parallel, which can speed up the process.
- A
- 46
How does asymmetric cryptography help authenticate data exchanged during key exchange?
- A
The parties use only a symmetric key, which proves the sender's identity automatically.
- B
Each party signs the data it sends with its own private key so the recipient can authenticate its source.
- C
The parties send their private keys so the recipient can compare them directly.
- D
Each party encrypts the data with the recipient's private key so anyone can verify it.
Correct answer
BEach party signs the data it sends with its own private key so the recipient can authenticate its source.
Explanation
The material says each party signs the data it sends with its own private key, enabling the receiver to authenticate that the data came from the party it believes it is communicating with.
- A
- 47
How does a server certificate contribute to an IoT endpoint's entity authentication of the server?
- A
It provides a shared symmetric key that replaces certificate verification.
- B
It provides the server's private key so the endpoint can decrypt all messages.
- C
It proves the server's identity without requiring any further check.
- D
It provides a public key that the endpoint can verify through a chain of trust.
Correct answer
DIt provides a public key that the endpoint can verify through a chain of trust.
Explanation
The server sends a certificate containing a public key, and the endpoint verifies the certificate through a chain of trust.
- A
- 48
After verifying a server certificate, what must the endpoint establish to gain confidence that the server is the correct party?
- A
That the server uses the endpoint's symmetric key for certificate signing
- B
That the certificate's public key is kept secret from other devices
- C
That the server possesses the private key associated with the certificate's public key
- D
That the server has received the endpoint's private key
Correct answer
CThat the server possesses the private key associated with the certificate's public key
Explanation
The endpoint must prove that the server possesses the private key associated with the public key in its certificate; this supports confidence that it is communicating with the correct server.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.