ECDiffieHellman.DeriveRawSecretAgreement(ECDiffieHellmanPublicKey) Metode

Definisi

Mendapatkan bahan kunci mentah.

public:
 virtual cli::array <System::Byte> ^ DeriveRawSecretAgreement(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public virtual byte[] DeriveRawSecretAgreement (System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
abstract member DeriveRawSecretAgreement : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
override this.DeriveRawSecretAgreement : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
Public Overridable Function DeriveRawSecretAgreement (otherPartyPublicKey As ECDiffieHellmanPublicKey) As Byte()

Parameter

otherPartyPublicKey
ECDiffieHellmanPublicKey

Kunci umum partai untuk mendapatkan rahasia bersama.

Mengembalikan

Byte[]

Perjanjian kunci mentah.

Pengecualian

otherPartyPublicKeyadalah null.

otherPartyPublicKey lebih dari kurva yang berbeda dari kunci ini.

Implementasi turunan belum memberikan implementasi metode .

Platform saat ini tidak mendukung perjanjian kunci mentah.

Objek telah dibuang.

Keterangan

Perawatan harus dilakukan saat menggunakan nilai perjanjian rahasia turunan mentah. Nilai mentah diharapkan digunakan sebagai input ke Fungsi Derivasi Kunci, dan tidak digunakan langsung sebagai bahan kunci.

Berlaku untuk