CS FundamentalsHardGATE CS (PYQ pattern)
1000 bytes of plaintext are encrypted with AES in CBC mode (16-byte blocks) using PKCS#7 padding, and a random 16-byte IV is sent in front of the ciphertext. How many bytes are transmitted for the payload (IV plus ciphertext)?
- A. 1008
- B. 1024
- C. 1016
- D. 1000
Correct answer: B. 1024
PKCS#7 pads 1000 up to the next multiple of 16 = 1008 (8 padding bytes of value 8). Add the 16-byte IV: 1024 bytes.
More Computer Networks questions
- IPsec ESP in tunnel mode with AES-CBC protects an inner IP packet of 1400 bytes. Overheads: new outer IP header 20 bytes, ESP header 8…
- An optical link is 80 km long with fibre attenuation 0.25 dB/km and two connectors of 0.5 dB each. The transmitter output is 10 mW. What…
- A geostationary link has 250 ms one-way propagation delay and runs at 2 Mbps with 1000-byte frames (ACK transmission time ignored). To…
- A router buffer is modelled as an M/M/1/K queue with at most K = 5 packets in the system (including the one in service) and utilisation…
- A 3000-byte attachment is Base64-encoded for e-mail: every 3 bytes become 4 characters, and the encoded text is wrapped into lines of at…
- A customer receives 2001:db8:abcd::/48 and gives each of its sites a /56, numbering sites 0, 1, 2, ... in address order. Each site then…