Share via


ECDiffieHellmanCng.DeriveSecretAgreementHandle Metodo

Definizione

Ottiene un handle per la chiave privata generata tra due parti.

Overload

DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

Ottiene un handle per la chiave privata generata tra due parti, dato un oggetto ECDiffieHellmanPublicKey contenente la chiave pubblica della seconda parte.

DeriveSecretAgreementHandle(CngKey)

Ottiene un handle per la chiave privata generata tra due parti, dato un oggetto CngKey contenente la chiave pubblica della seconda parte.

Commenti

Gli overload del DeriveSecretAgreementHandle 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 lavoro non sottoposto a wrapping dalla ECDiffieHellmanCng classe .

DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

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

Ottiene un handle per la chiave privata generata tra due parti, dato un oggetto ECDiffieHellmanPublicKey contenente 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 della seconda parte nello scambio di chiave.

Restituisce

Handle per la chiave privata. Queste informazioni vengono calcolate sulla base della chiave privata dell'oggetto corrente e della chiave pubblica specificata.

Eccezioni

otherPartyPublicKey è null.

otherPartyPublicKey non è una chiave ECDiffieHellmanPublicKey.

Si applica a

DeriveSecretAgreementHandle(CngKey)

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

Ottiene un handle per la chiave privata generata tra due parti, dato un oggetto CngKey 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 contenente la parte pubblica della chiave ECDH (Diffie-Hellman a curva ellittica) della seconda parte nello scambio di chiave.

Restituisce

Handle per la chiave privata. Queste informazioni vengono calcolate sulla base della chiave privata dell'oggetto corrente e della chiave pubblica specificata.

Attributi

Eccezioni

otherPartyPublicKey è null.

otherPartyPublicKey non è una chiave ECDH oppure non ha le dimensioni corrette.

Tutti gli altri errori.

Si applica a