'Declaration
Public Sub GenerateKey( _ ByVal keyType As KeyAlgorithm, _ ByVal keyLength As System.Integer _ )
'Usage
Dim instance As Credential Dim keyType As KeyAlgorithm Dim keyLength As System.Integer instance.GenerateKey(keyType, keyLength)
public void GenerateKey( KeyAlgorithm keyType, System.int keyLength )
Parameters
- keyType
- The type of key to generate. Supported types are DSA and RSA.
- keyLength
- The length of the key. The length must be supported by the specified key type. DSA supports 512 and 1024 bit keys, RSA supports 512, 1024, 2048 and 4096 bit keys.