Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README « Mono.Security.Win32 « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b38bfbacf73cfda095f7c761f04772dc33505746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
NOTE: This assembly ONLY works under the Windows operating system.

All classes inside this assembly should NEVER be used directly by any 
application. This also means you should never link this assembly with
others assemblies.

In order to use theses cryptographic implementations you must change your
machine.config file to redirect default implementation to the one provided
in this assembly.

Example:	This example will replace the default RandomNumberGenerator
		implementation (the one used for generating keys and IV) by 
		one using CryptoAPI. Note that there may be multiple entries
		to modify for a default implementation (like 3 for RNG).

</configuration>

	... other config stuff ...

	<mscorlib>
		<cryptographySettings>
			<cryptoNameMapping>
				<cryptoClasses>
					<cryptoClass CapiRNG="Mono.Security.Cryptography.RNGCryptoServiceProvider, Mono.Security.Win32, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
				</cryptoClasses>
				<nameEntry name="RandomNumberGenerator" class="CapiRNG" />
				<nameEntry name="System.Security.Cryptography.RandomNumberGenerator" class="CapiRNG" />
				<nameEntry name="System.Security.Cryptography.RNGCryptoServiceProvider" class="CapiRNG"/>
			</cryptoNameMapping>
		</cryptographySettings>
	</mscorlib>
</configuration>


Note:	the whole <mscorlib> section can be missing from your machine.config
	file.


Sebastien Pouliot
sebastien@ximian.com