RSAOAEPKeyExchangeDeformatter.DecryptKeyExchange Method (Byte[])

 

Extracts secret information from the encrypted key exchange data.

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

override DecryptKeyExchange : 
        rgbData:byte[] -> byte[]

Parameters

rgbData
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.

Exception Condition
CryptographicException

The key exchange data verification has failed.

CryptographicUnexpectedOperationException

The key is missing.

You must specify a key before calling this method.

The following example shows how to use the DecryptKeyExchange method to recreate an exchange key from a message sender. This code example is part of a larger example provided for the RSAPKCS1KeyExchangeDeformatter class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Return to top
Show: