98-372 · Question #26
You are creating an application using .NET Framework 4.0. You write the following code segment in the application: RC2CryptoServiceProvider RC2Crypto = new RC2CryptoServiceProvider(); Console.WriteLin
The correct answer is B. CBC. The RC2CryptoServiceProvider class is used to define a wrapper object to access the cryptographic service provider (CSP) implementation of the RC2 algorithm. The RC2CryptoServiceProvider class cannot be inherited. By default, all encryption classes make use of Cipher Block Chaini
Question
You are creating an application using .NET Framework 4.0. You write the following code segment in the application:
RC2CryptoServiceProvider RC2Crypto = new RC2CryptoServiceProvider(); Console.WriteLine(RC2Crypto.Mode); Which of the following outputs will the above code segment display?
Options
- ACTS
- BCBC
- CCFB
- DOFB
How the community answered
(49 responses)- A14% (7)
- B73% (36)
- C4% (2)
- D8% (4)
Explanation
The RC2CryptoServiceProvider class is used to define a wrapper object to access the cryptographic service provider (CSP) implementation of the RC2 algorithm. The RC2CryptoServiceProvider class cannot be inherited. By default, all encryption classes make use of Cipher Block Chaining (CBC) as the cipher mode. Answer: C, A, and D are incorrect. Cipher Feedback (CFB), Cipher Text Stealing (CTS), and Output Feedback (OFB) are not the default cipher mode.
Topics
Community Discussion
No community discussion yet for this question.