Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​CryptoConfig
Assembly: System.Security.Cryptography
Inheritance: object → CryptoConfig
Accesses the cryptography configuration information.
Properties
public static
bool
AllowOnlyFipsAlgorithms
Indicates whether the runtime should enforce the policy to create only Federal Information Processing Standard (FIPS) certified algorithms.
Methods
public static
void
AddAlgorithm​(Type algorithm,
string[] names)
Adds a set of names to algorithm mappings to be used for the current application domain.
algorithm
The algorithm to map to.
names
An array of names to map to the algorithm.
public static
void
AddOID​(string oid,
string[] names)
Adds a set of names to object identifier (OID) mappings to be used for the current application domain.
oid
The object identifier (OID) to map to.
names
An array of names to map to the OID.
public static
object
CreateFromName​(string name)
Creates a new instance of the specified cryptographic object.
Returns A new instance of the specified cryptographic object.
name
The simple name of the cryptographic object of which to create an instance.
public static
object
CreateFromName​(string name,
object[] args)
Creates a new instance of the specified cryptographic object with the specified arguments.
Returns A new instance of the specified cryptographic object.
name
The simple name of the cryptographic object of which to create an instance.
args
The arguments used to create the specified cryptographic object.
public static
byte[]
EncodeOID​(string str)
Encodes the specified object identifier (OID).
Returns A byte array containing the encoded OID.
str
The OID to encode.
public static
string
MapNameToOID​(string name)
Gets the object identifier (OID) of the algorithm corresponding to the specified simple name.
Returns The OID of the specified algorithm.
name
The simple name of the algorithm for which to get the OID.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object