AsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As AsymmetricKeyExchangeDeformatter Dim rgb As Byte() Dim returnValue As Byte() returnValue = instance.DecryptKeyExchange(rgb)
戻り値
キー交換データから抽出した秘密情報。


DecryptKeyExchange メソッドをオーバーライドして、指定された入力データ用の暗号化されたキー交換を作成する方法を次のコード例に示します。このコード例は、AsymmetricKeyExchangeDeformatter クラスのトピックで取り上げているコード例の一部分です。
' Create the encrypted key exchange data from the specified input ' data. This method uses the RSACryptoServiceProvider only. To ' support additional providers or provide custom decryption logic, ' add logic to this member. Public Overrides Function DecryptKeyExchange( _ ByVal rgbData() As Byte) As Byte() Dim decryptedBytes() As Byte If (Not rsaKey Is Nothing) Then If (TypeOf (rsaKey) Is RSACryptoServiceProvider) Then Dim rsaProvider As RSACryptoServiceProvider rsaProvider = CType(rsaKey, RSACryptoServiceProvider) decryptedBytes = rsaProvider.Decrypt(rgbData, True) End If ' Add custom decryption logic here. Else Throw New CryptographicUnexpectedOperationException( _ "Cryptography_MissingKey") End If Return decryptedBytes End Function
// Create the encrypted key exchange data from the specified input // data. This method uses the RSACryptoServiceProvider only. To // support additional providers or provide custom decryption logic, // add logic to this member. public override byte[] DecryptKeyExchange(byte[] rgbData) { byte[] decryptedBytes = null; if (rsaKey != null) { if (rsaKey is RSACryptoServiceProvider) { RSACryptoServiceProvider serviceProvder = (RSACryptoServiceProvider) rsaKey; decryptedBytes = serviceProvder.Decrypt(rgbData, true); } // Add custom decryption logic here. } else { throw new CryptographicUnexpectedOperationException( "Cryptography_MissingKey"); } return decryptedBytes; }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からAsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッドを検索する場合は、下記のリンクをクリックしてください。

- AsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッドのページへのリンク