RSAPKCS1KeyExchangeFormatter.CreateKeyExchange Method (Byte[])
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates the encrypted key exchange data from the specified input data.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- rgbData
- Type:
System.Byte
[]
The secret information to be passed in the key exchange.
Return Value
Type: System.Byte []The encrypted key exchange data to be sent to the intended recipient.
| Exception | Condition |
|---|---|
| CryptographicException | rgbData is too big. |
| CryptographicUnexpectedOperationException | The key is null. |
Show: