ECDiffieHellman.DeriveKeyFromHmac ECDiffieHellman.DeriveKeyFromHmac ECDiffieHellman.DeriveKeyFromHmac ECDiffieHellman.DeriveKeyFromHmac Method

Définition

Dérive des octets qui peuvent être utilisés comme clé à l’aide d’un code d’authentification de message haché (HMAC).Derives bytes that can be used as a key using a Hash-based Message Authentication Code (HMAC).

Surcharges

DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[])

Dérive des octets qui peuvent être utilisés comme clé à l’aide d’un code d’authentification de message haché (HMAC).Derives bytes that can be used as a key using a Hash-based Message Authentication Code (HMAC).

DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[])

En cas d’implémentation dans une classe dérivée, dérive des octets qui peuvent être utilisés comme clé à l’aide d’un code d'authentification de message haché (HMAC).When implemented in a derived class, derives bytes that can be used as a key using a Hash-based Message Authentication Code (HMAC).

DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[])

Dérive des octets qui peuvent être utilisés comme clé à l’aide d’un code d’authentification de message haché (HMAC).Derives bytes that can be used as a key using a Hash-based Message Authentication Code (HMAC).

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);
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()

Paramètres

otherPartyPublicKey
ECDiffieHellmanPublicKey ECDiffieHellmanPublicKey ECDiffieHellmanPublicKey ECDiffieHellmanPublicKey

La clé publique de l’autre partie.The other party's public key.

hashAlgorithm
HashAlgorithmName HashAlgorithmName HashAlgorithmName HashAlgorithmName

L’algorithme de hachage à utiliser pour dériver la clé.The hash algorithm to use to derive the key material.

hmacKey
Byte[]

La clé du HMAC.The key for the HMAC.

Retours

Byte[]

Matériel de clé issu de l’échange de clés avec la clé publique de l’autre partie.The key material from the key exchange with the other party's public key.

Remarques

Cette surcharge appelle la DeriveKeyFromHmac méthode en passant null en tant que l’ajouter au début et à ajouter des valeurs.This overload calls the DeriveKeyFromHmac method passing null as the prepend and append values.

DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[]) DeriveKeyFromHmac(ECDiffieHellmanPublicKey, HashAlgorithmName, Byte[], Byte[], Byte[])

En cas d’implémentation dans une classe dérivée, dérive des octets qui peuvent être utilisés comme clé à l’aide d’un code d'authentification de message haché (HMAC).When implemented in a derived class, derives bytes that can be used as a key using a Hash-based Message Authentication Code (HMAC).

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);
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()

Paramètres

otherPartyPublicKey
ECDiffieHellmanPublicKey ECDiffieHellmanPublicKey ECDiffieHellmanPublicKey ECDiffieHellmanPublicKey

La clé publique de l’autre partie.The other party's public key.

hashAlgorithm
HashAlgorithmName HashAlgorithmName HashAlgorithmName HashAlgorithmName

L’algorithme de hachage à utiliser pour dériver la clé.The hash algorithm to use to derive the key material.

hmacKey
Byte[]

La clé du HMAC.The key for the HMAC.

secretPrepend
Byte[]

Valeur à ajouter avant la clé secrète dérivée avant le hachage.A value to prepend to the derived secret before hashing.

secretAppend
Byte[]

Valeur à ajouter après la clé secrète dérivée avant le hachage.A value to append to the derived secret before hashing.

Retours

Byte[]

Matériel de clé issu de l’échange de clés avec la clé publique de l’autre partie.The key material from the key exchange with the other party's public key.

Exceptions

Une classe dérivée doit remplacer cette méthode.A derived class must override this method.

S’applique à