IoT Encryption and Digital Signatures
- 57Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which security properties can symmetric and asymmetric encryption provide, and how?
57 questions
- 1
Which security properties can symmetric and asymmetric encryption provide, and how?
Model answer
Both can provide confidentiality by encrypting data so third parties cannot read it.
Explanation
Encryption protects the contents of data from unauthorized viewing.
- 2
Which mechanisms described in the content can provide authentication?
Model answer
Digital signatures, certificates, and message authentication codes can provide authentication, though they address different aspects of it.
Explanation
The content identifies these as authentication mechanisms with distinct roles.
- 3
Which mechanisms can provide message integrity?
Model answer
Digital signatures and message authentication codes can help establish message integrity.
Explanation
Both are described as ways to detect whether content has been tampered with.
- 4
How do digital signatures support non-repudiation?
Model answer
They help prove a message’s origin and whether it was sent and received.
Explanation
Non-repudiation is associated with establishing the origin and history of a message.
- 5
What is entity authentication, and when does it take place?
Model answer
Entity authentication verifies that a communicating party is the party it claims to be, usually at the start of a communication session.
Explanation
It establishes the identity of the other party before the conversation proceeds.
- 6
What is message authentication, and how does it differ from entity authentication?
Model answer
Message authentication checks that each received message came from the party originally contacted; entity authentication checks the party’s identity at the start of the session.
Explanation
The two checks apply at different levels: one to the communicating entity and the other to individual messages.
- 7
Why is entity authentication alone insufficient to protect an ongoing conversation?
Model answer
An attacker could insert messages after the parties have authenticated, so each message also needs to be checked.
Explanation
Authenticating a party at the start does not, by itself, prove the origin of every later message.
- 8
Besides confirming a message’s source, what additional problem can message authentication help detect?
Model answer
It can detect integrity problems, including corruption caused by transmission errors.
Explanation
Message authentication checks that received content has not been altered or corrupted.
- 9
How many keys are shared in symmetric encryption, and how are they used?
Model answer
The two endpoints share one key, which each uses to encrypt and decrypt data.
Explanation
The same secret key is used at both ends of the communication.
- 10
How does symmetric encryption support communication in both directions?
Model answer
Either endpoint can encrypt data with the shared key, and the other endpoint can decrypt it with that same key.
Explanation
The shared key is used for both endpoint-to-server and server-to-endpoint traffic.
- 11
Name four symmetric encryption ciphers discussed in the content.
Model answer
AES, DES, 3DES, and ChaCha20.
Explanation
These are the symmetric ciphers identified in the content.
- 12
What happens to DES and 3DES in TLS 1.3, and which alternative to AES is highlighted?
Model answer
TLS 1.3 is eliminating DES and 3DES; ChaCha20 is highlighted as an alternative to AES.
Explanation
The content identifies ChaCha20 as the main alternative after those ciphers are phased out.
- 13
Why is symmetric encryption commonly used to encrypt large volumes of internet traffic?
Model answer
It is relatively CPU-efficient, especially compared with asymmetric encryption, making it suitable for bulk data encryption.
Explanation
Its efficiency is the stated reason it is used for most encrypted internet traffic.
- 14
What is the main key-management weakness of symmetric encryption?
Model answer
The parties must safely share the secret key; if an attacker intercepts it, they may decrypt subsequent traffic.
Explanation
The shared key must reach both parties without being exposed.
- 15
Why are symmetric ciphers often paired with message authentication techniques?
Model answer
The authentication technique helps verify that messages have not been tampered with and belong to the conversation with the authenticated party.
Explanation
Encryption alone does not establish the integrity and legitimacy of each message.
- 16
What are two examples of symmetric encryption and message-authentication combinations?
Model answer
AES-GCM and ChaCha20-Poly1305.
Explanation
These are examples of cipher-and-authentication combinations given in the content.
- 17
What inputs are described as contributing to a message authentication code?
Model answer
The message hash is combined with a sequence or session number, and the symmetric encryption key is also used in generating the code.
Explanation
These elements help establish message integrity, resist replay, and associate the message with the key-protected communication.
- 18
How does including a sequence or session number in message authentication help defend against replay attacks?
Model answer
It helps prevent an attacker from reusing previously sent packets as if they were new messages.
Explanation
The sequence or session information distinguishes messages within the communication.
- 19
How does asymmetric encryption differ from symmetric encryption in its use of keys?
Model answer
Asymmetric encryption uses a public-and-private key pair rather than one shared key for encryption and decryption.
Explanation
The paired keys have different roles in the encryption and decryption process.
- 20
In the example where an endpoint sends confidential data to a server, which key encrypts the data and which key decrypts it?
Model answer
The endpoint encrypts the data with the server’s public key, and the server decrypts it with its private key.
Explanation
The server’s public key is shared with the endpoint, while the corresponding private key remains with the server.
- 21
What must happen for a server to send encrypted data to an IoT endpoint using asymmetric encryption?
Model answer
The endpoint provides its public key to the server; the server encrypts with that key, and the endpoint decrypts with its private key.
Explanation
The recipient’s public key is used to encrypt data that the recipient’s private key can decrypt.
- 22
How many keys are needed for asymmetric encryption in two-way communication, and why?
Model answer
Four keys are needed: a public-and-private pair for each endpoint, because each direction uses the recipient’s key pair.
Explanation
Each communicating party needs a pair to receive encrypted data.
- 23
Which asymmetric key can be sent openly, and which must remain secret?
Model answer
The public key can be sent openly, but the private key must be kept secret.
Explanation
The public key is designed to be shared; the private key is not transmitted.
- 24
Why is it easier to keep an asymmetric private key secret than a symmetric key?
Model answer
The private key does not need to be transmitted, whereas a symmetric key must be shared between the communicating parties.
Explanation
Avoiding transmission reduces the opportunity for the key to be intercepted.
- 25
Why is asymmetric encryption generally not used for bulk data encryption?
Model answer
It is very compute-intensive compared with symmetric encryption.
Explanation
Its computational cost makes it less suitable for encrypting large volumes of data.
- 26
What are the two primary uses of asymmetric cryptography described in the content?
Model answer
Key exchange and authentication.
Explanation
It can help establish shared symmetric keys and support authentication methods.
- 27
How does asymmetric cryptography support digital signatures and public key infrastructure?
Model answer
Asymmetric techniques underpin digital signatures and the public-key methods used in certificates and public key infrastructure.
Explanation
The content connects asymmetric cryptography with signatures, certificates, and their infrastructure.
- 28
What are RSA and ECC, and what does ECC stand for?
Model answer
RSA and ECC are common asymmetric cryptography technologies; ECC stands for Elliptic Curve Cryptography.
Explanation
Both are identified as major asymmetric technologies.
- 29
What roles has RSA performed, and how does TLS 1.3 change its role in key exchange?
Model answer
RSA can support authentication and key exchange, but TLS 1.3 eliminates RSA key exchange while retaining RSA for certificate signing.
Explanation
The content describes this change as a feature of TLS 1.3.
- 30
What type of signatures have historically been used for many certificates?
Model answer
RSA-based signatures have historically been used for the great majority of certificates.
Explanation
The content identifies RSA signatures as historically common in certificates.
- 31
What is ECC used for on its own, and what is it paired with for key exchange?
Model answer
ECC on its own supports authentication methods such as digital signatures; it is paired with Diffie–Hellman for key exchange.
Explanation
ECC provides the cryptographic basis for authentication, while the Diffie–Hellman algorithm performs the exchange.
- 32
What does the prefix “EC” indicate in names such as ECDH, ECDHE, and ECDSA?
Model answer
It indicates that the algorithm is based on elliptic curve cryptography.
Explanation
The prefix identifies the elliptic-curve basis of these algorithms.
- 33
Why is elliptic curve cryptography expected to see growing use compared with RSA?
Model answer
It uses smaller keys, offers better performance, and scales better as key size grows.
Explanation
These are the advantages of ECC identified in the content.
- 34
What is a digital signature intended to establish about content received over a network?
Model answer
It helps establish that the content came from the claimed source and was not tampered with in transit.
Explanation
Digital signatures are used to authenticate origin and detect alteration.
- 35
Why is a hash calculated before signing a large software update?
Model answer
The hash is much shorter than the original update, so it is faster to sign, and it can also be used to check integrity.
Explanation
Signing the compact hash avoids applying the asymmetric operation to the entire large update.
- 36
How does hashing an entire update help reveal transmission corruption?
Model answer
The receiver can hash the received update and compare the result with the signed hash; a difference indicates the content changed.
Explanation
The hash represents the update’s contents, so altered data produces a mismatch.
- 37
Which hashing algorithm is used in the example, and what level of hashing security is described as generally acceptable going forward?
Model answer
The example uses SHA-256, and SHA-256 or greater is described as generally accepted for secure hashing.
Explanation
The content names SHA-256 for the example and identifies it or stronger hashing as the forward-looking standard.
- 38
Why are MD5 and SHA-1 no longer regarded as secure in the content?
Model answer
They were commonly used in the past but are no longer considered secure hashing methods.
Explanation
The content contrasts their former use with the current preference for SHA-256 or stronger.
- 39
Which key is used to create a code-signing digital signature?
Model answer
The signer uses the private key designated for code signing.
Explanation
The update server signs the hash with its code-signing private key.
- 40
What does an over-the-air update server send along with an update image?
Model answer
It sends the update image accompanied by its digital signature.
Explanation
The signature allows the endpoint to check the image’s origin and integrity.
- 41
How does an IoT endpoint verify an update’s digital signature and integrity?
Model answer
It uses the signer’s public key to recover the signed hash, hashes the received image itself, and compares the two values.
Explanation
A matching hash confirms that the signed content corresponds to the received image.
- 42
What can an endpoint conclude if the received image’s hash matches the hash in the digital signature?
Model answer
It can be confident that the update came from the claimed update server and was not tampered with in transit.
Explanation
The match supports both the claimed origin and the integrity of the update.
- 43
What key-exchange problem arises when two parties want to use symmetric encryption?
Model answer
They need to share a symmetric key without allowing an attacker to intercept it and decrypt later communication.
Explanation
A compromised shared key can expose subsequent traffic encrypted with it.
- 44
How does Diffie–Hellman help two parties establish a shared symmetric key?
Model answer
It enables both parties to derive the shared key without sending the key itself over the network.
Explanation
Because the key is derived rather than transmitted, it is not directly exposed in transit.
- 45
What does DHE stand for, and what is its key property?
Model answer
DHE stands for Diffie–Hellman Ephemeral; it calculates a new key for each communication session.
Explanation
The ephemeral method avoids using a permanently stored session key.
- 46
How does ephemeral Diffie–Hellman differ from earlier Diffie–Hellman and RSA key-exchange approaches?
Model answer
DHE creates a new key for each session rather than basing the shared key on the server’s certificate public key.
Explanation
The earlier approaches described used the public key in the server certificate as a basis for deriving the shared key.
- 47
What is forward secrecy, and how does DHE provide it?
Model answer
Forward secrecy means that compromising a server’s private key later does not allow earlier communications to be decrypted; DHE provides it by not storing session keys permanently on the server.
Explanation
Each session uses a separately derived key that is not recoverable from the server’s later-compromised private key.
- 48
Why could the compromise of a server’s private key expose recorded communications in older key-exchange approaches?
Model answer
If the shared key was based on the server certificate’s public key, an attacker who later obtained the corresponding private key could derive the shared key and decrypt recorded traffic.
Explanation
The earlier approach linked past session keys to a long-term server key.
- 49
What information do the IoT server and endpoint exchange at the start of the ECDHE example?
Model answer
They exchange random values and Diffie–Hellman parameters.
Explanation
Each side uses the received values and parameters to derive key material.
- 50
What key material do the parties derive in the ECDHE example, and how?
Model answer
Each side derives a pre-master key from the exchanged random values and Diffie–Hellman parameters, then derives a session key from it.
Explanation
Both parties perform the derivation using the exchanged inputs.
- 51
Why can the parties compute ECDHE key material in parallel?
Model answer
They derive the keys locally rather than exchanging the keys over the connection.
Explanation
Independent computation avoids waiting for a key to be transmitted.
- 52
How do communicating parties authenticate data exchanged during key exchange?
Model answer
Each party signs the data it sends with its own private key, allowing the receiver to authenticate its source.
Explanation
The receiver can use the corresponding public key to check that the data came from the expected party.
- 53
How can an IoT endpoint authenticate that it is connecting to the intended server?
Model answer
The server sends its certificate; the endpoint verifies the certificate’s chain of trust and then verifies that the server possesses the corresponding private key.
Explanation
The certificate provides the public key, while proof of possession confirms that the server controls its matching private key.
- 54
What key information does a server certificate provide to an IoT endpoint?
Model answer
It contains the server’s public key.
Explanation
The endpoint uses the certificate and its public key during server authentication.
- 55
What does the endpoint check when it verifies a server certificate’s chain of trust?
Model answer
It checks that the certificate is valid through the chain of trust.
Explanation
The chain-of-trust check is the stated method for verifying the server certificate.
- 56
Why must a server prove that it possesses the private key associated with its certificate’s public key?
Model answer
The proof establishes that the server controls the key pair and supports confidence that it is the intended server.
Explanation
A certificate alone provides a public key; proof of private-key possession ties that key to the communicating server.
- 57
After an endpoint verifies the server’s certificate and private-key possession, what can it conclude?
Model answer
It can be confident that it is communicating with the correct server.
Explanation
These checks establish the server’s identity for the connection.

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