AsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > AsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッドの意味・解説 

AsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッド

派生クラスオーバーライドされると、暗号化されているキー交換データから秘密情報抽出します。

名前空間: System.Security.Cryptography
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public MustOverride Function
 DecryptKeyExchange ( _
    rgb As Byte() _
) As Byte()
Dim instance As AsymmetricKeyExchangeDeformatter
Dim rgb As Byte()
Dim returnValue As Byte()

returnValue = instance.DecryptKeyExchange(rgb)
public abstract byte[] DecryptKeyExchange (
    byte[] rgb
)
public:
virtual array<unsigned char>^ DecryptKeyExchange (
    array<unsigned char>^ rgb
) abstract
public abstract byte[] DecryptKeyExchange (
    byte[] rgb
)
public abstract function DecryptKeyExchange
 (
    rgb : byte[]
) : byte[]

パラメータ

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;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AsymmetricKeyExchangeDeformatter クラス
AsymmetricKeyExchangeDeformatter メンバ
System.Security.Cryptography 名前空間
その他の技術情報
暗号サービス


このページでは「.NET Framework クラス ライブラリ リファレンス」からAsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からAsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からAsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

AsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



AsymmetricKeyExchangeDeformatter.DecryptKeyExchange メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS