SymmetricKeyAlgorithmProvider.CreateSymmetricKey(IBuffer) 方法

定义

创建对称密钥。

public:
 virtual CryptographicKey ^ CreateSymmetricKey(IBuffer ^ keyMaterial) = CreateSymmetricKey;
CryptographicKey CreateSymmetricKey(IBuffer const& keyMaterial);
public CryptographicKey CreateSymmetricKey(IBuffer keyMaterial);
function createSymmetricKey(keyMaterial)
Public Function CreateSymmetricKey (keyMaterial As IBuffer) As CryptographicKey

参数

keyMaterial
IBuffer

用于生成密钥的数据。 可以调用 GenerateRandom 方法来创建随机密钥材料。

返回

对称密钥。

适用于