DSACng.VerifySignature(Byte[], Byte[]) 方法

定義

驗證所指定數位簽章是否符合指定的雜湊。Verifies if the specified digital signature matches the specified hash.

public:
 override bool VerifySignature(cli::array <System::Byte> ^ rgbHash, cli::array <System::Byte> ^ rgbSignature);
public override bool VerifySignature (byte[] rgbHash, byte[] rgbSignature);
override this.VerifySignature : byte[] * byte[] -> bool
Public Overrides Function VerifySignature (rgbHash As Byte(), rgbSignature As Byte()) As Boolean

參數

rgbHash
Byte[]

已簽署的雜湊。The signed hash.

rgbSignature
Byte[]

要驗證的數位簽章。The digital signature to be verified.

傳回

Boolean

rgbSignature 符合使用指定雜湊計算的簽章,則為 true;否則為 falsetrue if rgbSignature matches the signature computed using the specified hash; otherwise, false.

例外狀況

rgbHashrgbSignature 參數為 nullThe rgbHash or rgbSignature parameters are null.

適用於