1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Security.Cryptography.Csp</name>
6 <member name="T:System.Security.Cryptography.CspKeyContainerInfo">
7 <summary>Provides additional information about a cryptographic key pair. This class cannot be inherited.</summary>
9 <member name="M:System.Security.Cryptography.CspKeyContainerInfo.#ctor(System.Security.Cryptography.CspParameters)">
10 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspKeyContainerInfo"></see> class using the specified parameters.</summary>
11 <param name="parameters">A <see cref="T:System.Security.Cryptography.CspParameters"></see> object that provides information about the key.</param>
13 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.Accessible">
14 <summary>Gets a value indicating whether a key in a key container is accessible.</summary>
15 <returns>true if the key is accessible; otherwise, false.</returns>
16 <exception cref="T:System.NotSupportedException">The key type is not supported.</exception>
18 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.Exportable">
19 <summary>Gets a value indicating whether a key can be exported from a key container.</summary>
20 <returns>true if the key can be exported; otherwise, false.</returns>
21 <exception cref="T:System.NotSupportedException">The key type is not supported.</exception>
22 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider cannot be found.
24 The key container was not found.</exception>
26 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.HardwareDevice">
27 <summary>Gets a value indicating whether a key is a hardware key.</summary>
28 <returns>true if the key is a hardware key; otherwise, false.</returns>
29 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider cannot be found.</exception>
31 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.KeyContainerName">
32 <summary>Gets a key container name.</summary>
33 <returns>The key container name.</returns>
35 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.KeyNumber">
36 <summary>Gets a value that describes whether an asymmetric key was created as a signature key or an exchange key.</summary>
37 <returns>One of the <see cref="System.Security.Cryptography.KeyNumber"></see> values that describes whether an asymmetric key was created as a signature key or an exchange key.</returns>
39 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.MachineKeyStore">
40 <summary>Gets a value indicating whether a key is from a machine key set.</summary>
41 <returns>true if the key is from the machine key set; otherwise, false.</returns>
43 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.Protected">
44 <summary>Gets a value indicating whether a key pair is protected.</summary>
45 <returns>true if the key pair is protected; otherwise, false.</returns>
46 <exception cref="T:System.NotSupportedException">The key type is not supported.</exception>
47 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider cannot be found.
49 The key container was not found.</exception>
51 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.ProviderName">
52 <summary>Gets the provider name of a key.</summary>
53 <returns>The provider name.</returns>
55 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.ProviderType">
56 <summary>Gets the provider type of a key.</summary>
57 <returns>The provider type. The default is 1.</returns>
59 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.RandomlyGenerated">
60 <summary>Gets a value indicating whether a key container was randomly generated by a managed cryptography class.</summary>
61 <returns>true if the key container was randomly generated; otherwise, false.</returns>
63 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.Removable">
64 <summary>Gets a value indicating whether a key can be removed from a key container.</summary>
65 <returns>true if the key is removable; otherwise, false.</returns>
66 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) was not found.</exception>
68 <member name="P:System.Security.Cryptography.CspKeyContainerInfo.UniqueKeyContainerName">
69 <summary>Gets a unique key container name.</summary>
70 <returns>The unique key container name.</returns>
71 <exception cref="T:System.NotSupportedException">The key type is not supported.</exception>
72 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider cannot be found.
74 The key container was not found.</exception>
76 <member name="T:System.Security.Cryptography.CspParameters">
77 <summary>Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.</summary>
79 <member name="M:System.Security.Cryptography.CspParameters.#ctor">
80 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters"></see> class.</summary>
82 <member name="M:System.Security.Cryptography.CspParameters.#ctor(System.Int32)">
83 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters"></see> class with the specified provider type code.</summary>
84 <param name="dwTypeIn">A provider type code that specifies the kind of provider to create.</param>
86 <member name="M:System.Security.Cryptography.CspParameters.#ctor(System.Int32,System.String)">
87 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters"></see> class with the specified provider type code and name.</summary>
88 <param name="dwTypeIn">A provider type code that specifies the kind of provider to create.</param>
89 <param name="strProviderNameIn">A provider name.</param>
91 <member name="M:System.Security.Cryptography.CspParameters.#ctor(System.Int32,System.String,System.String)">
92 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters"></see> class with the specified provider type code and name, and the specified container name.</summary>
93 <param name="dwTypeIn">The provider type code that specifies the kind of provider to create.</param>
94 <param name="strProviderNameIn">A provider name.</param>
95 <param name="strContainerNameIn">A container name.</param>
97 <member name="P:System.Security.Cryptography.CspParameters.Flags">
98 <summary>Represents the flags for <see cref="T:System.Security.Cryptography.CspParameters"></see> that modify the behavior of the cryptographic service provider (CSP).</summary>
99 <returns>An enumeration value, or a bitwise combination of enumeration values.</returns>
100 <exception cref="T:System.ArgumentException">Value is not a valid enumeration value.</exception>
102 <member name="F:System.Security.Cryptography.CspParameters.KeyContainerName">
103 <summary>Represents the key container name for <see cref="T:System.Security.Cryptography.CspParameters"></see>.</summary>
106 <member name="F:System.Security.Cryptography.CspParameters.KeyNumber">
107 <summary>Specifies whether an asymmetric key is created as a signature key or an exchange key.</summary>
110 <member name="P:System.Security.Cryptography.CspParameters.KeyPassword">
111 <summary>Gets or sets a password associated with a smart card key.</summary>
112 <returns>A password associated with a smart card key.</returns>
114 <member name="P:System.Security.Cryptography.CspParameters.ParentWindowHandle">
115 <summary>Gets or sets a handle to the unmanaged parent window for a smart card password dialog box.</summary>
116 <returns>A handle to the parent window for a smart card password dialog box.</returns>
118 <member name="F:System.Security.Cryptography.CspParameters.ProviderName">
119 <summary>Represents the provider name for <see cref="T:System.Security.Cryptography.CspParameters"></see>.</summary>
122 <member name="F:System.Security.Cryptography.CspParameters.ProviderType">
123 <summary>Represents the provider type code for <see cref="T:System.Security.Cryptography.CspParameters"></see>.</summary>
126 <member name="T:System.Security.Cryptography.CspProviderFlags">
127 <summary>Specifies flags that modify the behavior of the cryptographic service providers (CSP).</summary>
129 <member name="F:System.Security.Cryptography.CspProviderFlags.CreateEphemeralKey">
130 <summary>Create a temporary key that is released when the associated Rivest-Shamir-Adleman (RSA) object is closed. Do not use this flag if you want your key to be independent of the RSA object.</summary>
133 <member name="F:System.Security.Cryptography.CspProviderFlags.NoFlags">
134 <summary>Do not specify any settings.</summary>
137 <member name="F:System.Security.Cryptography.CspProviderFlags.NoPrompt">
138 <summary>Prevent the CSP from displaying any user interface (UI) for this context.</summary>
141 <member name="F:System.Security.Cryptography.CspProviderFlags.UseArchivableKey">
142 <summary>Allow a key to be exported for archival or recovery.</summary>
145 <member name="F:System.Security.Cryptography.CspProviderFlags.UseDefaultKeyContainer">
146 <summary>Use key information from the default key container.</summary>
149 <member name="F:System.Security.Cryptography.CspProviderFlags.UseExistingKey">
150 <summary>Use key information from the current key.</summary>
153 <member name="F:System.Security.Cryptography.CspProviderFlags.UseMachineKeyStore">
154 <summary>Use key information from the computer&#39;s key store.</summary>
157 <member name="F:System.Security.Cryptography.CspProviderFlags.UseNonExportableKey">
158 <summary>Use key information that cannot be exported.</summary>
161 <member name="F:System.Security.Cryptography.CspProviderFlags.UseUserProtectedKey">
162 <summary>Notify the user through a dialog box or another method when certain actions are attempting to use a key. This flag is not compatible with the <see cref="F:System.Security.Cryptography.CspProviderFlags.NoPrompt"></see> flag.</summary>
165 <member name="T:System.Security.Cryptography.DESCryptoServiceProvider">
166 <summary>Defines a wrapper object to access the cryptographic service provider (CSP) version of the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES"></see>) algorithm. This class cannot be inherited.</summary>
168 <member name="M:System.Security.Cryptography.DESCryptoServiceProvider.#ctor">
169 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DESCryptoServiceProvider"></see> class.</summary>
170 <exception cref="T:System.Security.Cryptography.CryptographicException">The Data Encryption Standard (<see cref="System.Security.Cryptography.DES"></see>) cryptographic service provider is not available.</exception>
172 <member name="M:System.Security.Cryptography.DESCryptoServiceProvider.CreateDecryptor">
175 <member name="M:System.Security.Cryptography.DESCryptoServiceProvider.CreateDecryptor(System.Byte[],System.Byte[])">
176 <summary>Creates a symmetric Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES"></see>) decryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see>) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>).</summary>
177 <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
178 <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
179 <returns>A symmetric <see cref="System.Security.Cryptography.DES"></see> decryptor object.</returns>
180 <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.Mode"></see> property is <see cref="System.Security.Cryptography.CipherMode.OFB"></see>.
182 The value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.Mode"></see> property is <see cref="System.Security.Cryptography.CipherMode.CFB"></see> and the value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize"></see> property is not 8.
184 An invalid key size was used.
186 The algorithm key size was not available.</exception>
188 <member name="M:System.Security.Cryptography.DESCryptoServiceProvider.CreateEncryptor">
191 <member name="M:System.Security.Cryptography.DESCryptoServiceProvider.CreateEncryptor(System.Byte[],System.Byte[])">
192 <summary>Creates a symmetric Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES"></see>) encryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see>) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>).</summary>
193 <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
194 <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
195 <returns>A symmetric <see cref="System.Security.Cryptography.DES"></see> encryptor object.</returns>
196 <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.Mode"></see> property is <see cref="System.Security.Cryptography.CipherMode.OFB"></see>.
198 The value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.Mode"></see> property is <see cref="System.Security.Cryptography.CipherMode.CFB"></see> and the value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize"></see> property is not 8.
200 An invalid key size was used.
202 The algorithm key size was not available.</exception>
204 <member name="M:System.Security.Cryptography.DESCryptoServiceProvider.GenerateIV">
205 <summary>Generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>) to use for the algorithm.</summary>
207 <member name="M:System.Security.Cryptography.DESCryptoServiceProvider.GenerateKey">
208 <summary>Generates a random key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see>) to be used for the algorithm.</summary>
210 <member name="T:System.Security.Cryptography.DSACryptoServiceProvider">
211 <summary>Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the <see cref="T:System.Security.Cryptography.DSA"></see> algorithm. This class cannot be inherited.</summary>
213 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.#ctor">
214 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider"></see> class.</summary>
216 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.#ctor(System.Int32)">
217 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider"></see> class with the specified key size.</summary>
218 <param name="dwKeySize">The size of the key for the asymmetric algorithm in bits.</param>
220 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.#ctor(System.Security.Cryptography.CspParameters)">
221 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider"></see> class with the specified parameters for the cryptographic service provider (CSP).</summary>
222 <param name="parameters">The parameters for the CSP.</param>
224 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.#ctor(System.Int32,System.Security.Cryptography.CspParameters)">
225 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider"></see> class with the specified key size and parameters for the cryptographic service provider (CSP).</summary>
226 <param name="dwKeySize">The size of the key for the cryptographic algorithm in bits.</param>
227 <param name="parameters">The parameters for the CSP.</param>
228 <exception cref="T:System.Security.Cryptography.CryptographicException">The CSP cannot be acquired.
230 The key cannot be created.</exception>
231 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="dwKeySize">dwKeySize</paramref> is out of range.</exception>
233 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.CreateSignature(System.Byte[])">
234 <summary>Creates the <see cref="T:System.Security.Cryptography.DSA"></see> signature for the specified data.</summary>
235 <param name="rgbHash">The data to be signed.</param>
236 <returns>The digital signature for the specified data.</returns>
238 <member name="P:System.Security.Cryptography.DSACryptoServiceProvider.CspKeyContainerInfo">
239 <summary>Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo"></see> object that describes additional information about a cryptographic key pair.</summary>
240 <returns>A <see cref="System.Security.Cryptography.CspKeyContainerInfo"></see> object that describes additional information about a cryptographic key pair.</returns>
242 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.ExportCspBlob(System.Boolean)">
243 <summary>Exports a blob containing the key information associated with a <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider"></see> object.</summary>
244 <param name="includePrivateParameters">true to include the private key; otherwise, false.</param>
245 <returns>A byte array containing the key information associated with a <see cref="System.Security.Cryptography.DSACryptoServiceProvider"></see> object.</returns>
247 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.ExportParameters(System.Boolean)">
248 <summary>Exports the <see cref="T:System.Security.Cryptography.DSAParameters"></see>.</summary>
249 <param name="includePrivateParameters">true to include private parameters; otherwise, false.</param>
250 <returns>The parameters for <see cref="System.Security.Cryptography.DSA"></see>.</returns>
251 <exception cref="T:System.Security.Cryptography.CryptographicException">The key cannot be exported.</exception>
253 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.ImportCspBlob(System.Byte[])">
254 <summary>Imports a blob that represents DSA key information.</summary>
255 <param name="keyBlob">A byte array that represents a DSA key blob.</param>
257 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(System.Security.Cryptography.DSAParameters)">
258 <summary>Imports the specified <see cref="T:System.Security.Cryptography.DSAParameters"></see>.</summary>
259 <param name="parameters">The parameters for <see cref="T:System.Security.Cryptography.DSA"></see>.</param>
260 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
262 The <paramref name="parameters">parameters</paramref> parameter has missing fields.</exception>
264 <member name="P:System.Security.Cryptography.DSACryptoServiceProvider.KeyExchangeAlgorithm">
265 <summary>Gets the name of the key exchange algorithm.</summary>
266 <returns>The name of the key exchange algorithm.</returns>
268 <member name="P:System.Security.Cryptography.DSACryptoServiceProvider.KeySize">
269 <summary>Gets the size of the key used by the asymmetric algorithm in bits.</summary>
270 <returns>The size of the key used by the asymmetric algorithm.</returns>
272 <member name="P:System.Security.Cryptography.DSACryptoServiceProvider.LegalKeySizes">
275 <member name="P:System.Security.Cryptography.DSACryptoServiceProvider.PersistKeyInCsp">
276 <summary>Gets or sets a value indicating whether the key should be persisted in the cryptographic service provider (CSP).</summary>
277 <returns>true if the key should be persisted in the CSP; otherwise, false.</returns>
279 <member name="P:System.Security.Cryptography.DSACryptoServiceProvider.PublicOnly">
280 <summary>Gets a value that indicates whether the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider"></see> object contains only a public key.</summary>
281 <returns>true if the <see cref="System.Security.Cryptography.DSACryptoServiceProvider"></see> object contains only a public key; otherwise, false.</returns>
283 <member name="P:System.Security.Cryptography.DSACryptoServiceProvider.SignatureAlgorithm">
284 <summary>Gets the name of the signature algorithm.</summary>
285 <returns>The name of the signature algorithm.</returns>
287 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.SignData(System.Byte[])">
288 <summary>Computes the hash value of the specified byte array and signs the resulting hash value.</summary>
289 <param name="buffer">The input data for which to compute the hash.</param>
290 <returns>The <see cref="System.Security.Cryptography.DSA"></see> signature for the specified data.</returns>
292 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.SignData(System.IO.Stream)">
293 <summary>Computes the hash value of the specified input stream and signs the resulting hash value.</summary>
294 <param name="inputStream">The input data for which to compute the hash.</param>
295 <returns>The <see cref="System.Security.Cryptography.DSA"></see> signature for the specified data.</returns>
297 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.SignData(System.Byte[],System.Int32,System.Int32)">
298 <summary>Signs a byte array from the specified start point to the specified end point.</summary>
299 <param name="buffer">The input data to sign.</param>
300 <param name="offset">The offset into the array from which to begin using data.</param>
301 <param name="count">The number of bytes in the array to use as data.</param>
302 <returns>The <see cref="System.Security.Cryptography.DSA"></see> signature for the specified data.</returns>
304 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.SignHash(System.Byte[],System.String)">
305 <summary>Computes the signature for the specified hash value by encrypting it with the private key.</summary>
306 <param name="rgbHash">The hash value of the data to be signed.</param>
307 <param name="str">The name of the hash algorithm used to create the hash value of the data.</param>
308 <returns>The <see cref="System.Security.Cryptography.DSA"></see> signature for the specified hash value.</returns>
309 <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash">rgbHash</paramref> parameter is null.</exception>
310 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
312 There is no private key.</exception>
314 <member name="P:System.Security.Cryptography.DSACryptoServiceProvider.UseMachineKeyStore">
315 <summary>Gets or sets a value indicating whether the key should be persisted in the computer&#39;s key store instead of the user profile store.</summary>
316 <returns>true if the key should be persisted in the computer key store; otherwise, false.</returns>
318 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.VerifyData(System.Byte[],System.Byte[])">
319 <summary>Verifies the specified signature data by comparing it to the signature computed for the specified data.</summary>
320 <param name="rgbData">The data that was signed.</param>
321 <param name="rgbSignature">The signature data to be verified.</param>
322 <returns>true if the signature verifies as valid; otherwise, false.</returns>
324 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.VerifyHash(System.Byte[],System.String,System.Byte[])">
325 <summary>Verifies the specified signature data by comparing it to the signature computed for the specified hash value.</summary>
326 <param name="rgbHash">The hash value of the data to be signed.</param>
327 <param name="str">The name of the hash algorithm used to create the hash value of the data.</param>
328 <param name="rgbSignature">The signature data to be verified.</param>
329 <returns>true if the signature verifies as valid; otherwise, false.</returns>
330 <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash">rgbHash</paramref> parameter is null.
332 The <paramref name="rgbSignature">rgbSignature</paramref> parameter is null.</exception>
333 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
335 The signature cannot be verified.</exception>
337 <member name="M:System.Security.Cryptography.DSACryptoServiceProvider.VerifySignature(System.Byte[],System.Byte[])">
338 <summary>Verifies the <see cref="T:System.Security.Cryptography.DSA"></see> signature for the specified data.</summary>
339 <param name="rgbHash">The data signed with rgbSignature.</param>
340 <param name="rgbSignature">The signature to be verified for rgbData.</param>
341 <returns>true if <paramref name="rgbSignature">rgbSignature</paramref> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash">rgbHash</paramref>; otherwise, false.</returns>
343 <member name="T:System.Security.Cryptography.AesCryptoServiceProvider">
344 <summary>Performs symmetric encryption and decryption using the Cryptographic Application Programming Interfaces (CAPI) implementation of the Advanced Encryption Standard (AES) algorithm.</summary>
346 <member name="M:System.Security.Cryptography.AesCryptoServiceProvider.#ctor">
347 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AesCryptoServiceProvider"></see> class.</summary>
348 <exception cref="T:System.PlatformNotSupportedException">There is no supported key size for the current platform.</exception>
350 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.BlockSize">
353 <member name="M:System.Security.Cryptography.AesCryptoServiceProvider.CreateDecryptor">
354 <summary>Creates a symmetric AES decryptor object using the current key and initialization vector (IV).</summary>
355 <returns>A symmetric AES decryptor object.</returns>
356 <exception cref="T:System.Security.Cryptography.CryptographicException">The current key is invalid or missing.</exception>
358 <member name="M:System.Security.Cryptography.AesCryptoServiceProvider.CreateDecryptor(System.Byte[],System.Byte[])">
359 <summary>Creates a symmetric AES decryptor object using the specified key and initialization vector (IV).</summary>
360 <param name="key"></param>
361 <param name="iv"></param>
362 <returns>A symmetric AES decryptor object.</returns>
363 <exception cref="T:System.ArgumentNullException"><paramref name="key">key</paramref> or <paramref name="iv">iv</paramref> is null.</exception>
364 <exception cref="T:System.ArgumentException"><paramref name="key">key</paramref> is invalid.</exception>
366 <member name="M:System.Security.Cryptography.AesCryptoServiceProvider.CreateEncryptor">
367 <summary>Creates a symmetric AES encryptor object using the current key and initialization vector (IV).</summary>
368 <returns>A symmetric AES encryptor object.</returns>
370 <member name="M:System.Security.Cryptography.AesCryptoServiceProvider.CreateEncryptor(System.Byte[],System.Byte[])">
371 <summary>Creates a symmetric encryptor object using the specified key and initialization vector (IV).</summary>
372 <param name="key"></param>
373 <param name="iv"></param>
374 <returns>A symmetric AES encryptor object.</returns>
375 <exception cref="T:System.ArgumentNullException">The <paramref name="key">key</paramref> or <paramref name="iv">iv</paramref> parameter is null.</exception>
376 <exception cref="T:System.ArgumentException"><paramref name="key">key</paramref> is invalid.</exception>
378 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.FeedbackSize">
381 <member name="M:System.Security.Cryptography.AesCryptoServiceProvider.GenerateIV">
382 <summary>Generates a random initialization vector (IV) to use for the algorithm.</summary>
383 <exception cref="T:System.Security.Cryptography.CryptographicException">The initialization vector (IV) could not be generated.</exception>
385 <member name="M:System.Security.Cryptography.AesCryptoServiceProvider.GenerateKey">
386 <summary>Generates a random key to use for the algorithm.</summary>
387 <exception cref="T:System.Security.Cryptography.CryptographicException">The key could not be generated.</exception>
389 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.IV">
392 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.Key">
393 <summary>Gets or sets the symmetric key that is used for encryption and decryption.</summary>
394 <returns>The symmetric key that is used for encryption and decryption.</returns>
395 <exception cref="T:System.ArgumentNullException">The value for the key is null.</exception>
396 <exception cref="T:System.Security.Cryptography.CryptographicException">The size of the key is invalid.</exception>
398 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.KeySize">
399 <summary>Gets or sets the size, in bits, of the secret key.</summary>
400 <returns>The size, in bits, of the key.</returns>
402 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.LegalBlockSizes">
405 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.LegalKeySizes">
408 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.Mode">
411 <member name="P:System.Security.Cryptography.AesCryptoServiceProvider.Padding">
414 <member name="T:System.Security.Cryptography.ICspAsymmetricAlgorithm">
415 <summary>Defines methods that allow an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm"></see> class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)–compatible key blobs.</summary>
417 <member name="P:System.Security.Cryptography.ICspAsymmetricAlgorithm.CspKeyContainerInfo">
418 <summary>Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo"></see> object that describes additional information about a cryptographic key pair.</summary>
419 <returns>A <see cref="System.Security.Cryptography.CspKeyContainerInfo"></see> object that describes additional information about a cryptographic key pair.</returns>
421 <member name="M:System.Security.Cryptography.ICspAsymmetricAlgorithm.ExportCspBlob(System.Boolean)">
422 <summary>Exports a blob that contains the key information associated with an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm"></see> object.</summary>
423 <param name="includePrivateParameters">true to include the private key; otherwise, false.</param>
424 <returns>A byte array that contains the key information associated with an <see cref="System.Security.Cryptography.AsymmetricAlgorithm"></see> object.</returns>
426 <member name="M:System.Security.Cryptography.ICspAsymmetricAlgorithm.ImportCspBlob(System.Byte[])">
427 <summary>Imports a blob that represents asymmetric key information.</summary>
428 <param name="rawData">A byte array that represents an asymmetric key blob.</param>
430 <member name="T:System.Security.Cryptography.KeyNumber">
431 <summary>Specifies whether to create an asymmetric signature key or an asymmetric exchange key.</summary>
433 <member name="F:System.Security.Cryptography.KeyNumber.Exchange">
434 <summary>An exchange key pair used to encrypt session keys so that they can be safely stored and exchanged with other users.</summary>
437 <member name="F:System.Security.Cryptography.KeyNumber.Signature">
438 <summary>A signature key pair used for authenticating digitally signed messages or files.</summary>
441 <member name="T:System.Security.Cryptography.MD5CryptoServiceProvider">
442 <summary>Computes the <see cref="T:System.Security.Cryptography.MD5"></see> hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.</summary>
444 <member name="M:System.Security.Cryptography.MD5CryptoServiceProvider.#ctor">
445 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MD5CryptoServiceProvider"></see> class.</summary>
446 <exception cref="T:System.InvalidOperationException">A FIPS-compliant algorithm policy is not being used.</exception>
448 <member name="M:System.Security.Cryptography.MD5CryptoServiceProvider.Initialize">
449 <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.MD5CryptoServiceProvider"></see>.</summary>
451 <member name="T:System.Security.Cryptography.PasswordDeriveBytes">
452 <summary>Derives a key from a password using an extension of the PBKDF1 algorithm.</summary>
454 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.#ctor(System.Byte[],System.Byte[])">
455 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class specifying the password and key salt to use to derive the key.</summary>
456 <param name="password">The password to derive the key for.</param>
457 <param name="salt">The key salt to use to derive the key.</param>
459 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.#ctor(System.String,System.Byte[])">
460 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class with the password and key salt to use to derive the key.</summary>
461 <param name="strPassword">The password for which to derive the key.</param>
462 <param name="rgbSalt">The key salt to use to derive the key.</param>
464 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.#ctor(System.Byte[],System.Byte[],System.Security.Cryptography.CspParameters)">
465 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class specifying the password, key salt, and cryptographic service provider (CSP) to use to derive the key.</summary>
466 <param name="password">The password to derive the key for.</param>
467 <param name="salt">The key salt to use to derive the key.</param>
468 <param name="cspParams">The cryptographic service provider (CSP) parameters for the operation.</param>
470 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.#ctor(System.String,System.Byte[],System.Security.Cryptography.CspParameters)">
471 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class with the password, key salt, and cryptographic service provider (CSP) parameters to use to derive the key.</summary>
472 <param name="strPassword">The password for which to derive the key.</param>
473 <param name="rgbSalt">The key salt to use to derive the key.</param>
474 <param name="cspParams">The CSP parameters for the operation.</param>
476 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.#ctor(System.Byte[],System.Byte[],System.String,System.Int32)">
477 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class specifying the password, key salt, hash name, and iterations to use to derive the key.</summary>
478 <param name="password">The password to derive the key for.</param>
479 <param name="salt">The key salt to use to derive the key.</param>
480 <param name="hashName">The hash algorithm to use to derive the key.</param>
481 <param name="iterations">The iteration count to use to derive the key.</param>
483 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.#ctor(System.String,System.Byte[],System.String,System.Int32)">
484 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class with the password, key salt, hash name, and number of iterations to use to derive the key.</summary>
485 <param name="strPassword">The password for which to derive the key.</param>
486 <param name="rgbSalt">The key salt to use to derive the key.</param>
487 <param name="strHashName">The name of the hash algorithm for the operation.</param>
488 <param name="iterations">The number of iterations for the operation.</param>
490 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.#ctor(System.Byte[],System.Byte[],System.String,System.Int32,System.Security.Cryptography.CspParameters)">
491 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class specifying the password, key salt, hash name, iterations, and cryptographic service provider (CSP) to use to derive the key.</summary>
492 <param name="password">The password to derive the key for.</param>
493 <param name="salt">The key salt to use to derive the key.</param>
494 <param name="hashName">The hash algorithm to use to derive the key.</param>
495 <param name="iterations">The iteration count to use to derive the key.</param>
496 <param name="cspParams">The cryptographic service provider (CSP) parameters for the operation.</param>
498 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.#ctor(System.String,System.Byte[],System.String,System.Int32,System.Security.Cryptography.CspParameters)">
499 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class with the password, key salt, hash name, number of iterations, and cryptographic service provider (CSP) parameters to use to derive the key.</summary>
500 <param name="strPassword">The password for which to derive the key.</param>
501 <param name="rgbSalt">The key salt to use to derive the key.</param>
502 <param name="strHashName">The name of the hash algorithm for the operation.</param>
503 <param name="iterations">The number of iterations for the operation.</param>
504 <param name="cspParams">The CSP parameters for the operation.</param>
506 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.CryptDeriveKey(System.String,System.String,System.Int32,System.Byte[])">
507 <summary>Derives a cryptographic key from the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> object.</summary>
508 <param name="algname">The algorithm name for which to derive the key.</param>
509 <param name="alghashname">The hash algorithm name to use to derive the key.</param>
510 <param name="keySize">The size of the key, in bits, to derive.</param>
511 <param name="rgbIV">The initialization vector (IV) to use to derive the key.</param>
512 <returns>The derived key.</returns>
513 <exception cref="T:System.Security.Cryptography.CryptographicException">The <paramref name="keySize">keySize</paramref> parameter is incorrect.
515 The cryptographic service provider (CSP) cannot be acquired.
517 The <paramref name="algname">algname</paramref> parameter is not a valid algorithm name.
519 The <paramref name="alghashname">alghashname</paramref> parameter is not a valid hash algorithm name.</exception>
521 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.Dispose(System.Boolean)">
522 <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes"></see> class and optionally releases the managed resources.</summary>
523 <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
525 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.GetBytes(System.Int32)">
526 <summary>Returns pseudo-random key bytes.</summary>
527 <param name="cb">The number of pseudo-random key bytes to generate.</param>
528 <returns>A byte array filled with pseudo-random key bytes.</returns>
530 <member name="P:System.Security.Cryptography.PasswordDeriveBytes.HashName">
531 <summary>Gets or sets the name of the hash algorithm for the operation.</summary>
532 <returns>The name of the hash algorithm for the operation.</returns>
533 <exception cref="T:System.Security.Cryptography.CryptographicException">The name of the hash value is fixed and an attempt is made to change this value.</exception>
535 <member name="P:System.Security.Cryptography.PasswordDeriveBytes.IterationCount">
536 <summary>Gets or sets the number of iterations for the operation.</summary>
537 <returns>The number of iterations for the operation.</returns>
538 <exception cref="T:System.Security.Cryptography.CryptographicException">The number of iterations is fixed and an attempt is made to change this value.</exception>
539 <exception cref="T:System.ArgumentOutOfRangeException">The property cannot be set because its value is out of range. This property requires a non-negative number.</exception>
541 <member name="M:System.Security.Cryptography.PasswordDeriveBytes.Reset">
542 <summary>Resets the state of the operation.</summary>
544 <member name="P:System.Security.Cryptography.PasswordDeriveBytes.Salt">
545 <summary>Gets or sets the key salt value for the operation.</summary>
546 <returns>The key salt value for the operation.</returns>
547 <exception cref="T:System.Security.Cryptography.CryptographicException">The key salt value is fixed and an attempt is made to change this value.</exception>
549 <member name="T:System.Security.Cryptography.RC2CryptoServiceProvider">
550 <summary>Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the <see cref="T:System.Security.Cryptography.RC2"></see> algorithm. This class cannot be inherited.</summary>
552 <member name="M:System.Security.Cryptography.RC2CryptoServiceProvider.#ctor">
553 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RC2CryptoServiceProvider"></see> class.</summary>
554 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
555 <exception cref="T:System.InvalidOperationException">A non-compliant FIPS algorithm was found.</exception>
557 <member name="M:System.Security.Cryptography.RC2CryptoServiceProvider.CreateDecryptor(System.Byte[],System.Byte[])">
558 <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.RC2"></see> decryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see>)and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>).</summary>
559 <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
560 <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
561 <returns>A symmetric <see cref="System.Security.Cryptography.RC2"></see> decryptor object.</returns>
562 <exception cref="T:System.Security.Cryptography.CryptographicException">An <see cref="System.Security.Cryptography.CipherMode.OFB"></see> cipher mode was used.
564 A <see cref="System.Security.Cryptography.CipherMode.CFB"></see> cipher mode with a feedback size other than 8 bits was used.
566 An invalid key size was used.
568 The algorithm key size was not available.</exception>
570 <member name="M:System.Security.Cryptography.RC2CryptoServiceProvider.CreateEncryptor(System.Byte[],System.Byte[])">
571 <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.RC2"></see> encryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see>) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>).</summary>
572 <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
573 <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
574 <returns>A symmetric <see cref="System.Security.Cryptography.RC2"></see> encryptor object.</returns>
575 <exception cref="T:System.Security.Cryptography.CryptographicException">An <see cref="System.Security.Cryptography.CipherMode.OFB"></see> cipher mode was used.
577 A <see cref="System.Security.Cryptography.CipherMode.CFB"></see> cipher mode with a feedback size other than 8 bits was used.
579 An invalid key size was used.
581 The algorithm key size was not available.</exception>
583 <member name="P:System.Security.Cryptography.RC2CryptoServiceProvider.EffectiveKeySize">
584 <summary>Gets or sets the effective size, in bits, of the secret key used by the <see cref="T:System.Security.Cryptography.RC2"></see> algorithm.</summary>
585 <returns>The effective key size, in bits, used by the <see cref="System.Security.Cryptography.RC2"></see> algorithm.</returns>
586 <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The <see cref="System.Security.Cryptography.RC2CryptoServiceProvider.EffectiveKeySize"></see> property was set to a value other than the <see cref="System.Security.Cryptography.SymmetricAlgorithm.KeySizeValue"></see> property.</exception>
588 <member name="M:System.Security.Cryptography.RC2CryptoServiceProvider.GenerateIV">
589 <summary>Generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>) to use for the algorithm.</summary>
591 <member name="M:System.Security.Cryptography.RC2CryptoServiceProvider.GenerateKey">
592 <summary>Generates a random key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see>) to be used for the algorithm.</summary>
594 <member name="P:System.Security.Cryptography.RC2CryptoServiceProvider.UseSalt">
595 <summary>Gets or sets a value that determines whether to create a key with an 11-byte-long, zero-value salt.</summary>
596 <returns>true if the key should be created with an 11-byte-long, zero-value salt; otherwise, false. The default is false.</returns>
598 <member name="T:System.Security.Cryptography.RNGCryptoServiceProvider">
599 <summary>Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.</summary>
601 <member name="M:System.Security.Cryptography.RNGCryptoServiceProvider.#ctor">
602 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider"></see> class.</summary>
604 <member name="M:System.Security.Cryptography.RNGCryptoServiceProvider.#ctor(System.Byte[])">
605 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider"></see> class.</summary>
606 <param name="rgb">A byte array. This value is ignored.</param>
608 <member name="M:System.Security.Cryptography.RNGCryptoServiceProvider.#ctor(System.Security.Cryptography.CspParameters)">
609 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider"></see> class with the specified parameters.</summary>
610 <param name="cspParams">The parameters to pass to the cryptographic service provider (CSP).</param>
612 <member name="M:System.Security.Cryptography.RNGCryptoServiceProvider.#ctor(System.String)">
613 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider"></see> class.</summary>
614 <param name="str">The string input. This parameter is ignored.</param>
616 <member name="M:System.Security.Cryptography.RNGCryptoServiceProvider.GetBytes(System.Byte[])">
617 <summary>Fills an array of bytes with a cryptographically strong sequence of random values.</summary>
618 <param name="data">The array to fill with a cryptographically strong sequence of random values.</param>
619 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
620 <exception cref="T:System.ArgumentNullException"><paramref name="data">data</paramref> is null.</exception>
622 <member name="M:System.Security.Cryptography.RNGCryptoServiceProvider.GetNonZeroBytes(System.Byte[])">
623 <summary>Fills an array of bytes with a cryptographically strong sequence of random nonzero values.</summary>
624 <param name="data">The array to fill with a cryptographically strong sequence of random nonzero values.</param>
625 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
626 <exception cref="T:System.ArgumentNullException"><paramref name="data">data</paramref> is null.</exception>
628 <member name="T:System.Security.Cryptography.RSACryptoServiceProvider">
629 <summary>Performs asymmetric encryption and decryption using the implementation of the <see cref="T:System.Security.Cryptography.RSA"></see> algorithm provided by the cryptographic service provider (CSP). This class cannot be inherited.</summary>
631 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.#ctor">
632 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider"></see> class using the default key.</summary>
633 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
635 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.#ctor(System.Int32)">
636 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider"></see> class with the specified key size.</summary>
637 <param name="dwKeySize">The size of the key to use in bits.</param>
638 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
640 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.#ctor(System.Security.Cryptography.CspParameters)">
641 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider"></see> class with the specified parameters.</summary>
642 <param name="parameters">The parameters to be passed to the cryptographic service provider (CSP).</param>
643 <exception cref="T:System.Security.Cryptography.CryptographicException">The CSP cannot be acquired.</exception>
645 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.#ctor(System.Int32,System.Security.Cryptography.CspParameters)">
646 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider"></see> class with the specified key size and parameters.</summary>
647 <param name="dwKeySize">The size of the key to use in bits.</param>
648 <param name="parameters">The parameters to be passed to the cryptographic service provider (CSP).</param>
649 <exception cref="T:System.Security.Cryptography.CryptographicException">The CSP cannot be acquired.
651 The key cannot be created.</exception>
653 <member name="P:System.Security.Cryptography.RSACryptoServiceProvider.CspKeyContainerInfo">
654 <summary>Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo"></see> object that describes additional information about a cryptographic key pair.</summary>
655 <returns>A <see cref="System.Security.Cryptography.CspKeyContainerInfo"></see> object that describes additional information about a cryptographic key pair.</returns>
657 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.Decrypt(System.Byte[],System.Boolean)">
658 <summary>Decrypts data with the <see cref="T:System.Security.Cryptography.RSA"></see> algorithm.</summary>
659 <param name="rgb">The data to be decrypted.</param>
660 <param name="fOAEP">true to perform direct <see cref="T:System.Security.Cryptography.RSA"></see> decryption using OAEP padding (only available on a computer running Microsoft Windows XP or later); otherwise, false to use PKCS#1 v1.5 padding.</param>
661 <returns>The decrypted data, which is the original plain text before encryption.</returns>
662 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
664 The <paramref name="fOAEP">fOAEP</paramref> parameter is true and the length of the <paramref name="rgb">rgb</paramref> parameter is greater than <see cref="System.Security.Cryptography.RSACryptoServiceProvider.KeySize"></see>.
666 The <paramref name="fOAEP">fOAEP</paramref> parameter is true and OAEP is not supported.
668 The key does not match the encrypted data. However, the exception wording may not be accurate. For example, it may say Not enough storage is available to process this command.</exception>
669 <exception cref="T:System.ArgumentNullException"><paramref name="rgb">rgb</paramref> is null.</exception>
671 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.Decrypt(System.Byte[],System.Security.Cryptography.RSAEncryptionPadding)">
672 <summary>Decrypts data that was previously encrypted with the <see cref="T:System.Security.Cryptography.RSA"></see> algorithm by using the specified padding.</summary>
673 <param name="data">The data to decrypt.</param>
674 <param name="padding">The padding.</param>
675 <returns>The decrypted data.</returns>
676 <exception cref="T:System.ArgumentNullException"><paramref name="data">data</paramref> is null.
678 <paramref name="padding">padding</paramref> is null.</exception>
679 <exception cref="T:System.Security.Cryptography.CryptographicException">The padding mode is not supported.</exception>
681 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(System.Byte[])">
682 <summary>This method is not supported in the current version.</summary>
683 <param name="rgb">The data to be decrypted.</param>
684 <returns>The decrypted data, which is the original plain text before encryption.</returns>
685 <exception cref="T:System.NotSupportedException">This method is not supported in the current version.</exception>
687 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.Encrypt(System.Byte[],System.Boolean)">
688 <summary>Encrypts data with the <see cref="T:System.Security.Cryptography.RSA"></see> algorithm.</summary>
689 <param name="rgb">The data to be encrypted.</param>
690 <param name="fOAEP">true to perform direct <see cref="T:System.Security.Cryptography.RSA"></see> encryption using OAEP padding (only available on a computer running Windows XP or later); otherwise, false to use PKCS#1 v1.5 padding.</param>
691 <returns>The encrypted data.</returns>
692 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
694 The length of the <paramref name="rgb">rgb</paramref> parameter is greater than the maximum allowed length.
696 The <paramref name="fOAEP">fOAEP</paramref> parameter is true and OAEP padding is not supported.</exception>
697 <exception cref="T:System.ArgumentNullException"><paramref name="rgb">rgb</paramref> is null.</exception>
699 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.Encrypt(System.Byte[],System.Security.Cryptography.RSAEncryptionPadding)">
700 <summary>Encrypts data with the <see cref="T:System.Security.Cryptography.RSA"></see> algorithm using the specified padding.</summary>
701 <param name="data">The data to encrypt.</param>
702 <param name="padding">The padding.</param>
703 <returns>The encrypted data.</returns>
704 <exception cref="T:System.ArgumentNullException"><paramref name="data">data</paramref> is null.
706 <paramref name="padding">padding</paramref> is null.</exception>
707 <exception cref="T:System.Security.Cryptography.CryptographicException">The padding mode is not supported.</exception>
709 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(System.Byte[])">
710 <summary>This method is not supported in the current version.</summary>
711 <param name="rgb">The data to be encrypted.</param>
712 <returns>The encrypted data.</returns>
713 <exception cref="T:System.NotSupportedException">This method is not supported in the current version.</exception>
715 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.ExportCspBlob(System.Boolean)">
716 <summary>Exports a blob containing the key information associated with an <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider"></see> object.</summary>
717 <param name="includePrivateParameters">true to include the private key; otherwise, false.</param>
718 <returns>A byte array containing the key information associated with an <see cref="System.Security.Cryptography.RSACryptoServiceProvider"></see> object.</returns>
720 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.ExportParameters(System.Boolean)">
721 <summary>Exports the <see cref="T:System.Security.Cryptography.RSAParameters"></see>.</summary>
722 <param name="includePrivateParameters">true to include private parameters; otherwise, false.</param>
723 <returns>The parameters for <see cref="System.Security.Cryptography.RSA"></see>.</returns>
724 <exception cref="T:System.Security.Cryptography.CryptographicException">The key cannot be exported.</exception>
726 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.ImportCspBlob(System.Byte[])">
727 <summary>Imports a blob that represents RSA key information.</summary>
728 <param name="keyBlob">A byte array that represents an RSA key blob.</param>
730 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters(System.Security.Cryptography.RSAParameters)">
731 <summary>Imports the specified <see cref="T:System.Security.Cryptography.RSAParameters"></see>.</summary>
732 <param name="parameters">The parameters for <see cref="T:System.Security.Cryptography.RSA"></see>.</param>
733 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
735 The <paramref name="parameters">parameters</paramref> parameter has missing fields.</exception>
737 <member name="P:System.Security.Cryptography.RSACryptoServiceProvider.KeyExchangeAlgorithm">
738 <summary>Gets the name of the key exchange algorithm available with this implementation of <see cref="T:System.Security.Cryptography.RSA"></see>.</summary>
739 <returns>The name of the key exchange algorithm if it exists; otherwise, null.</returns>
741 <member name="P:System.Security.Cryptography.RSACryptoServiceProvider.KeySize">
742 <summary>Gets the size of the current key.</summary>
743 <returns>The size of the key in bits.</returns>
745 <member name="P:System.Security.Cryptography.RSACryptoServiceProvider.LegalKeySizes">
748 <member name="P:System.Security.Cryptography.RSACryptoServiceProvider.PersistKeyInCsp">
749 <summary>Gets or sets a value indicating whether the key should be persisted in the cryptographic service provider (CSP).</summary>
750 <returns>true if the key should be persisted in the CSP; otherwise, false.</returns>
752 <member name="P:System.Security.Cryptography.RSACryptoServiceProvider.PublicOnly">
753 <summary>Gets a value that indicates whether the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider"></see> object contains only a public key.</summary>
754 <returns>true if the <see cref="System.Security.Cryptography.RSACryptoServiceProvider"></see> object contains only a public key; otherwise, false.</returns>
756 <member name="P:System.Security.Cryptography.RSACryptoServiceProvider.SignatureAlgorithm">
757 <summary>Gets the name of the signature algorithm available with this implementation of <see cref="T:System.Security.Cryptography.RSA"></see>.</summary>
758 <returns>The name of the signature algorithm.</returns>
760 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.SignData(System.Byte[],System.Object)">
761 <summary>Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value.</summary>
762 <param name="buffer">The input data for which to compute the hash.</param>
763 <param name="halg">The hash algorithm to use to create the hash value.</param>
764 <returns>The <see cref="System.Security.Cryptography.RSA"></see> signature for the specified data.</returns>
765 <exception cref="T:System.ArgumentNullException">The <paramref name="halg">halg</paramref> parameter is null.</exception>
766 <exception cref="T:System.ArgumentException">The <paramref name="halg">halg</paramref> parameter is not a valid type.</exception>
768 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.SignData(System.IO.Stream,System.Object)">
769 <summary>Computes the hash value of the specified input stream using the specified hash algorithm, and signs the resulting hash value.</summary>
770 <param name="inputStream">The input data for which to compute the hash.</param>
771 <param name="halg">The hash algorithm to use to create the hash value.</param>
772 <returns>The <see cref="System.Security.Cryptography.RSA"></see> signature for the specified data.</returns>
773 <exception cref="T:System.ArgumentNullException">The <paramref name="halg">halg</paramref> parameter is null.</exception>
774 <exception cref="T:System.ArgumentException">The <paramref name="halg">halg</paramref> parameter is not a valid type.</exception>
776 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.SignData(System.Byte[],System.Int32,System.Int32,System.Object)">
777 <summary>Computes the hash value of a subset of the specified byte array using the specified hash algorithm, and signs the resulting hash value.</summary>
778 <param name="buffer">The input data for which to compute the hash.</param>
779 <param name="offset">The offset into the array from which to begin using data.</param>
780 <param name="count">The number of bytes in the array to use as data.</param>
781 <param name="halg">The hash algorithm to use to create the hash value.</param>
782 <returns>The <see cref="System.Security.Cryptography.RSA"></see> signature for the specified data.</returns>
783 <exception cref="T:System.ArgumentNullException">The <paramref name="halg">halg</paramref> parameter is null.</exception>
784 <exception cref="T:System.ArgumentException">The <paramref name="halg">halg</paramref> parameter is not a valid type.</exception>
786 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.SignHash(System.Byte[],System.String)">
787 <summary>Computes the signature for the specified hash value by encrypting it with the private key.</summary>
788 <param name="rgbHash">The hash value of the data to be signed.</param>
789 <param name="str">The hash algorithm identifier (OID) used to create the hash value of the data.</param>
790 <returns>The <see cref="System.Security.Cryptography.RSA"></see> signature for the specified hash value.</returns>
791 <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash">rgbHash</paramref> parameter is null.</exception>
792 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
794 There is no private key.</exception>
796 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.SignHash(System.Byte[],System.Security.Cryptography.HashAlgorithmName,System.Security.Cryptography.RSASignaturePadding)">
797 <summary>Computes the signature for the specified hash value by encrypting it with the private key using the specified padding.</summary>
798 <param name="hash">The hash value of the data to be signed.</param>
799 <param name="hashAlgorithm">The hash algorithm name used to create the hash value of the data.</param>
800 <param name="padding">The padding.</param>
801 <returns>The <see cref="System.Security.Cryptography.RSA"></see> signature for the specified hash value.</returns>
802 <exception cref="T:System.ArgumentException"><paramref name="hashAlgorithm">hashAlgorithm</paramref> is null or <see cref="System.String.Empty"></see>.</exception>
803 <exception cref="T:System.ArgumentNullException"><paramref name="hash">hash</paramref> is null.
805 <paramref name="padding">padding</paramref> is null.</exception>
806 <exception cref="T:System.Security.Cryptography.CryptographicException"><paramref name="padding">padding</paramref> does not equal <see cref="System.Security.Cryptography.RSASignaturePadding.Pkcs1"></see>.</exception>
808 <member name="P:System.Security.Cryptography.RSACryptoServiceProvider.UseMachineKeyStore">
809 <summary>Gets or sets a value indicating whether the key should be persisted in the computer&#39;s key store instead of the user profile store.</summary>
810 <returns>true if the key should be persisted in the computer key store; otherwise, false.</returns>
812 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.VerifyData(System.Byte[],System.Object,System.Byte[])">
813 <summary>Verifies that a digital signature is valid by determining the hash value in the signature using the provided public key and comparing it to the hash value of the provided data.</summary>
814 <param name="buffer">The data that was signed.</param>
815 <param name="halg">The name of the hash algorithm used to create the hash value of the data.</param>
816 <param name="signature">The signature data to be verified.</param>
817 <returns>true if the signature is valid; otherwise, false.</returns>
818 <exception cref="T:System.ArgumentNullException">The <paramref name="halg">halg</paramref> parameter is null.</exception>
819 <exception cref="T:System.ArgumentException">The <paramref name="halg">halg</paramref> parameter is not a valid type.</exception>
821 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.VerifyHash(System.Byte[],System.String,System.Byte[])">
822 <summary>Verifies that a digital signature is valid by determining the hash value in the signature using the provided public key and comparing it to the provided hash value.</summary>
823 <param name="rgbHash">The hash value of the signed data.</param>
824 <param name="str">The hash algorithm identifier (OID) used to create the hash value of the data.</param>
825 <param name="rgbSignature">The signature data to be verified.</param>
826 <returns>true if the signature is valid; otherwise, false.</returns>
827 <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash">rgbHash</paramref> parameter is null.
829 The <paramref name="rgbSignature">rgbSignature</paramref> parameter is null.</exception>
830 <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
832 The signature cannot be verified.</exception>
834 <member name="M:System.Security.Cryptography.RSACryptoServiceProvider.VerifyHash(System.Byte[],System.Byte[],System.Security.Cryptography.HashAlgorithmName,System.Security.Cryptography.RSASignaturePadding)">
835 <summary>Verifies that a digital signature is valid by determining the hash value in the signature using the specified hashing algorithm and padding, and comparing it to the provided hash value.</summary>
836 <param name="hash">The hash value of the signed data.</param>
837 <param name="signature">The signature data to be verified.</param>
838 <param name="hashAlgorithm">The hash algorithm name used to create the hash value.</param>
839 <param name="padding">The padding.</param>
840 <returns>true if the signature is valid; otherwise, false.</returns>
841 <exception cref="T:System.ArgumentException"><paramref name="hashAlgorithm">hashAlgorithm</paramref> is null or <see cref="System.String.Empty"></see>.</exception>
842 <exception cref="T:System.ArgumentNullException"><paramref name="hash">hash</paramref> is null.
844 <paramref name="padding">padding</paramref> is null.</exception>
845 <exception cref="T:System.Security.Cryptography.CryptographicException"><paramref name="padding">padding</paramref> does not equal <see cref="System.Security.Cryptography.RSASignaturePadding.Pkcs1"></see>.</exception>
847 <member name="T:System.Security.Cryptography.SHA1CryptoServiceProvider">
848 <summary>Computes the <see cref="T:System.Security.Cryptography.SHA1"></see> hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.</summary>
850 <member name="M:System.Security.Cryptography.SHA1CryptoServiceProvider.#ctor">
851 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider"></see> class.</summary>
853 <member name="M:System.Security.Cryptography.SHA1CryptoServiceProvider.Initialize">
854 <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider"></see>.</summary>
856 <member name="T:System.Security.Cryptography.SHA256CryptoServiceProvider">
857 <summary>Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the <see cref="T:System.Security.Cryptography.SHA256"></see> algorithm.</summary>
859 <member name="M:System.Security.Cryptography.SHA256CryptoServiceProvider.#ctor">
860 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA256CryptoServiceProvider"></see> class.</summary>
862 <member name="M:System.Security.Cryptography.SHA256CryptoServiceProvider.Initialize">
863 <summary>Initializes, or reinitializes, an instance of a hash algorithm.</summary>
865 <member name="T:System.Security.Cryptography.SHA384CryptoServiceProvider">
866 <summary>Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the <see cref="T:System.Security.Cryptography.SHA384"></see> algorithm.</summary>
868 <member name="M:System.Security.Cryptography.SHA384CryptoServiceProvider.#ctor">
869 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA384CryptoServiceProvider"></see> class.</summary>
871 <member name="M:System.Security.Cryptography.SHA384CryptoServiceProvider.Initialize">
872 <summary>Initializes, or reinitializes, an instance of a hash algorithm.</summary>
874 <member name="T:System.Security.Cryptography.SHA512CryptoServiceProvider">
875 <summary>Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the <see cref="T:System.Security.Cryptography.SHA512"></see> algorithm.</summary>
877 <member name="M:System.Security.Cryptography.SHA512CryptoServiceProvider.#ctor">
878 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA512CryptoServiceProvider"></see> class.</summary>
880 <member name="M:System.Security.Cryptography.SHA512CryptoServiceProvider.Initialize">
881 <summary>Initializes, or reinitializes, an instance of a hash algorithm.</summary>
883 <member name="T:System.Security.Cryptography.TripleDESCryptoServiceProvider">
884 <summary>Defines a wrapper object to access the cryptographic service provider (CSP) version of the <see cref="T:System.Security.Cryptography.TripleDES"></see> algorithm. This class cannot be inherited.</summary>
886 <member name="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.#ctor">
887 <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.TripleDESCryptoServiceProvider"></see> class.</summary>
888 <exception cref="T:System.Security.Cryptography.CryptographicException">The <see cref="System.Security.Cryptography.TripleDES"></see> cryptographic service provider is not available.</exception>
890 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.BlockSize">
893 <member name="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.CreateDecryptor">
896 <member name="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.CreateDecryptor(System.Byte[],System.Byte[])">
897 <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.TripleDES"></see> decryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see>) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>).</summary>
898 <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
899 <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
900 <returns>A symmetric <see cref="System.Security.Cryptography.TripleDES"></see> decryptor object.</returns>
901 <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.Mode"></see> property is <see cref="System.Security.Cryptography.CipherMode.OFB"></see>.
903 The value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.Mode"></see> property is <see cref="System.Security.Cryptography.CipherMode.CFB"></see> and the value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize"></see> property is not 8.
905 An invalid key size was used.
907 The algorithm key size was not available.</exception>
909 <member name="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.CreateEncryptor">
912 <member name="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.CreateEncryptor(System.Byte[],System.Byte[])">
913 <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.TripleDES"></see> encryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see>) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>).</summary>
914 <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
915 <param name="rgbIV">The initialization vector to use for the symmetric algorithm.
917 The initialization vector must be 8 bytes long. If it is longer than 8 bytes, it is truncated and an exception is not thrown. Before you call <see cref="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.CreateEncryptor(System.Byte[],System.Byte[])"></see>, check the length of the initialization vector and throw an exception if it is too long. </param>
918 <returns>A symmetric <see cref="System.Security.Cryptography.TripleDES"></see> encryptor object.</returns>
919 <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.Mode"></see> property is <see cref="System.Security.Cryptography.CipherMode.OFB"></see>.
921 The value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.Mode"></see> property is <see cref="System.Security.Cryptography.CipherMode.CFB"></see> and the value of the <see cref="System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize"></see> property is not 8.
923 An invalid key size was used.
925 The algorithm key size was not available.</exception>
927 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.FeedbackSize">
930 <member name="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.GenerateIV">
931 <summary>Generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV"></see>) to use for the algorithm.</summary>
933 <member name="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.GenerateKey">
934 <summary>Generates a random <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key"></see> to be used for the algorithm.</summary>
936 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.IV">
939 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.Key">
942 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.KeySize">
945 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.LegalBlockSizes">
948 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.LegalKeySizes">
951 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.Mode">
954 <member name="P:System.Security.Cryptography.TripleDESCryptoServiceProvider.Padding">