GIAC
GSSP-JAVA · Question #178
Which of the following exceptions will be thrown if a cipher is in decryption mode but the decrypted data is not bounded by the appropriate bytes?
The correct answer is D. BadPaddingException. See the full explanation below for the reasoning.
Question
Which of the following exceptions will be thrown if a cipher is in decryption mode but the decrypted data is not bounded by the appropriate bytes?
Options
- AIllegalArgumentException
- BShortBufferException
- CReadOnlyException
- DBadPaddingException
How the community answered
(30 responses)- A3% (1)
- B7% (2)
- C17% (5)
- D73% (22)
Community Discussion
No community discussion yet for this question.