Export (0) Print
Expand All

AsymmetricKeyExchangeDeformatter.DecryptKeyExchange Method

When overridden in a derived class, extracts secret information from the encrypted key exchange data.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public abstract byte[] DecryptKeyExchange(
	byte[] rgb
)

Parameters

rgb
Type: System.Byte[]

The key exchange data within which the secret information is hidden.

Return Value

Type: System.Byte[]
The secret information derived from the key exchange data.

You must specify a key before calling an implementation of this method.

The following code example demonstrates how to override the DecryptKeyExchange method to create an encrypted key exchange for the specified input data. This code example is part of a larger example provided for the AsymmetricKeyExchangeDeformatter class.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft