ECDsaCng.SignHash(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a signature for the specified hash value.
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()
Parameters
- hash
- Byte[]
The hash value of the data to be signed.
Returns
Byte[]
A digital signature for the specified hash value.
- Attributes
Exceptions
hash
is null
.
The key information that is associated with the instance does not have a private key.
Remarks
The KeyContainerPermissionFlags.Sign flag is required if the Cryptography Next Generation (CNG) key is not randomly generated by the ECDsaCng object.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.