ECDiffieHellman.DeriveKeyFromHmac Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Belirtilen HMAC (Karma Tabanlı İleti Kimlik Doğrulama Kodu) algoritmasını kullanarak anahtar türetme gerçekleştirir.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[]) |
Türetilmiş bir sınıfta uygulandığında, isteğe bağlı olarak ekli veya ekli verilerle belirtilen HMAC (Karma Tabanlı İleti Kimlik Doğrulama Kodu) algoritmasını kullanarak anahtar türetme gerçekleştirir. |
| DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[]) |
Belirtilen HMAC (Karma Tabanlı İleti Kimlik Doğrulama Kodu) algoritmasını kullanarak anahtar türetme gerçekleştirir. |
DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[])
- Kaynak:
- ECDiffieHellman.cs
- Kaynak:
- ECDiffieHellman.cs
- Kaynak:
- ECDiffieHellman.cs
- Kaynak:
- ECDiffieHellman.cs
- Kaynak:
- ECDiffieHellman.cs
Türetilmiş bir sınıfta uygulandığında, isteğe bağlı olarak ekli veya ekli verilerle belirtilen HMAC (Karma Tabanlı İleti Kimlik Doğrulama Kodu) algoritmasını kullanarak anahtar türetme gerçekleştirir.
public:
virtual cli::array <System::Byte> ^ DeriveKeyFromHmac(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, cli::array <System::Byte> ^ hmacKey, cli::array <System::Byte> ^ secretPrepend, cli::array <System::Byte> ^ secretAppend);
public virtual byte[] DeriveKeyFromHmac(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[]? hmacKey, byte[]? secretPrepend, byte[]? secretAppend);
public virtual byte[] DeriveKeyFromHmac(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend);
abstract member DeriveKeyFromHmac : System.Security.Cryptography.ECDiffieHellmanPublicKey * System.Security.Cryptography.HashAlgorithmName * byte[] * byte[] * byte[] -> byte[]
override this.DeriveKeyFromHmac : System.Security.Cryptography.ECDiffieHellmanPublicKey * System.Security.Cryptography.HashAlgorithmName * byte[] * byte[] * byte[] -> byte[]
Public Overridable Function DeriveKeyFromHmac (otherPartyPublicKey As ECDiffieHellmanPublicKey, hashAlgorithm As HashAlgorithmName, hmacKey As Byte(), secretPrepend As Byte(), secretAppend As Byte()) As Byte()
Parametreler
- otherPartyPublicKey
- ECDiffieHellmanPublicKey
Diğer tarafın ortak anahtarı.
- hashAlgorithm
- HashAlgorithmName
Anahtar malzemeyi türetmek için kullanılacak karma algoritması.
- hmacKey
- Byte[]
HMAC'nin anahtarı.
- secretPrepend
- Byte[]
Karma oluşturmadan önce türetilmiş gizli diziye ön eklenmek için bir değer.
- secretAppend
- Byte[]
Karma oluşturmadan önce türetilmiş gizli diziye eklenecek değer.
Döndürülenler
İstenen verileri önceden ekledikten veya ekledikten sonra paylaşılan gizli dizinin HMAC'i.
Özel durumlar
Türetilmiş bir sınıf bu yöntemi geçersiz kılmalıdır.
tarafından otherPartyPublicKey kullanılan eğri, bu anahtardaki eğriden farklı bir boyuta sahiptir.
-veya-
hashAlgorithm parametresi bir karma belirtmiyor.
otherPartyPublicKey, null'e eşittir.
tarafından otherPartyPublicKey kullanılan eğri, bu anahtardan farklı bir eğridir.
-veya-
Bu örnek yalnızca bir ortak anahtarı temsil eder.
Açıklamalar
Bu yöntem, paylaşılan gizli diziyi () oluşturmak için Eliptik Eğri Diffie-Hellman anahtar sözleşmesini dahiliz olarak gerçekleştirir.
olduğunda hmacKeynull, bu yöntemden döndürülen değer, birleştirmeyi işaret eden HMAC-HASH(z, secretPrepend || z || secretAppend) belirtilen HMAC algoritmasını kullanmanın sonucudur||. Aksi takdirde, bu yöntemden döndürülen değer sonucunu verir HMAC-HASH(hmacKey, secretPrepend || z || secretAppend).
veya secretPrepend değeri secretAppend isenull, bunlar boş diziler olarak değerlendirilir.
Şunlara uygulanır
DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[])
- Kaynak:
- ECDiffieHellman.cs
- Kaynak:
- ECDiffieHellman.cs
- Kaynak:
- ECDiffieHellman.cs
- Kaynak:
- ECDiffieHellman.cs
- Kaynak:
- ECDiffieHellman.cs
Belirtilen HMAC (Karma Tabanlı İleti Kimlik Doğrulama Kodu) algoritmasını kullanarak anahtar türetme gerçekleştirir.
public:
cli::array <System::Byte> ^ DeriveKeyFromHmac(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, cli::array <System::Byte> ^ hmacKey);
public byte[] DeriveKeyFromHmac(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[]? hmacKey);
public byte[] DeriveKeyFromHmac(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] hmacKey);
member this.DeriveKeyFromHmac : System.Security.Cryptography.ECDiffieHellmanPublicKey * System.Security.Cryptography.HashAlgorithmName * byte[] -> byte[]
Public Function DeriveKeyFromHmac (otherPartyPublicKey As ECDiffieHellmanPublicKey, hashAlgorithm As HashAlgorithmName, hmacKey As Byte()) As Byte()
Parametreler
- otherPartyPublicKey
- ECDiffieHellmanPublicKey
Diğer tarafın ortak anahtarı.
- hashAlgorithm
- HashAlgorithmName
Anahtar malzemeyi türetmek için kullanılacak karma algoritması.
- hmacKey
- Byte[]
HMAC'nin anahtarı.
Döndürülenler
Paylaşılan gizli dizinin HMAC'i.
Özel durumlar
tarafından otherPartyPublicKey kullanılan eğri, bu anahtardaki eğriden farklı bir boyuta sahiptir.
-veya-
hashAlgorithm parametresi bir karma belirtmiyor.
otherPartyPublicKey, null'e eşittir.
tarafından otherPartyPublicKey kullanılan eğri, bu anahtardan farklı bir eğridir.
-veya-
Bu örnek yalnızca bir ortak anahtarı temsil eder.
Açıklamalar
Bu aşırı yükleme, ön ek ve ekleme değerleri olarak geçen DeriveKeyFromHmac yöntemini çağırırnull.