ECDiffieHellmanCng.DeriveSecretAgreementHandle Metoda

Definicja

Pobiera dojście do tajnej umowy wygenerowanej między dwiema stronami.

Przeciążenia

DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

Pobiera dojście do tajnej umowy wygenerowanej między dwiema stronami, biorąc pod uwagę ECDiffieHellmanPublicKey obiekt zawierający klucz publiczny drugiej strony.

DeriveSecretAgreementHandle(CngKey)

Pobiera dojście do tajnej umowy wygenerowanej między dwiema stronami, biorąc pod uwagę CngKey obiekt, który zawiera klucz publiczny drugiej strony.

Uwagi

Przeciążenia DeriveSecretAgreementHandle metody są przeznaczone dla zaawansowanych użytkowników, którzy potrzebują dojścia do pierwotnej umowy wpisu tajnego zamiast materiału klucza. Dojście umowy tajnej może być używane w wywołaniach platformy w celu wykonania dowolnej pracy, która nie jest opakowana przez klasę ECDiffieHellmanCng .

DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

Pobiera dojście do tajnej umowy wygenerowanej między dwiema stronami, biorąc pod uwagę ECDiffieHellmanPublicKey obiekt zawierający klucz publiczny drugiej strony.

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

Parametry

otherPartyPublicKey
ECDiffieHellmanPublicKey

Klucz publiczny z drugiej strony w ramach wymiany kluczy.

Zwraca

Dojście do tajnej umowy. Te informacje są obliczane na podstawie klucza prywatnego bieżącego obiektu i określonego klucza publicznego.

Wyjątki

otherPartyPublicKey to null.

otherPartyPublicKey nie jest kluczem ECDiffieHellmanPublicKey .

Dotyczy

DeriveSecretAgreementHandle(CngKey)

Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

Pobiera dojście do tajnej umowy wygenerowanej między dwiema stronami, biorąc pod uwagę CngKey obiekt, który zawiera klucz publiczny drugiej strony.

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

Parametry

otherPartyPublicKey
CngKey

Obiekt, który zawiera publiczną część klucza Diffie-Hellman krzywej eliptycznej (ECDH) z drugiej strony w ramach wymiany kluczy.

Zwraca

Dojście do tajnej umowy. Te informacje są obliczane na podstawie klucza prywatnego bieżącego obiektu i określonego klucza publicznego.

Atrybuty

Wyjątki

otherPartyPublicKey to null.

otherPartyPublicKey nie jest kluczem ECDH lub nie jest poprawnym rozmiarem.

Wszystkie inne błędy.

Dotyczy