Export (0) Print
Expand All

<cryptoNameMapping> Element

Contains mappings of classes to friendly names.



Child Elements

Element Description
<cryptoClasses> Contains a list of cryptography classes that have a mapping to a friendly name in the <nameEntry> element.
<nameEntry> Maps a class name to a friendly algorithm name, which allows one class to have many friendly names.


The following example shows how to use the <cryptoNameMapping> element to contain a list of cryptography classes and mappings to friendly algorithm names. This example configures the runtime so that System.Security.CryptoConfig.CreateFromName("RSA") and System.Security.Cryptography.AsymmetricAlgorithm.Create return a MyCryptoRSAClass object.

               <cryptoClass   MyCryptoRSA="MyCryptoRSAClass, MyAssembly
                  Culture=neutral, PublicKeyToken=a5d015c7d5a0b012,
            <nameEntry name="RSA" class="MyCryptoRSA"/>
            <nameEntry name="System.Security.Cryptography.AsymmetricAlgorithm"

Configuration File

This element can be used in the machine configuration file (Machine.config).

See Also

Configuration File Schema | Cryptography Settings Schema | Cryptographic Services | Configuring Cryptography Classes

© 2015 Microsoft