Org.Mentalis.Security.Cryptography Defines the different Diffie-Hellman key generation methods. Returns dynamically generated values for P and G. Unlike the Sophie Germain or DSA key generation methods, this method does not ensure that the selected prime offers an adequate security level. Returns values for P and G that are hard coded in this library. Contrary to what your intuition may tell you, using these hard coded values is perfectly safe. The values of the P and G parameters are taken from 'The OAKLEY Key Determination Protocol' [RFC2412]. This is the prefered key generation method, because it is very fast and very safe. Because this method uses fixed values for the P and G parameters, not all bit sizes are supported. The current implementation supports bit sizes of 768, 1024 and 1536. Represents the parameters of the Diffie-Hellman algorithm. Represents the public P parameter of the Diffie-Hellman algorithm. Represents the public G parameter of the Diffie-Hellman algorithm. Represents the private X parameter of the Diffie-Hellman algorithm. Defines a base class from which all Diffie-Hellman implementations inherit. Creates an instance of the default implementation of the algorithm. A new instance of the default implementation of DiffieHellman. Creates an instance of the specified implementation of . The name of the implementation of DiffieHellman to use. A new instance of the specified implementation of DiffieHellman. Initializes a new instance. When overridden in a derived class, creates the key exchange data. The key exchange data to be sent to the intended recipient. When overridden in a derived class, extracts secret information from the key exchange data. The key exchange data within which the secret information is hidden. The secret information derived from the key exchange data. When overridden in a derived class, exports the . true to include private parameters; otherwise, false. The parameters for Diffie-Hellman. When overridden in a derived class, imports the specified . The parameters for Diffie-Hellman. Reconstructs a object from an XML string. The XML string to use to reconstruct the DiffieHellman object. One of the values in the XML string is invalid. Creates and returns an XML string representation of the current object. true to include private parameters; otherwise, false. An XML string encoding of the current DiffieHellman object. Implements the Diffie-Hellman algorithm. Initializes a new instance. The default length of the shared secret is 1024 bits. Initializes a new instance. The length, in bits, of the public P parameter. The length, in bits, of the secret value X. This parameter can be set to 0 to use the default size. One of the values. The larger the bit length, the more secure the algorithm is. The default is 1024 bits. The minimum bit length is 128 bits.
The size of the private value will be one fourth of the bit length specified.
The specified bit length is invalid.
Initializes a new instance. The P parameter of the Diffie-Hellman algorithm. This is a public parameter. The G parameter of the Diffie-Hellman algorithm. This is a public parameter. The X parameter of the Diffie-Hellman algorithm. This is a private parameter. If this parameters is a null reference (Nothing in Visual Basic), a secret value of the default size will be generated. or is a null reference (Nothing in Visual Basic). or is invalid. Initializes a new instance. The P parameter of the Diffie-Hellman algorithm. The G parameter of the Diffie-Hellman algorithm. The length, in bits, of the private value. If 0 is specified, the default value will be used. or is a null reference (Nothing in Visual Basic). is invalid. or is invalid. Creates the key exchange data. The key exchange data to be sent to the intended recipient. Extracts secret information from the key exchange data. The key exchange data within which the shared key is hidden. The shared key derived from the key exchange data. Releases the unmanaged resources used by the SymmetricAlgorithm and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. Exports the . true to include private parameters; otherwise, false. The parameters for . Imports the specified . The parameters for . parameters.P or parameters.G is a null reference (Nothing in Visual Basic) -or- parameters.P is not a prime number. Releases the unmanaged resources used by the SymmetricAlgorithm. Gets the name of the key exchange algorithm. The name of the key exchange algorithm. Gets the name of the signature algorithm. The name of the signature algorithm.