KeyGenerator.ComputeCombinedKey 方法

Computes the session key based on PSHA1 algorithm.

命名空间: Microsoft.IdentityModel
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    Dim requestorEntropy As Byte()
Dim issuerEntropy As Byte()
Dim keySizeInBits As Integer
Dim returnValue As Byte()

returnValue = KeyGenerator.ComputeCombinedKey(requestorEntropy, issuerEntropy, keySizeInBits)

语法

声明
Public Shared Function ComputeCombinedKey ( _
    requestorEntropy As Byte(), _
    issuerEntropy As Byte(), _
    keySizeInBits As Integer _
) As Byte()
public static byte[] ComputeCombinedKey (
    byte[] requestorEntropy,
    byte[] issuerEntropy,
    int keySizeInBits
)
public:
static array<unsigned char>^ ComputeCombinedKey (
    array<unsigned char>^ requestorEntropy, 
    array<unsigned char>^ issuerEntropy, 
    int keySizeInBits
)
public static byte[] ComputeCombinedKey (
    byte[] requestorEntropy, 
    byte[] issuerEntropy, 
    int keySizeInBits
)
public static function ComputeCombinedKey (
    requestorEntropy : byte[], 
    issuerEntropy : byte[], 
    keySizeInBits : int
) : byte[]

参数

  • requestorEntropy
    The entropy from the requestor side.
  • issuerEntropy
    The entropy from the token issuer side.
  • keySizeInBits
    The desired key size in bits.

返回值

The computed session key.

线程安全

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

请参见

参考

KeyGenerator 类
KeyGenerator 成员
Microsoft.IdentityModel 命名空间