ECDsaCng.SignHash(Byte[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为指定的哈希值生成签名。
public:
override cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash);
public override byte[] SignHash(byte[] hash);
[System.Security.SecurityCritical]
public override byte[] SignHash(byte[] hash);
override this.SignHash : byte[] -> byte[]
[<System.Security.SecurityCritical>]
override this.SignHash : byte[] -> byte[]
Public Overrides Function SignHash (hash As Byte()) As Byte()
参数
- hash
- Byte[]
要签名的数据的哈希值。
返回
Byte[]
指定哈希值的数字签名。
- 属性
例外
hash 是 null。
与实例关联的密钥信息没有私钥。
注解
KeyContainerPermissionFlags.Sign如果对象未随机生成加密下一代(CNG)密钥,则需要该ECDsaCng标志。