ECDiffieHellmanCng.DeriveSecretAgreementHandle Metodo

Definizione

Ottiene un handle per l'accordo segreto generato tra due parti.

Overload

Nome Descrizione
DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

Ottiene un handle per l'accordo segreto generato tra due parti, dato un ECDiffieHellmanPublicKey oggetto che contiene la chiave pubblica della seconda parte.

DeriveSecretAgreementHandle(CngKey)

Ottiene un handle per l'accordo segreto generato tra due parti, dato un CngKey oggetto contenente la chiave pubblica della seconda parte.

Commenti

Gli DeriveSecretAgreementHandle overload del metodo sono destinati agli utenti avanzati che necessitano di un handle per il contratto segreto non elaborato anziché per il materiale della chiave. L'handle del contratto segreto può essere usato nelle chiamate platform invoke per eseguire qualsiasi operazione non sottoposta a wrapping dalla ECDiffieHellmanCng classe .

DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Ottiene un handle per l'accordo segreto generato tra due parti, dato un ECDiffieHellmanPublicKey oggetto che contiene la chiave pubblica della seconda parte.

public:
 Microsoft::Win32::SafeHandles::SafeNCryptSecretHandle ^ DeriveSecretAgreementHandle(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.ECDiffieHellmanPublicKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
Public Function DeriveSecretAgreementHandle (otherPartyPublicKey As ECDiffieHellmanPublicKey) As SafeNCryptSecretHandle

Parametri

otherPartyPublicKey
ECDiffieHellmanPublicKey

Chiave pubblica dell'altra parte nello scambio di chiavi.

Valori restituiti

Handle per il contratto segreto. Queste informazioni vengono calcolate dalla chiave privata dell'oggetto corrente e dalla chiave pubblica specificata.

Eccezioni

otherPartyPublicKey è null.

otherPartyPublicKey non è una ECDiffieHellmanPublicKey chiave.

Si applica a

DeriveSecretAgreementHandle(CngKey)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Ottiene un handle per l'accordo segreto generato tra due parti, dato un CngKey oggetto contenente la chiave pubblica della seconda parte.

public:
 Microsoft::Win32::SafeHandles::SafeNCryptSecretHandle ^ DeriveSecretAgreementHandle(System::Security::Cryptography::CngKey ^ otherPartyPublicKey);
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle(System.Security.Cryptography.CngKey otherPartyPublicKey);
[System.Security.SecurityCritical]
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle(System.Security.Cryptography.CngKey otherPartyPublicKey);
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.CngKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
[<System.Security.SecurityCritical>]
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.CngKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
Public Function DeriveSecretAgreementHandle (otherPartyPublicKey As CngKey) As SafeNCryptSecretHandle

Parametri

otherPartyPublicKey
CngKey

Oggetto che contiene la parte pubblica della chiave ecdh (Elliptic Curve Diffie-Hellman) dell'altra parte nello scambio di chiavi.

Valori restituiti

Handle per il contratto segreto. Queste informazioni vengono calcolate dalla chiave privata dell'oggetto corrente e dalla chiave pubblica specificata.

Attributi

Eccezioni

otherPartyPublicKey è null.

otherPartyPublicKey non è una chiave ECDH o non è la dimensione corretta.

Tutti gli altri errori.

Si applica a