exam questions

Exam SY0-501 All Questions

View all questions & answers for the SY0-501 exam

Exam SY0-501 topic 1 question 242 discussion

Actual exam question from CompTIA's SY0-501
Question #: 242
Topic #: 1
[All SY0-501 Questions]

An administrator intends to configure an IPSec solution that provides ESP with integrity protection, but not confidentiality protection.
Which of the following AES modes of operation would meet this integrity-only requirement?

  • A. HMAC
  • B. PCBC
  • C. CBC
  • D. GCM
  • E. CFB
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Ales
Highly Voted 5 years, 6 months ago
AES is encryption; it is meant to maintain confidentiality. Encryption does not maintain integrity by itself: an attacker who can access encrypted data can modify the bytes, thereby impacting the cleartext data (though the encryption makes the task a bit harder for the attacker, it is not as infeasible as is often assumed). To get integrity, you need a MAC, and HMAC is a nice MAC algorithm. In many situations where encryption is mandated, integrity must also be maintained, so, as a general rule, AES "alone" is not sufficient.
upvoted 14 times
...
MikeDuB
Highly Voted 4 years, 4 months ago
Terribly formed question. Jason Dion told me on the test, whenever you see integrity, go with a hashing algorithm, I'll go with HMAC to be on the safe side.
upvoted 6 times
...
Dion79
Most Recent 4 years ago
I would select (D). Most modern systems use a type of counter mode called Galois/counter mode (GCM). Symmetric algorithms do not natively provide message integrity. The Galois function addresses this by combining the ciphertext with a type of message authentication code (GMAC), similar to an HMAC. Where CBC is only considered secure when using a 256-bit key, GCM can be used with a 128-bit key to achieve the same level of security. COM501B - The Official CompTIA Security+ Study Guide (SY0-501) Lesson 4: Explaining Basic Cryptography Concepts
upvoted 1 times
...
PaulSHaney
4 years, 5 months ago
Like a lot of the 501 questions, this one is flawed as well. I believe CompTIA is looking for a certain answer without fully considering how they ask the questions. I've found this throughout the test bank. I believe they are looking for HMAC as the answer because it provides integrity but chose a faulty scenario for the question. I'd answer the question on the test using answer A: HMAC.
upvoted 4 times
...
DookyBoots
4 years, 7 months ago
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/sec_conn_vpnips/configuration/xe-3s/sec-sec-for-vpns-w-ipsec-xe-3s-book/sec-cfg-vpn-ipsec.html esp-md5-hmac ESP with the MD5 (HMAC variant) authentication algorithm. (No longer recommended). esp-sha-hmac ESP with the SHA (HMAC variant) authentication algorithm. I found this, I don't know how much it helps.
upvoted 1 times
...
vaxakaw829
4 years, 9 months ago
2. Galois Message Authentication Code (GMAC) is an authentication-only variant of the GCM which can form an incremental message authentication code. (https://en.wikipedia.org/wiki/Galois/Counter_Mode) The mode of operation that uses GCM as a stand-alone message authentication code is denoted as GMAC. (https://csrc.nist.rip/groups/ST/toolkit/BCM/documents/proposedmodes/gcm/gcm-spec.pdf)
upvoted 2 times
...
vaxakaw829
4 years, 9 months ago
1. AES supports all the modes listed under DES, but tends to use the much lowerlatency mode called Galois/Counter Mode (GCM). GCM starts with CTR mode, but adds a special data type known as a Galois field to add integrity. (Mike Meyer’s CompTIA Security+ p. 82) AES-GCM is what’s known as an authenticated encryption mode. It combines a cipher (AES in CTR mode) with a message authentication code generated by an algorithm called GMAC. AES-GCM is fast, secure (if used properly), and standard. Authenticated means it protects both the privacy and the integrity of messages. If a message’s encrypted data is modified in transit, AES-GCM will detect this on decryption so the altered message can be discarded. (https://www.zerotier.com/aes-gmac-ctr-siv/)
upvoted 2 times
...
MarySK
4 years, 9 months ago
I see same question on different sites and its GMAC instead of HMAC in the options. I wonder whats going on.
upvoted 3 times
exiledwl
4 years, 4 months ago
I googled and can't find GMAC...I think it's a typo on other sites and is supposed to be HMAC??
upvoted 1 times
...
...
kdce
4 years, 10 months ago
A. HMAC -keyed-hash message authentication code (HMAC)-based HOTP supports integrity
upvoted 3 times
...
Monk16
4 years, 10 months ago
HMAC is integrity but no encryption, GCM is integrity with encryption CBC/GCM and CFB are encryption with no integrity PCBC is nothing, never heard of it So the question is not right for the answers, but for integrity only, the answer has to HMAC
upvoted 5 times
DookyBoots
4 years, 7 months ago
PCBC (Propagating or Plaintext Cipher-Block Chaining) Mode The PCBC mode is similar to the previously described CBC mode. It also mixes bits from the previous and current plaintext blocks, before encrypting them. In contrast to the CBC mode, if one ciphertext bit is damaged, the next plaintext block and all subsequent blocks will be damaged and unable to be decrypted correctly. In the PCBC mode both encryption and decryption can be performed using only one thread at a time.
upvoted 1 times
...
...
CyberKelev
4 years, 10 months ago
For integrity we have to use MAC algorithm. I think the question of mode is just bad formed like so many others
upvoted 2 times
...
venus20
4 years, 11 months ago
Sorry D
upvoted 1 times
...
venus20
4 years, 11 months ago
GCM provides data integrity. Answer should be C
upvoted 2 times
...
JJ_here
4 years, 11 months ago
Another site is showing A. GMAC, not HMAC B. PCBC C. CBC D. GCM E. CFB https://en.wikipedia.org/wiki/Galois/Counter_Mode Galois/Counter Mode (GCM) is a mode of operation for symmetric key cryptographic block ciphers that has been widely adopted because of its efficiency and performance. GCM throughput rates for state of the art, high speed communication channels can be achieved with reasonable hardware resources. The operation is an authenticated encryption algorithm designed to provide both data authenticity (integrity) and confidentiality. GCM is defined for block ciphers with a block size of 128 bits. Galois Message Authentication Code (GMAC) is an authentication-only variant of the GCM which can be used as an incremental message authentication code. Both GCM and GMAC can accept initialization vectors of arbitrary length.
upvoted 1 times
...
JJ_here
4 years, 11 months ago
AES(Advanced Encryption Standard) AES 8 confidentiality modes (ECB, CBC, OFB, CFB, CTR, XTS-AES, FF1, and FF3), One authentication mode (CMAC), Five combined modes for confidentiality and authentication (CCM, GCM, KW, KWP, and TKW) HMAC Hash-based message authentication code (HMAC) is a mechanism for calculating a message authentication code involving a hash function in combination with a secret key. This can be used to verify the integrity and authenticity of a a message.
upvoted 1 times
...
MelvinJohn
4 years, 11 months ago
Correction - meant to say (C) CBC is best choice.
upvoted 2 times
Don_H
4 years, 8 months ago
CBC is not efficient and is known to suffer from pipeline delays
upvoted 1 times
...
...
MelvinJohn
4 years, 11 months ago
The Question asks "Which of the following AES modes." Not (A) or (B) or (D ) HMAC, PCBC, and GCM are not AES modes. The 5 modes of AES: ECB mode: Electronic Code Book mode CBC mode: Cipher Block Chaining mode CFB mode: Cipher FeedBack mode OFB mode: Output FeedBack mode CTR mode: Counter mode So there are only two valid AES modes listed, (C) CBC and (E) CFB. The Question says the administrator wants "ESP with INTEGRITY protection, but NOT confidentiality." But ESP itself provides CONFIDENTIALITY, AUTHENTICITY, and data INTEGRITY. So how can the admistrator use ESP without confidentiality? The whole purpose of each of the 5 AES modes is CONFIDENTIALITY. Of the 2 provided choices, CBC provides the weakest confidentiality - but does not eliminate it. So no answer can be correct. (E) CBC is closest - but still wrong. (I spent about 2 hours researching numerous websites to try to determine how ESP used AES modes, and if CBC or CFB was the weaker. Maybe I didn't look in the right place.)
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago