This documentation is archived and is not being maintained.

<cryptographySettings> Element

Contains cryptography settings.



Child Elements

Element Description
<cryptoNameMapping> Contains mappings of classes to friendly names.
<oidMap> Contains ASN.1 object identifier (OID) mappings to classes.


The following example shows how use the <cryptographySettings> element to contain cryptography name mappings and OID mappings. This example configures the runtime so that System.Security.Cryptography.HashAlgorithm.Create returns a MyHashClass object and the MyCryptoClass class maps to the object identifier

               <cryptoClass   MyHash="MyHashClass, MyAssembly
                  Culture=neutral, PublicKeyToken=a5d015c7d5a0b012,
               <cryptoClass   MyCrypto="MyCryptoClass, MyAssembly
                  Culture=neutral, PublicKeyToken=a5d015c7d5a0b012,
            <nameEntry name="System.Security.Cryptography.HashAlgorithm"
            <oidEntry OID=""   name="MyCryptoClass"/>

Configuration File

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

See Also

Configuration File Schema | Cryptography Settings Schema | Cryptographic Services